@extends('layouts.app')
@section('titlePage', 'Manager Learning Content')
@section('content')
@include('common.alert')
| Subject |
Code |
View |
Action |
Preview |
Status |
@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
| {{ $value->title }} |
{{ $value->code }} |
{{ !empty($countMap[$value->id]) ? ($countMap[$value->id] ?? 0) : ($countVideo[$value->id] ?? 0) }} |
|
|
@if($publish=='no' && is_client())
@elseif(is_client())
@endif
|
@endforeach
{{-- Pagination --}}
@endsection
@section('script')
@endsection