@php $logoPath = public_path('images/siit_workload_logo.png'); $logoData = is_file($logoPath) ? 'data:image/png;base64,' . base64_encode(file_get_contents($logoPath)) : null; $acknowledged = $status === 'Approved'; // Only the user who actually acknowledged may appear in the signature field. $signedName = $acknowledged ? trim((string) ($decider ?? '')) : ''; $signedDate = $acknowledged && !empty($approval->decided_at) ? \Illuminate\Support\Carbon::parse($approval->decided_at)->format('d / m / Y') : ''; $schoolLabel = trim((string) ($schoolShortName ?? '')) ?: $schoolName; @endphp
@if($logoData) @endif
Workload Table - Summary
School of {{ $schoolName }}
Academic Year {{ $year }} Semester {{ $semester }}
Summary of Courses
@foreach($rows as $r) @endforeach
Course
Number
Brief Title Section
Number
Number of
Students
Lecture Schedule Lecturer TA for Lecture
Course
Lab Schedule Lab TA Tutorial Schedule Tutors
{{ $r->course_code }} {!! nl2br(e($r->course_title)) !!} {{ $r->course_section }} {{ $r->course_student }} {!! nl2br(e($r->lecture_schedule)) !!} {!! nl2br(e($r->lecturer)) !!} {!! nl2br(e($r->lecture_ta)) !!} {!! nl2br(e($r->lab_schedule)) !!} {!! nl2br(e($r->lab_ta)) !!} {!! nl2br(e($r->tutorial_schedule)) !!} {!! nl2br(e($r->tutors)) !!}
Remark: * means the adjunct faculty member.
{{ $signedName }}
Head of School of {{ $schoolLabel }}
Date {{ $signedDate }}