@extends('layouts.app') @section('title', 'Clock In/Out') @section('subtitle', 'Biometric attendance system') @section('content')

Biometric Scanner

Place finger on scanner

Touch to scan biometric

Scanner Ready

Manual Entry

@csrf

Today's Summary

Clock Ins

{{ $stats['clock_ins'] }}

Clock Outs

{{ $stats['clock_outs'] }}

Underground

{{ $stats['underground'] }}

Late Arrivals

{{ $stats['late_arrivals'] }}

@if($undergroundEmployees->count() > 0)

Currently Underground

@foreach($undergroundEmployees as $employee)
{{ substr($employee['name'], 0, 2) }}

{{ $employee['name'] }}

{{ $employee['employee_id'] }} • {{ $employee['department'] }}

{{ $employee['duration'] }}

@endforeach
@endif

Recent Activity

@forelse($recentActivity as $activity)

{{ $activity['employee_name'] }}

{{ $activity['employee_id'] }} • {{ ucfirst(str_replace('_', ' ', $activity['action'])) }}

{{ Carbon\Carbon::parse($activity['timestamp'])->format('H:i') }}

@empty

No recent activity

@endforelse
@endsection