New department
@if (request()->hasAny(['q', 'type'])) Clear @endif
@if ($departments->isEmpty()) New department @else
@foreach ($departments as $department) @endforeach
Department Type Head Location Staff Status Actions
{{ $department->name }}
{{ $department->code }}
{{ $department->head?->name ?? '—' }} {{ $department->location ?: '—' }} {{ $department->staff_count }} @if ($department->is_active) @else @endif
@csrf @method('DELETE')
@if ($departments->hasPages())
{{ $departments->links() }}
@endif @endif