@extends('layouts.app') @section('title', 'Training Curricula') @section('content')

Training Curricula

Grouped training programs, mapped to roles & departments

{{ request('show_deleted') ? 'Show Active' : 'Show Deleted (' . $stats['trashed'] . ')' }} New Curriculum
@foreach([ ['Total', $stats['total'], 'primary'], ['Approved', $stats['approved'], 'success'], ['Pending', $stats['pending'], 'warning'], ['Deleted', $stats['trashed'], 'danger'], ] as [$label, $count, $color])
{{ $label }}
{{ $count }}
@endforeach
@include('training.partials.alerts')
@forelse($curricula as $c) @empty @endforelse
Code Name Version Topics Duration Approval Status Actions
{{ $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
@csrf
@endif
@if($c->trashed())
@csrf
@csrf @method('DELETE')
@else @if($c->canBeEdited()) @endif @if(in_array($c->approval_status, ['DRAFT','REJECTED']) && $c->workflow_id)
@csrf
@endif @if($c->approval_status === 'PENDING')
@csrf
@endif
@csrf @method('DELETE')
@endif
No curricula found
{{ $curricula->links() }}
@endsection