@extends('adminlte::page') @section('title', 'Staff Attendance | ' . Config::get('adminlte.title')) @section('content_header')

Staff Attendance

@stop @section('content')
@include('layouts.flash-message')

Staff Wise Attendance

Monthly and yearly attendance review for each staff member.

Back to Attendance Table
@if($canChooseUsers) @else @endif
Total Working Days {{ $monthlySummary['working_days'] }} {{ $monthlySummary['total_days_in_month'] }} total - {{ $monthlySummary['sundays'] }} Sundays - {{ $monthlySummary['holidays'] }} holidays
Present Days {{ $monthlySummary['present_days'] }}
Paid Leave {{ $monthlySummary['paid_leave_days'] }}
Unpaid Leave {{ $monthlySummary['unpaid_leave_days'] }}
Late Days {{ $monthlySummary['late_days'] }}
Total Leave This Year {{ $yearlyLeaveSummary['total_leave_days'] }} {{ $yearlyLeaveSummary['paid_leave_days'] }} paid + {{ $yearlyLeaveSummary['unpaid_leave_days'] }} unpaid in {{ $selectedYear }}

Holiday List

{{ $selectedMonth }}
@forelse($holidays as $holiday)
{{ $holiday->title }}

{{ $holiday->desc ?: 'Holiday / event entry' }}

{{ optional($holiday->start_date)->format('Y-m-d') }} to {{ optional($holiday->end_date)->format('Y-m-d') }}
@empty

No holidays listed for this month.

@endforelse

{{ $selectedUser->name }} Monthly Attendance

{{ $selectedMonth }}
@forelse($monthlyRecords as $attendance) @empty @endforelse
Date Check In Check Out Work Hour Late Overtime In Location Out Location
{{ optional($attendance->date)->format('Y-m-d') }} {{ optional($attendance->in_time)->format('H:i:s') }} {{ optional($attendance->out_time)->format('H:i:s') ?? 'Open' }} {{ $attendance->work_hour ?? '--' }} {{ $attendance->late_time ?? '--' }} {{ $attendance->over_time ?? '--' }} {{ optional($attendance->areaIn)->name ?? '--' }} {{ optional($attendance->areaOut)->name ?? '--' }}
No attendance records found for this month.

{{ $selectedUser->name }} Yearly Attendance

{{ $selectedYear }}
@foreach($yearCards as $card)
{{ $card['label'] }} {{ $card['present_days'] }} Present Days

Late: {{ $card['late_days'] }}

Completed: {{ $card['completed_days'] }}

@endforeach
@stop @section('css') @stop