@extends('layouts.manager') @section('header')

👨‍💼 Manager Dashboard

@endsection @section('content')

Welcome back, {{ auth()->user()->name }}!

Here's your management overview

@php $employee = \App\Models\Employee::where('user_id', auth()->id())->first(); @endphp @if($employee)
🆔 Employee No: {{ $employee->employee_no }}
@endif

Team Overview

Team Members
{{ \App\Models\Employee::count() }}
Present Today
{{ \App\Models\Attendance::whereDate('attendance_date', today())->count() }}
Pending Leaves
{{ \App\Models\Leave::where('status', 'pending')->count() }}
This Month
{{ \App\Models\Attendance::whereMonth('attendance_date', now()->month)->count() }} days

Quick Actions

👥 View Team
Manage team members
📋 Review Leaves
Approve/reject requests
📅 Team Attendance
Monitor attendance
@if(\App\Models\Leave::where('status', 'pending')->exists())

🔔 Pending Leave Requests

@foreach(\App\Models\Leave::where('status', 'pending')->latest()->take(5)->get() as $leave) @endforeach
Employee Leave Type Date Range Status Action
{{ $leave->user->name }} {{ $leave->leave_type }} {{ \Carbon\Carbon::parse($leave->start_date)->format('M d') }} - {{ \Carbon\Carbon::parse($leave->end_date)->format('M d, Y') }} Pending Review
@endif @endsection