@extends('layouts.app') @section('title', 'My Certificates') @section('content') @if (!$certs) @else
@foreach ($certs as $c) @php $lvl = (string) $c->honor_level; $hi = str_contains($lvl, 'Highest'); $h2 = !$hi && str_contains($lvl, 'High'); $grad = $hi ? 'from-amber-500 to-orange-600' : ($h2 ? 'from-violet-500 to-purple-600' : 'from-sky-500 to-blue-600'); @endphp

Certificate of Recognition

{{ $lvl }}

Period
{{ $c->period_name ?: '—' }}
School Year
{{ $c->school_year }}
@if ($c->general_average !== null)
General Average
{{ number_format((float) $c->general_average, 2) }}
@endif
Certificate No.
{{ $c->certificate_no }}
🖨 View & Print Certificate
@endforeach
@endif @endsection