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

<x-ui.layout.page
    :title="__('departments.create_title')"
    page-icon="fe fe-plus"
    :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.store'),
        'method' => 'POST',
        'department' => null,
        'parentOptions' => $parentOptions,
        'submitLabel' => __('departments.actions.create'),
    ])
</x-ui.layout.page>
