@extends('layouts::admin') @section('title', $participant->name . ' — Participant Details') @section('page_title', 'Participant Details') @section('page_subtitle', 'View full enrollment and credential history') @section('content')
{{ substr($participant->name, 0, 1) }}

{{ $participant->name }}

{{ $participant->email }} @if($participant->phone_number) {{ $participant->phone_number }} @endif

Enrollments & Credentials

@forelse($participant->registrations as $reg)

{{ $reg->course->name }}

{{ $reg->program->name }}

Enrolled on {{ $reg->enrolled_at ? \Carbon\Carbon::parse($reg->enrolled_at)->format('M d, Y') : 'N/A' }}
@if($reg->certificate)
{{ $reg->certificate->certificate_number }}
Issued: {{ $reg->certificate->issued_at ? $reg->certificate->issued_at->format('M d, Y') : 'N/A' }}
Download
@csrf
@else Pending Credential @endif
@empty

This participant has no course enrollments.

@endforelse
@endsection