@extends('security.layout') @section('title', 'Riwayat') @section('heading', 'Riwayat Kerja') @section('content')
Absensi terbaru @forelse ($attendances as $record)
{{ $record->location?->name }}
{{ $record->check_in_at?->format('d M Y H:i') }} → {{ $record->check_out_at?->format('H:i') ?? 'aktif' }}
{{ strtoupper($record->status) }}
@empty

Belum ada riwayat absensi.

@endforelse
Patroli terbaru @forelse ($patrols as $session)
{{ $session->location?->name }}
{{ $session->started_at?->format('d M Y H:i') }} · {{ $session->scans_count }} scan
{{ strtoupper($session->status) }}
@empty

Belum ada riwayat patroli.

@endforelse
@endsection @section('nav') Beranda Absensi Patroli Riwayat @endsection