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 --}} @foreach ($records as $date => $data) @endforeachDay | 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' }} |