@extends('layouts.management') @section('content')

Organizational Departments

Administrative Structure

Manage operational and functional departments operating across all station branches and hubs.

@if(session('success'))

{{ session('success') }}

@endif

Total Departments

{{ $departments->count() }}

Operational sections & work desks

Active Departments

{{ $departments->where('status', true)->count() }}

Active for staffing & daily workflows

Operating Branches

{{ $departments->pluck('branch_id')->filter()->unique()->count() }}

Locations with designated departments

Departments Directory

Functional sections mapped to their parent branches and designated leadership.

@if($departments->isEmpty())

No Departments Configured

Create departments (e.g. Executive Kitchen, Catering Service, Cashier Counter) under your operating branches.

@else
@foreach($departments as $department) @endforeach
Department Department Head Parent Branch Status Actions
{{ substr($department->department_id, 0, 3) }}
{{ $department->name }}
{{ $department->department_id }}
@if($department->head)
{{ $department->head->name }}
{{ $department->head->email }}
@else Unassigned @endif
@if($department->branch) {{ $department->branch->name }} @else Unassigned @endif @if($department->status) Active @else Inactive @endif Edit
@csrf @method('DELETE')
@endif
@endsection