@foreach ($multi_report_card as $report_card)

Boleta de calificaciones

Fecha de emisión: {{ $report_card->creation }}

NOMBRE: {{ $report_card->academic_record->student->full_name }}
MATRICULA: {{ $report_card->academic_record->student_number }}
CARRERA: {{ $report_card->curriculum->name }}

CICLO: {{ $report_card->cycle->year }}-{{ $report_card->cycle->sub_cycle }}

@if (!$report_card->final) @if (!$report_card->final && $report_card->curriculum->has_p1) @endif @if (!$report_card->final && $report_card->curriculum->has_p2) @endif @if (!$report_card->final && $report_card->curriculum->has_p3) @endif @endif @foreach ($report_card->grades as $grade) @php $can_ord = $grade->attendance->can_qualifity; $can_ord_text = $can_ord ? '' : ' RF'; $ext_grade = ''; if (isset($grade->grades['EX3']) && $grade->grades['EX3']->grade > 0) { $ext_grade = $grade->grades['EX3']->grade; } elseif (isset($grade->grades['EX2']) && $grade->grades['EX2']->grade > 0) { $ext_grade = $grade->grades['EX2']->grade; } elseif (isset($grade->grades['EX']) && $grade->grades['EX']->grade > 0) { $ext_grade = $grade->grades['EX']->grade; } $ord_avg = ''; if ( $ext_grade !== '' && $ext_grade < $grade->grades['AVG']->grade_without_ext && $grade->grades['AVG']->grade_without_ext >= $grade->grades['AVG']->min_calification ) { $ord_avg = $can_ord ? $grade->grades['AVG']->grade_without_ext : '5.0'; $ord_avg = " ({$ord_avg})"; } @endphp @if (!$report_card->final) @if ($report_card->curriculum->has_p1) @endif @if ($report_card->curriculum->has_p2) @endif @if ($report_card->curriculum->has_p3) @endif @endif @endforeach @php $colspan = !$report_card->final ? 5 : 4; if (!$report_card->final) { if ($report_card->curriculum->has_p1) { $colspan++; } if ($report_card->curriculum->has_p2) { $colspan++; } if ($report_card->curriculum->has_p3) { $colspan++; } } @endphp
CLAVE MATERIA FALTASPARCIAL 1PARCIAL 2PARCIAL 3ORDINARIOEXTRA PROMEDIO
{{ $grade->cve_subject }} {{ $grade->name }} {{ $grade?->attendance?->total_absences_count ?? '' }}{{ $can_ord_text }} {{ $grade->grades['P1']->grade > 0 ? $grade->grades['P1']->grade : "-" }} {{ $grade->grades['P2']->grade > 0 ? $grade->grades['P2']->grade : "-" }} {{ $grade->grades['P3']->grade > 0 ? $grade->grades['P3']->grade : "-" }} {{ $grade->grades['OR']->grade > 0 ? $grade->grades['OR']->grade : "-" }} {{ $ext_grade }} {{ $grade->grades['AVG']->grade }}{{ $ord_avg }}
PROMEDIO GENERAL DEL CICLO {{ $report_card->average }}

Nomenclatura:
RF: Reprobado por faltas

LIC. LUCÍA VALENCIANO GONZÁLEZ
DIRECCION DE SERVICIOS ESCOLARES

@endforeach