@extends('admin.layouts.app') @section('title', 'Hospital Staff Attendance & Biometric Logs') @section('content')
Biometric & GPS Audit

Staff Attendance & Face Logs

Audit employee duty timestamps, facial verification confidence scores, GPS coordinates, and shift durations.

Today's Check-Ins

{{ $stats['today_total'] }}

Currently On Duty

{{ $stats['today_on_duty'] }}

Shift Departures

{{ $stats['today_completed'] }}

Active Staff Capacity

{{ $stats['total_staff'] }}

Staff Attendance Records

@if($attendances->isEmpty())

No attendance logs found

Staff check-ins and face verifications will appear here in real-time.

Open Attendance Kiosk
@else
@foreach($attendances as $attendance) @endforeach
Employee Date & Shift Check-In Verification Check-Out Verification Worked Hours Status Actions
{{ $attendance->employee?->name ?? 'Staff' }}

{{ $attendance->employee?->name ?? 'N/A' }}

{{ $attendance->employee?->employee_id ?? 'N/A' }}

{{ $attendance->employee?->departmentRelation?->name ?? $attendance->employee?->department }}

{{ $attendance->date?->format('M d, Y') }}

{{ $attendance->employee?->shift?->name ?? 'Regular Shift' }}
@if($attendance->check_in_time)
@if($attendance->check_in_photo) Check-in Face @else @endif

{{ $attendance->formatted_check_in_time }}

{{ $attendance->check_in_face_match_score ? $attendance->check_in_face_match_score . '% Match' : 'Verified' }} @if($attendance->check_in_latitude) @endif
@else Not recorded @endif
@if($attendance->check_out_time)
@if($attendance->check_out_photo) Check-out Face @else @endif

{{ $attendance->formatted_check_out_time }}

{{ $attendance->check_out_face_match_score ? $attendance->check_out_face_match_score . '% Match' : 'Verified' }} @if($attendance->check_out_latitude) @endif
@else On Duty Now @endif
@if($attendance->worked_hours) {{ $attendance->worked_hours }} @else In Progress @endif @if($attendance->check_out_time) Completed @else On Duty @endif
@csrf @method('DELETE')
@if($attendances->hasPages())
{{ $attendances->links() }}
@endif @endif
@endsection