@extends('layouts.app') @section('title', 'Manager Dashboard') @section('content')

Manager Dashboard

Manage team leave and overtime requests

Team Directory Team Attendance
{{-- Statistics Cards --}}

Pending Leaves

{{ $stats['pending_leaves'] }}

Pending Overtime

{{ $stats['pending_overtimes'] }}

Total Employees

{{ $stats['total_employees'] }}

{{-- Pending Leave Requests --}}
Pending Leave Requests
@if($pendingLeaves->count() > 0)
@foreach($pendingLeaves as $leave) @endforeach
Employee Leave Type Period Days Reason Requested Actions
{{ strtoupper(substr($leave->employee->name, 0, 1)) }}
{{ $leave->employee->name }}
{{ $leave->employee->employee_id }}
{{ $leave->leaveType->leave_name }} {{ $leave->start_date->format('d M Y') }}
to {{ $leave->end_date->format('d M Y') }}
{{ $leave->total_days }} days @if($leave->reason) {{ Str::limit($leave->reason, 50) }} @else - @endif {{ $leave->created_at->diffForHumans() }}
@csrf
{{-- Reject Modal --}}
@else

No pending leave requests

@endif
{{-- Pending Overtime Requests --}}
Pending Overtime Requests
@if($pendingOvertimes->count() > 0)
@foreach($pendingOvertimes as $overtime) @endforeach
Employee Date Time Hours Reason Requested Actions
{{ strtoupper(substr($overtime->employee->name, 0, 1)) }}
{{ $overtime->employee->name }}
{{ $overtime->employee->employee_id }}
{{ $overtime->overtime_date->format('d M Y') }} {{ $overtime->start_time }} - {{ $overtime->end_time }} {{ $overtime->total_hours }} hours @if($overtime->reason) {{ Str::limit($overtime->reason, 50) }} @else - @endif {{ $overtime->created_at->diffForHumans() }}
@csrf
{{-- Reject Modal --}}
@else

No pending overtime requests

@endif
@endsection