{{ config('app.name') }} Class Register

Class Name: @if ($classSchedule->class) {{ $classSchedule->class->name }} @endif
Location: @if ($classSchedule->location) {{ $classSchedule->location->label }} @endif
Day: {{ $classSchedule->day->value }} Date: {{ $classSchedule->date_at_formated }} Start Time: {{ $classSchedule->start_at_formated }} End Time: {{ $classSchedule->end_at_formated }} Instructor: @if ($classSchedule->instructor) {{ $classSchedule->instructor->name }} @endif
@php $active_bookings = $classSchedule->active_bookings ->sortBy(function ($item, $key) { return $item->user->last_name; }) ->values() ->all(); @endphp @for ($id = 1; $id <= $classSchedule->capacity; $id++) @php $booking = isset($active_bookings[$id - 1]) ? $active_bookings[$id - 1] : false; @endphp @if ($booking) @else @endif @endfor @php $stand_by_bookings = $classSchedule->stand_by_bookings; @endphp @for ($id = 1; $id <= 5; $id++) @php $booking = isset($stand_by_bookings[$id - 1]) ? $stand_by_bookings[$id - 1] : false; @endphp @if ($booking) @else @endif @endfor
S/N Name Status   Confirm Attendance
{{ $id }} {{ $booking->user->name }} ({{ $booking->user->id }}) {{ $booking->user->status->value }}  
{{ $id }}      
Standby    
S{{ $id }} {{ $booking->user->name }} ({{ $booking->user->id }}) {{ $booking->user->status->value }}  
S{{ $id }}      
{{ config('app.name') }} Sign off has_sign_off) checked="checked" @endif />
@if ($classSchedule->has_sign_off)
{{ $classSchedule->admin->name }}
{{ $classSchedule->sign_off_at }}
@endif
Note for INSTRUCTOR
Print Instructor Name:
Sign Instructor:
Date:
{{ config('app.name') }} Staff Sign off: