@php
    $breadcrumbs = [
        ['label' => __('common.home'), 'url' => route('dashboard.index')],
        ['label' => __('common.hr')],
        ['label' => __('departments.title'), 'url' => route('hr.departments.index')],
        ['label' => __('departments.edit_title')],
    ];
@endphp

<x-ui.layout.page
    :title="__('departments.edit_title')"
    :subtitle="$department->name"
    page-icon="fe fe-edit-2"
    :breadcrumbs="$breadcrumbs"
>
    <x-slot:actions>
        <x-ui.buttons.secondary :href="route('hr.departments.index')" icon="fe fe-arrow-left">
            {{ __('departments.actions.back_to_list') }}
        </x-ui.buttons.secondary>
    </x-slot:actions>

    @include('pages.hr.departments._form', [
        'action' => route('hr.departments.update', $department),
        'method' => 'PUT',
        'department' => $department,
        'parentOptions' => $parentOptions,
        'submitLabel' => __('departments.actions.update'),
    ])
</x-ui.layout.page>
