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

<x-ui.layout.page
    :title="__('positions.edit_title')"
    :subtitle="$position->title"
    page-icon="fe fe-edit-2"
    :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.update', $position),
        'method' => 'PUT',
        'position' => $position,
        'departmentOptions' => $departmentOptions,
        'submitLabel' => __('positions.actions.update'),
    ])
</x-ui.layout.page>
