@extends('layouts.app') @section('titlePage', 'Manager Learning Content') @section('content')
Create
@include('common.alert')
@foreach ($data as $value) @php $status = "Not published"; $publish ="no"; $send_approval = $value->send_approval; if($send_approval == "not_approved") $status = "Not published"; elseif($send_approval == "admin_approved"){ $status = "Published By Admin"; $publish = 'yes'; } elseif($send_approval == "send_to_approval") $status = "Waiting for Approval"; elseif($send_approval == "staff_approved"){ $status = "Published By Staff"; $publish = 'yes'; } @endphp @endforeach
Subject Code View Action Preview Status
{{ $value->title }} {{ $value->code }} {{ !empty($countMap[$value->id]) ? ($countMap[$value->id] ?? 0) : ($countVideo[$value->id] ?? 0) }}
@csrf
@if($publish=='no' && is_client())
@csrf
@elseif(is_client())
@csrf
@endif
{{-- Pagination --}}
@endsection @section('script') @endsection