@include('training.partials.alerts')
| Code |
Name |
Version |
Topics |
Duration |
Approval |
Status |
Actions |
@forelse($curricula as $c)
| {{ $c->curriculum_code }} |
{{ $c->curriculum_name }}
@if($c->is_onboarding)
Onboarding
@endif
|
v{{ $c->version }} |
{{ $c->topics_count }} |
{{ $c->total_duration_hours }} h |
@php $ab = match($c->approval_status) {
'APPROVED' => 'success', 'PENDING' => 'warning',
'REJECTED' => 'danger', default => 'secondary' }; @endphp
{{ $c->approval_status }}
|
@if($c->trashed())
Deleted
@else
@endif
|
@if($c->trashed())
@else
@if($c->canBeEdited())
@endif
@if(in_array($c->approval_status, ['DRAFT','REJECTED']) && $c->workflow_id)
@endif
@if($c->approval_status === 'PENDING')
@endif
@endif
|
@empty
|
No curricula found
|
@endforelse
{{ $curricula->links() }}