@if($logoMinpe)
@endif
@if($laureles)
@endif
N° REGISTRO: {{ str_pad($certificate->id, 7, '0', STR_PAD_LEFT) }}
{{ mb_strtoupper($certificate->document_type == 'Diploma' ? 'DIPLOMA' : 'CERTIFICADO') }}
{{ $certificate->document_type == 'Diploma' ? 'CONCEDIDO POR MÉRITOS ACADÉMICOS A:' : 'OTORGADO CON DISTINCIÓN A:' }}
{{ mb_strtoupper($certificate->student->name) }}
@php
$courseName = mb_strtoupper($specialty->name);
$nameLength = strlen($courseName);
$fontSize = 24;
if ($nameLength > 85) {
$fontSize = 15;
} elseif ($nameLength > 65) {
$fontSize = 18;
} elseif ($nameLength > 45) {
$fontSize = 20;
}
@endphp
{{ mb_strtoupper($specialty->course_type ?? $specialty->institution_type ?? 'CURSO ESPECIALIZADO EN') }}
{{ $courseName }}
{{ $courseName }}
Por haber aprobado satisfactoriamente la evaluación por suficiencia de competencias de conformidad con las exigencias académicas institucionales.
@php
$docType = strtolower($certificate->document_type ?? '');
$showHoursAndPeriod = str_contains($docType, 'curso') || str_contains($docType, 'certificado');
@endphp
@if($showHoursAndPeriod)
Realizado con un total de {{ $hours ?? $specialty->academic_hours }} horas académicas. @php $inicio = $start_date ?? $specialty->start_date; $fin = $certificate->issue_date ?? $specialty->end_date; @endphp @if($inicio && $fin)
Periodo: {{ \Carbon\Carbon::parse($inicio)->translatedFormat('d/m/y') }} al {{ \Carbon\Carbon::parse($fin)->translatedFormat('d/m/y') }}. @endif @endif
Realizado con un total de {{ $hours ?? $specialty->academic_hours }} horas académicas. @php $inicio = $start_date ?? $specialty->start_date; $fin = $certificate->issue_date ?? $specialty->end_date; @endphp @if($inicio && $fin)
Periodo: {{ \Carbon\Carbon::parse($inicio)->translatedFormat('d/m/y') }} al {{ \Carbon\Carbon::parse($fin)->translatedFormat('d/m/y') }}. @endif @endif