@php $days = ['monday' => 'Monday', 'tuesday' => 'Tuesday', 'wednesday' => 'Wednesday', 'thursday' => 'Thursday', 'friday' => 'Friday']; $isSection = $reportType === 'section_schedule'; $leftLogo = $schoolProfile->logoFilePath('left'); $rightLogo = $schoolProfile->logoFilePath('right'); @endphp
@if ($leftLogo)@endif
Republic of the Philippines
DEPARTMENT OF EDUCATION
@if ($schoolProfile->division)
{{ $schoolProfile->division }}
@endif @if ($schoolProfile->school_name)
{{ $schoolProfile->school_name }}
@endif @if ($schoolProfile->address)
{{ $schoolProfile->address }}
@endif
@if ($rightLogo)@endif
@if ($isSection)
CLASS PROGRAM
{{ $reportData['section']->name }}
@if ($schoolYear?->name)SCHOOL YEAR {{ $schoolYear->name }}@endif @if ($term?->name) • {{ $term->name }}@endif
{{ $reportData['section']->gradeLevel?->name ?? 'No Grade Level' }} @if ($reportData['section']->pathway?->name) • {{ $reportData['section']->pathway->name }}@endif @if ($reportData['section']->shiftType?->name) • {{ $reportData['section']->shiftType->name }}@endif
@foreach ($days as $dayLabel)@endforeach @foreach ($days as $dayLabel) @endforeach @foreach ($reportData['grid'] as $row) @php $slot = $row['time_slot']; $isBreak = (bool) ($slot->is_break ?? false); @endphp @if ($isBreak) @else @foreach (array_keys($days) as $dayKey) @php $entry = $row['days'][$dayKey] ?? null; $entrySubject = $entry['subjectModel'] ?? null; $color = \App\Support\SubjectColor::for($entrySubject); @endphp @if ($entry && $entrySubject?->is_activity) @elseif ($entry) @else @endif @endforeach @endif @endforeach @foreach (array_keys($days) as $dayKey) @endforeach
Start End Duration{{ $dayLabel }}Room Remarks
Subject Teacher
{{ $slot->start_time ? date('g:i A', strtotime($slot->start_time)) : '' }} {{ $slot->end_time ? date('g:i A', strtotime($slot->end_time)) : '' }} {{ $slot->duration_label }}{{ $slot->label ?: 'Break' }} {{ $entry['subject'] ?? '—' }}{{ $entry['subject'] ?? '—' }} {{ $entry['teacher'] ?? 'No Teacher' }}— —{{ $row['room'] ?? '' }}
Total Number of Hours{{ number_format($reportData['dailyTotals'][$dayKey] ?? 0, 2) }}{{ number_format($reportData['overallTotal'] ?? 0, 2) }}
@else
TEACHERS INDIVIDUAL PROGRAM
{{ $term?->name }}@if ($schoolYear?->name) SCHOOL YEAR {{ $schoolYear->name }}@endif
Teacher: {{ strtoupper($reportData['teacher']->full_name) }} Total Hours: {{ \App\Support\HoursFormatter::hm((float) ($reportData['totalHours'] ?? 0)) }}
@foreach ($days as $dayLabel)@endforeach @foreach ($reportData['grid'] as $row) @php $slot = $row['time_slot']; @endphp @foreach (array_keys($days) as $dayKey) @php $entry = $row['days'][$dayKey] ?? null; @endphp @if (!$slot->is_break && $entry) @else @endif @endforeach @endforeach
Time{{ $dayLabel }}
{{ $row['time_label'] ?? $slot->time_range }}{{ ($entry['subjectCode'] ?: $entry['subject']) . '-' . ($entry['section'] ?? '—') }}
@endif {{-- Each signer signs over their printed, underlined name; a missing principal name leaves a blank line to write on. --}} @php $signatures = $isSection ? [[null, null, null], ['Approved by:', $schoolProfile->principalName(), 'School Principal']] : [['Prepared by:', $reportData['teacher']->full_name, 'Teacher'], ['Approved by:', $schoolProfile->principalName(), 'School Principal']]; @endphp @foreach ($signatures as [$caption]) @if (!$loop->last)@endif @endforeach @foreach ($signatures as [$caption, $name]) @if (!$loop->last)@endif @endforeach @foreach ($signatures as [$caption, $name, $title]) @if (!$loop->last)@endif @endforeach
{{ $caption }}
@if ($caption){!! filled($name) ? e($name) : ' ' !!}@endif
{{ $title }}