@props(['department' => null, 'types' => [], 'heads' => []]) @php $headOptions = $heads->mapWithKeys(fn ($head) => [ $head->id => $head->designation ? "{$head->name} — {$head->designation}" : $head->name, ]); @endphp