@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
Name: {{ $user->firstname }} {{ substr($user->middlename, 0, 1) }}. {{ $user->lastname }}
Position: Intern
Hours This Month: {{ floor($totalHoursPerMonth / 60) }} hours {{ $totalHoursPerMonth % 60 }} minutes
{{--Approved By: {{ $approved_by }}
@endifHours This Month: {{ floor($totalHoursPerMonth / 60) }} hours {{ $totalHoursPerMonth % 60 }} minutes
@if (!empty($approved_by))Approved By: {{ strtoupper($approved_by) }}
@endif --}}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' }} |