{{ __('Certifications') }}

Back to Training

Your Earned Certifications

@if($earnedCertifications->isEmpty())

You haven't earned any certifications yet. Complete the required training to earn certifications.

@else
@foreach($earnedCertifications as $earned)

{{ $earned->certification->name }}

{{ Str::limit($earned->certification->description, 100) }}

Earned: {{ $earned->earned_at->format('M d, Y') }}

@if($earned->expires_at)

Expires: {{ $earned->expires_at->format('M d, Y') }}

@else

Never expires

@endif
@endforeach
@endif

Available Certifications

@foreach($availableCertifications as $certification) @php $isEarned = $earnedCertifications->contains('certification_id', $certification->id); $requiredTrainingIds = $certification->trainingMaterials->pluck('id')->toArray(); $completedRequiredCount = count(array_intersect($requiredTrainingIds, $completedTrainingIds)); $totalRequired = count($requiredTrainingIds); $progressPercentage = $totalRequired > 0 ? ($completedRequiredCount / $totalRequired) * 100 : 0; @endphp

{{ $certification->name }}

@if($isEarned) Earned @endif

{{ $certification->description }}

@if($certification->validity_period)

Valid for {{ $certification->validity_period }} months after earning

@else

Never expires once earned

@endif

Completion Progress

{{ $completedRequiredCount }}/{{ $totalRequired }} requirements {{ round($progressPercentage) }}%
@if($certification->trainingMaterials->isNotEmpty())
Required Training
    @foreach($certification->trainingMaterials as $material)
  • @if(in_array($material->id, $completedTrainingIds)) @else @endif {{ $material->title }}
  • @endforeach
@endif
@endforeach