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

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

    @include('pages.hr.employees._form', [
        'action' => route('hr.employees.store'),
        'method' => 'POST',
        'employee' => null,
        'departmentOptions' => $departmentOptions,
        'positionOptions' => $positionOptions,
        'managerOptions' => $managerOptions ?? [],
        'employmentStatusOptions' => $employmentStatusOptions ?? [],
        'defaultEmploymentStatusId' => $defaultEmploymentStatusId ?? null,
        'countryOptions' => $countryOptions ?? [],
        'submitLabel' => __('employees.actions.create'),
        'customFieldDefinitions' => $customFieldDefinitions,
        'customFieldValues' => [],
    ])
</x-ui.layout.page>
