Academic Document Verification

{{ config('app.name') }}

@if(!isset($document)) {{-- Verification form --}}

Enter a verification code to check the authenticity of an academic document.

@csrf
@error('code')
{{ $message }}
@enderror
@if(isset($error))
{{ $error }}
@endif @else {{-- Verification result --}}
{{ ucfirst($document->document_type ?? 'Document') }}
Code: {{ $document->code }}
@if($document->isValid ?? true) Authentic @else Invalid @endif
@if($document->expires_at ?? null) @endif
Student Name {{ $document->student?->fullName() ?? '—' }}
Student Number {{ $document->student?->student_number ?? '—' }}
Programme {{ $document->programme ?? '—' }}
Document Number {{ $document->document_number ?? '—' }}
Issue Date {{ $document->created_at?->format('d M Y') ?? '—' }}
Expiry Date {{ $document->expires_at->format('d M Y') }}
Institution {{ config('app.name') }}
This verification was performed on {{ now()->format('d M Y, H:i') }}. Verification ID: {{ $document->id ?? 'N/A' }}.
@endif