@extends('layout') @section('title', 'Dashboard') @section('content')
{{ $presentCount }}
Present now
{{ $lateList->count() }}
Late today
{{ $recentPunches->count() }}
Punches today

Who's in

@if($whoIsIn->isEmpty())

No one is currently checked in.

@else
@foreach($whoIsIn as $event) @endforeach
EmployeeSiteSince
{{ $event->employee->emp_id }} — {{ $event->employee->name }} {{ $event->site->name }} {{ $event->ts->format('H:i') }}
@endif

Late today (after {{ \App\Models\AppSetting::current()->shift_start }})

@if($lateList->isEmpty())

No late arrivals.

@else
@foreach($lateList as $event) @endforeach
EmployeeSiteFirst IN
{{ $event->employee->emp_id }} — {{ $event->employee->name }} {{ $event->site->name }} {{ $event->ts->format('H:i') }}
@endif

Recent punches

@if($recentPunches->isEmpty())

No punches recorded today.

@else
@foreach($recentPunches as $event) @endforeach
TimeEmployeeDirectionSiteSourceConfidence
{{ $event->ts->format('H:i:s') }} {{ $event->employee->emp_id }} — {{ $event->employee->name }} {{ $event->direction }} {{ $event->site->name }} {{ $event->source }} {{ number_format($event->confidence, 2) }}
@endif
@endsection