{{-- resources/views/probation/training/show.blade.php Course workspace: details (5.3) · applications & admission (5.1) · attendance & assessments (5.5) · materials register (5.6) · lecture library (5.7) · certificates (5.8) --}} @extends('layouts.app') @section('title', $course->title) @push('styles') @endpush @section('content') @php $statuses = \App\Models\TrainingEnrollment::STATUSES; $comp = \App\Models\TrainingEnrollment::COMPETENCY; $canEdit = \App\Helpers\PermissionHelper::hasPermission('probation.training.edit'); $canApprove = \App\Helpers\PermissionHelper::hasPermission('probation.training.approve'); $pending = $course->enrollments->whereIn('status', ['applied', 'reviewed']); @endphp
{{ optional($course->starts_on)->format('d M Y') }} – {{ optional($course->ends_on)->format('d M Y') }} · {{ $course->trainer_label ?? 'No trainer' }} · {{ \App\Models\TrainingCourse::MODES[$course->mode] ?? '' }} {{ $course->venue }}
You have not applied for this course.
@endif| Staff | Personal No. | Station | Cadre | Reason | Status | Reviewed / Approved | Action |
|---|---|---|---|---|---|---|---|
| {{ optional($e->user)->name }} {{ $e->phone }} |
{{ $e->personal_number ?? '—' }} | {{ $e->station ?? '—' }} | {{ $e->cadre ?? '—' }} | {{ \Illuminate\Support\Str::limit($e->reason_for_nomination, 60) }} | {{ $statuses[$e->status] ?? $e->status }} | @if($e->reviewer)R: {{ $e->reviewer->name }} @endif @if($e->approver)A: {{ $e->approver->name }}@endif @if($e->review_remarks) {{ $e->review_remarks }} @endif |
@if($e->status === 'applied' && $canEdit) @endif @if(in_array($e->status, ['applied', 'reviewed']) && $canApprove) @elseif($e->status === 'reviewed') Awaiting supervisor approval @endif @if($e->status === 'admitted' && $canEdit) @endif |
| No applications yet. | |||||||
No sessions yet.
@endforelseNo assessments yet.
@endforelse| Participant | Attendance | Average score | Competency status | Record result |
|---|---|---|---|---|
| {{ optional($e->user)->name }} | {{ $present }} / {{ $course->sessions->count() }} | {{ $sg ? $sg['avg'] . '%' : '—' }} @if($sg){{ $sg['pass'] ? 'pass' : 'below pass mark' }}@endif | {{ $comp[$e->competency_status] ?? '—' }} {{ $statuses[$e->status] ?? $e->status }} | @if($canEdit) @endif |
| No admitted participants. | ||||
| Issued to | Issued | Return due | Returned | Status | |
|---|---|---|---|---|---|
| {{ optional($is->user)->name }} | {{ optional($is->issued_on)->format('d M Y') }} | {{ optional($is->due_on)->format('d M Y') ?? '—' }} | {{ optional($is->returned_on)->format('d M Y') ?? '—' }} | {{ str_replace('_', ' ', $is->return_status) }} | @if(!$is->returned_on && $canEdit)@endif |
| Not issued yet. | |||||
No materials yet.
@endforelseNo recorded lectures yet.
@endforelse @endif| Participant | Result | Certificate No. | Verification code | |
|---|---|---|---|---|
| {{ optional($e->user)->name }} | {{ $comp[$e->competency_status] ?? '—' }} | {{ $e->certificate_no ?? '—' }} | {{ $e->verification_code ?? '—' }} |
@if($e->certificate_no) Open / PDF @elseif($canEdit) @endif |
| Certificates become available once a participant is Passed / Competent. | ||||