@props(['course', 'user']) {{-- The certificate itself. Sized in cqw, so it scales to any width: full page, print or a card thumbnail. --}} @php $number = sprintf('%s-%s-%03d-%04d', \App\Models\Setting::get('certificate_prefix'), $course->completed_on->format('Y'), $course->id, $user->id); @endphp @once @endonce
merge(['class' => 'cert-wrap']) }}>
{{-- Frame: rules and edge chevrons, drawn in millimetres on the A4 sheet --}} {{-- Medal: 24-point rosette around the logo --}} @php $rosette = collect(range(0, 47))->map(function ($i) { $r = $i % 2 ? 40 : 46; $a = deg2rad($i * 7.5 - 90); return round(50 + $r * cos($a), 2).','.round(50 + $r * sin($a), 2); })->implode(' '); @endphp

CERTIFICATE

OF COMPLETION

No.: {{ $number }}

AWARDED TO

{{ $user->name }}

FOR SUCCESSFULLY COMPLETING ALL {{ $course->lessons_count }} {{ Str::upper(Str::plural('lesson', $course->lessons_count)) }} OF THE COURSE

{{ $course->title }}

Completed on {{ $course->completed_on->format('j F Y') }}@if ($course->department), {{ $course->department }} track @endif

{{ $course->instructor?->name ?? 'Meridian' }}

COURSE INSTRUCTOR

ISSUED BY

{{ \App\Models\Setting::get('org_name') }}

Learning & Development

NOTE

Issued electronically by Meridian LMS and valid without a handwritten signature. Certificate no. {{ $number }}.