@extends('layouts.app') @section('content')
{{-- Header Section --}}

Employee Directory

Manage your team members and their access

Add New Employee
{{-- Stats Cards (Optional) --}}

Total Staff

{{ $employees->count() }}

{{-- Employees Table --}}
@forelse($employees as $emp) @empty @endforelse
Avatar Identity & Role Department Status Actions
{{ substr($emp->name, 0, 1) }}
{{ $emp->name }} {{ $emp->email }} {{ $emp->department->name ?? 'Unassigned' }}
{{ $emp->role }}
{{-- View Details --}} {{-- Edit Employee --}} {{-- Delete Form --}}
@csrf @method('DELETE')

No employees found in the system

@if($employees->hasPages())
{{ $employees->links() }}
@endif
{{-- SweetAlert2 for Delete Confirmation --}} @endsection