@php $pagination = is_string($pagination) ? json_decode($pagination, true) : $pagination; $records = is_string($records) ? json_decode($records, true) : $records; // $profile = \App\Models\Profile::where('id', $user->profile_id)->first(); // $file = \App\Models\File::where('id', $profile->file_id)->first(); // $fileId = $file->description; @endphp
RWEB Logo Profile Image

OJT Daily Time Record

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


Name: {{ $user->firstname }} {{ substr($user->middlename, 0, 1) }}. {{ $user->lastname }}

Position: Intern

Hours This Month: {{ floor($totalHoursPerMonth / 60) }} hours {{ $totalHoursPerMonth % 60 }} minutes

{{-- RWEB Logo --}} {{-- Profile Image --}} @if (!empty($approved_by))

Approved By: {{ $approved_by }}

@endif
{{--

Hours This Month: {{ floor($totalHoursPerMonth / 60) }} hours {{ $totalHoursPerMonth % 60 }} minutes

@if (!empty($approved_by))

Approved By: {{ strtoupper($approved_by) }}

@endif --}} @foreach ($records as $date => $data) @endforeach
Day Time In Time Out Total Hours
{{ \Carbon\Carbon::parse($data['date'])->format('j') }} {{ $data['time_in'] }} {{ $data['time_out'] }} {{ $data['hours_worked'] == '—' ? '—' : floor($data['hours_worked'] / 60) . ' hours ' . $data['hours_worked'] % 60 . ' minutes' }}