{{-- --}}
@if ($status === 'approved') Ready to Download @elseif ($status === 'declined') Declined @else Waiting for approval.. @endif {{-- @if ($status == 'approved') @endif --}}

OJT Daily Time Record

{{ $pagination['currentMonth']['name'] }}


Name: {{ $user->firstname }} {{ $user->middlename }} {{ $user->lastname }}

Position: Intern

Total Time This Month: {{ floor((int) filter_var($totalHoursPerMonth, FILTER_SANITIZE_NUMBER_INT) / 60) }} hours {{ round((int) filter_var($totalHoursPerMonth, FILTER_SANITIZE_NUMBER_INT) % 60) }} minutes

@if ($approved_by === null || !isset($approved_by)) @if ($declined_by != null || isset($declined_by))

Declined by: {{ $declined_by }}

@else @endif @else

Approved by: {{ $approved_by }}

@endif
@if (isset($records) && count($records) > 0) @foreach ($records as $date => $data) @if ($data['hours_worked'] == '—') @else @if ((int) filter_var($data['hours_worked'], FILTER_SANITIZE_NUMBER_INT) / 60 < 1) @elseif((int) filter_var($data['hours_worked'], FILTER_SANITIZE_NUMBER_INT) / 60 == 1) @elseif((int) filter_var($data['hours_worked'], FILTER_SANITIZE_NUMBER_INT) / 60 > 1) @endif @endif @endforeach @else @endif
Day Time In Time Out Total Time
{{ \Carbon\Carbon::parse($data['date'])->format(' j') }} {{ $data['time_in'] }} {{ $data['time_out'] }} {{ (int) filter_var($data['hours_worked'], FILTER_SANITIZE_NUMBER_INT) }} minutes {{ (int) filter_var($data['hours_worked'], FILTER_SANITIZE_NUMBER_INT) / 60 }} hour {{ floor((int) filter_var($data['hours_worked'], FILTER_SANITIZE_NUMBER_INT) / 60) }} hours {{ round((int) filter_var($data['hours_worked'], FILTER_SANITIZE_NUMBER_INT) % 60) }} minutes
No records found