@extends('layouts::admin') @section('page_title', 'Participants') @section('page_subtitle', 'Manage and review all program participants') @section('content')
@if (session('success'))
{{ session('success') }}
@endif {{-- Filters --}}
Reset Import
{{-- Table --}}
@forelse ($participants as $participant) @php $reg = $participant->registrations->first(); $eligResult = $reg?->eligibilityResult; $cert = $reg?->certificate; $isEligible = $eligResult?->eligible; $certStatus = $cert?->status ?? 'none'; $downloaded = $cert?->downloads->isNotEmpty() ?? false; @endphp @empty @endforelse
Name Email Course Program Eligibility Certificate Downloaded Actions
{{ strtoupper(substr($participant->name, 0, 1)) }}
{{ $participant->name }}
@if ($cert)
{{ $cert->certificate_number }}
@endif
{{ $participant->email }} {{ $reg?->course?->name ?? '—' }} {{ $reg?->program?->name ?? '—' }} @if ($eligResult === null) Not Evaluated @elseif ($isEligible) Eligible @else Not Eligible @endif @if ($certStatus === 'issued') Issued @elseif ($certStatus === 'revoked') Revoked @else None @endif @if ($downloaded) Yes @elseif ($certStatus === 'issued') No @else @endif
@if($cert)
@csrf
@endif
No participants found. Import participants
Showing {{ $participants->firstItem() ?? 0 }} to {{ $participants->lastItem() ?? 0 }} of {{ number_format($participants->total()) }} participants
{{ $participants->links() }}
@endsection