@extends('layouts.app') @section('title', $department->name) @section('content')

{{ $department->name }}

Department overview & employees

Edit Back to List
@include('partials.alerts')
Department Head

{{ $department->head_name ?? 'Not assigned' }}

{{ $department->head_email ?? 'Email not provided' }}

Contact

{{ $department->contact_number ?? '—' }}

Description

{{ $department->description ?? 'No description provided.' }}

Employees
@forelse($department->employees as $employee) @empty @endforelse
Name Email Role Status
{{ $employee->name }} {{ $employee->email ?? '—' }} {{ ucfirst($employee->role ?? '—') }} {{ $employee->is_active ? 'Active' : 'Inactive' }}
No employees yet.
@endsection