@extends('layouts.app') @section('title', __('Certificate Verification')) @section('content')
@if ($cert && $cert->status === 'active')

{{ __('Valid certificate') }}

{{ __('Verified & Active') }}
{{ __('Student') }} {{ $cert->student->name ?? '—' }}
{{ __('Course') }} {{ $cert->course->title ?? '—' }}
{{ __('Instructor') }} {{ $cert->course->instructor->name ?? '—' }}
{{ __('Certificate No.') }} {{ $cert->certificate_no }}
{{ __('Date Issued') }} {{ optional($cert->issued_at)->format('F d, Y') ?? '—' }}
{{ __('Verification Code') }} {{ $cert->verification_code }}
@elseif ($cert && $cert->status === 'active' && $cert->isExpired())

{{ __('Certificate expired') }}

{{ __('This certificate was valid until :date. The holder must retake the course to renew it.', ['date' => $cert->valid_until->format('d M Y')]) }}

{{ __('Expired') }}

{{ __('Certificate No:') }} {{ $cert->certificate_no }}

@elseif ($cert && $cert->status === 'revoked')

{{ __('Certificate revoked') }}

{{ __('This certificate exists but has been') }} {{ __('revoked') }} {{ __('and is no longer valid.') }}

{{ __('Revoked') }}

{{ __('Certificate No:') }} {{ $cert->certificate_no }}

@else

{{ __('Certificate not found') }}

{{ __('We could not find a valid certificate matching') }} "{{ $code }}". {{ __('Please double-check the verification code or certificate number and try again.') }}

@endif
@endsection