{{-- Header --}}

{{ __('My Certificates') }}

{{ __('Your earned credentials and digital achievements') }}

{{-- Safely linking to your existing portfolio route from line 705 --}} {{ __('View Portfolio') }}
{{-- Stats Cards --}}

{{ $totalCertificates ?? 0 }}

{{ __('Earned') }}

{{ $activeCertificates ?? 0 }}

{{ __('Active') }}

{{ $sharedCount ?? 0 }}

{{ __('Shared') }}

{{-- Certificates Grid --}} @if(count($certificates ?? []) > 0)
@foreach($certificates as $cert)
{{-- Certificate Preview --}}

{{ __('Certificate of') }}

{{ $cert['type'] }}

@if($cert['is_revoked'])
{{ __('Revoked') }}
@endif
{{-- Certificate Info --}}

{{ $cert['title'] }}

{{ $cert['subject'] }}

{{ $cert['issued_at'] }}
{{-- Overlay to gray out revoked certs --}} @if($cert['is_revoked'])
@endif
@endforeach
@else

{{ __('No certificates yet') }}

{{ __('Complete courses, pass exams, and achieve milestones to earn your first digital certificate.') }}

@endif