Masuk
{{ $attendance->check_in ? \Carbon\Carbon::parse($attendance->check_in)->format('H:i') : '--:--' }}
Keluar
{{ $attendance->check_out ? \Carbon\Carbon::parse($attendance->check_out)->format('H:i') : '--:--' }}
Durasi
@if($attendance->check_in && $attendance->check_out)
@php
$start = \Carbon\Carbon::parse($attendance->check_in);
$end = \Carbon\Carbon::parse($attendance->check_out);
$diff = $end->diff($start);
@endphp
{{ $diff->h }}h {{ $diff->i }}m
@else
--:--
@endif
@if($attendance->hasDocument())
{{ $attendance->getDocumentTypeLabel() }}
@endif
@if($attendance->notes)
Keterangan
{{ $attendance->notes }}
@endif