@extends('dashboard.layouts.app') @section('content')
@if (session('success')) @endif @if ($errors->any()) @endif
@if(in_array(auth()->user()?->staff?->department_id, $hr_department_ids)) @else
{{ auth()->user()?->staff?->staff_no }} - {{ auth()->user()?->full_name ?? (auth()->user()?->staff?->first_name . ' ' . auth()->user()?->staff?->last_name) }}
@endif
toDateString())->startOfMonth()->toDateString() }}">
Clear
@if ($users->isNotEmpty())
Attendance Summary
{{ $working_days ?? 0 }}
Working Days
{{ count($attendances ?? []) }}
Present
{{ $absent_days ?? 0 }}
Absent
{{ $total_hours ?? '00:00:00' }}
Total Working Hours
{{ number_format( $average_hours , 2)?? '00:00:00' }}
Avg. Working Hours
@foreach ($attendances as $attendance) {{-- --}} @endforeach
Name Date Check In Check Out
{{ $attendance->first_name . ' ' . $attendance->last_name }} {{ $attendance->attendence_date }} {{ $attendance->check_in}} {{ $attendance->check_out }}
@else

Please select a staff member and date to view attendance.

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