@extends('admin.layout') @section('title', 'Laporan Absensi') @section('subtitle', 'Riwayat absensi relawan') @section('content') {{-- Filter --}}
@php $selectedUser = $volunteers->firstWhere('id', request('user_id')); $selectedText = $selectedUser ? $selectedUser->name : 'Semua Relawan'; @endphp
Reset

Hasil Laporan

{{-- Results Table --}}
@if ($attendances->count())
@foreach ($attendances as $att) @endforeach
Tanggal Nama Masuk Pulang Status Masuk Status Pulang Foto
{{ $att->date->format('d/m/Y') }}
{{ substr($att->user->name, 0, 1) }}
{{ $att->user->name }}
{{ $att->check_in_time ? \Carbon\Carbon::parse($att->check_in_time)->format('H:i') : '-' }} {{ $att->check_out_time ? \Carbon\Carbon::parse($att->check_out_time)->format('H:i') : '-' }} @if ($att->status_in === 'ontime') Tepat Waktu @elseif ($att->status_in === 'late') Terlambat @else - @endif @if ($att->status_out === 'ontime') Tepat Waktu @elseif ($att->status_out === 'early_leave') Pulang Awal @else - @endif
@if ($att->check_in_photo) @endif @if ($att->check_out_photo) @endif @if (!$att->check_in_photo && !$att->check_out_photo) @endif
{{-- Pagination --}}
{{ $attendances->withQueryString()->links() }}
@else

Tidak ada data absensi

Belum ada relawan yang absen atau coba sesuaikan filter Anda.

@endif
@push('scripts') @endpush @endsection