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

<x-ui.layout.page
    :title="__('positions.create_title')"
    page-icon="fe fe-plus"
    :breadcrumbs="$breadcrumbs"
>
    <x-slot:actions>
        <x-ui.buttons.secondary :href="route('hr.positions.index')" icon="fe fe-arrow-left">
            {{ __('positions.actions.back_to_list') }}
        </x-ui.buttons.secondary>
    </x-slot:actions>

    @include('pages.hr.positions._form', [
        'action' => route('hr.positions.store'),
        'method' => 'POST',
        'position' => null,
        'departmentOptions' => $departmentOptions,
        'submitLabel' => __('positions.actions.create'),
    ])
</x-ui.layout.page>
