{{-- ============================================================ --}} {{-- HEADER --}} {{-- ============================================================ --}}

TRAINING TRANSCRIPT

Official Record of Training and Competency
Employee: {{ $user->name }} Email: {{ $user->email }}
Generated: {{ $generatedAt->format('M d, Y H:i') }} Record ID: USR-{{ str_pad($user->id, 5, '0', STR_PAD_LEFT) }}
{{-- ============================================================ --}} {{-- SUMMARY --}} {{-- ============================================================ --}}

SUMMARY

Total Trainings {{ $summary['total'] }} Completed {{ $summary['completed'] }} In Progress {{ $summary['in_progress'] }} Scheduled {{ $summary['scheduled'] }} Overdue {{ $summary['overdue'] }}
Competencies {{ $competencySummary['total'] }} Competent {{ $competencySummary['competent'] }} Expiring {{ $competencySummary['expiring'] }} Expired {{ $competencySummary['expired'] }}
{{-- ============================================================ --}} {{-- TRAININGS --}} {{-- ============================================================ --}}

TRAINING RECORDS ({{ $trainings->count() }})

@forelse($trainings as $t) @empty @endforelse
Code Topic Category Due Date Completed Status Score Certificate
{{ $t->training_code }} {{ $t->topic?->topic_name }} {{ $t->topic?->category?->category_name ?? '—' }} {{ $t->due_date?->format('Y-m-d') }} {{ $t->completed_at?->format('Y-m-d') ?? '—' }} @php $cls = match ($t->status) { 'Completed' => 'b-green', 'Scheduled' => 'b-blue', 'In Progress' => 'b-yellow', 'Cancelled' => 'b-red', default => 'b-gray', }; @endphp {{ $t->status }} {{ $t->effectiveness_score !== null ? $t->effectiveness_score . '%' : '—' }} {{ $t->certificate_number ?? '—' }}
No training records
{{-- ============================================================ --}} {{-- COMPETENCIES --}} {{-- ============================================================ --}}

COMPETENCY RECORDS ({{ $competencies->count() }})

@forelse($competencies as $c) @empty @endforelse
Topic Level Status Score Completed Expiry Certificate
{{ $c->topic?->topic_name }} {{ $c->competency_level }} {{ $c->status }} {{ $c->assessment_score !== null ? $c->assessment_score . '%' : '—' }} {{ $c->completed_date?->format('Y-m-d') ?? '—' }} {{ $c->expiry_date?->format('Y-m-d') ?? '—' }} {{ $c->certificate_number ?? '—' }}
No competency records
{{-- ============================================================ --}} {{-- CERTIFICATES --}} {{-- ============================================================ --}}

CERTIFICATES ({{ $certificates->count() }})

@forelse($certificates as $cert) @empty @endforelse
Certificate # Topic Issued Expires Status Verification Code
{{ $cert->certificate_number }} {{ $cert->topic?->topic_name }} {{ $cert->issue_date?->format('Y-m-d') }} {{ $cert->expiry_date?->format('Y-m-d') ?? 'No Expiry' }} {{ $cert->status }} {{ $cert->verification_code }}
No certificates
@if($effectivenessAvg)

Average Training Effectiveness: {{ round($effectivenessAvg, 2) }}%

@endif