@extends('layouts.admin') @section('title', 'Departments') @section('page_title', 'Departments') @section('content')

Departments

Manage company departments and organizational structure.

Add Department
@if(session('success'))
{{ session('success') }}
@endif
@if(request('search')) @endif
@forelse($departments as $dept) @empty @endforelse
Department Name @if(request('sort') === 'name_asc') @elseif(request('sort') === 'name_desc') @else @endif Display ID Status Created At Actions
{{ $dept->name }} {{ $dept->display_id ?? 'N/A' }} {{ $dept->created_at->format('M d, Y') }}
No departments found. Click "Add Department" to create one.
@if($departments->hasPages())
{{ $departments->links() }}
@endif
@endsection