@extends('backend.partials.master') @section('title') {{ ___('menus.attendance') }} @endsection @section('maincontent') @foreach($attendance as $a) @php $c = $a->status === 'Present' ? 'success' : ($a->status === 'Absent' ? 'danger' : 'warning'); @endphp {{ $a->date?->translatedFormat('d M Y') }} {{ $a->check_in ?? '—' }} {{ $a->check_out ?? '—' }} {{ $a->hours ? $a->hours.'h' : '—' }} {{ admin_label($a->status) }} @endforeach @endsection