{{ $staff->getName() ?? 'Guest' }}
| {{ ucfirst($day) }} | @endforeachTotal | ||||||
|---|---|---|---|---|---|---|---|
|
@if( $d->copy()->addWeeks($i)->addDays( $key )->lt($l) || $d->copy()->addWeeks($i)->addDays( $key )->eq($l) )
{{ $d->copy()->addWeeks($i)->addDays( $key )->format('d'); }}
{{ $clock_time['total_time'] ?? '' }} |
@else
@if( $d->copy()->addWeeks($i)->addDays( $key )->lt($l) || $d->copy()->addWeeks($i)->addDays( $key )->eq($l) )
{{ $d->copy()->addWeeks($i)->addDays( $key )->format('d'); }}
|
@endif
@php $rowTotal += $clock_time['time']; @endphp
@else
@if( $d->copy()->addWeeks($i)->addDays( $key )->lt($l) || $d->copy()->addWeeks($i)->addDays( $key )->eq($l) )
{{ $d->copy()->addWeeks($i)->addDays( $key )->format('d'); }}
@endif
|
@endif
@endforeach
@php $partsWeNeed = ( $rowTotal / 3600 ) > 1 ? 2 : 1; @endphp {{ $rowTotal > 60 ? \Carbon\CarbonInterval::seconds($rowTotal)->cascade() ->forHumans(['short' => true, 'join' => true, 'parts' => $partsWeNeed ]) : 0 }} | ||||
| Grand Total | @php $partsWeNeed = ( $grandTotal / 3600 ) > 1 ? 2 : 1; @endphp {{ $grandTotal > 60 ? \Carbon\CarbonInterval::seconds($grandTotal)->cascade() ->forHumans(['short' => true, 'join' => true, 'parts' => $partsWeNeed ]) : 0 }} | ||||||