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

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

    @include('pages.inventory.categories._form', [
        'action' => route('inventory.categories.store'),
        'method' => 'POST',
        'submitLabel' => __('inventory.categories.actions.create'),
        'parentOptions' => $parentOptions,
    ])
</x-ui.layout.page>
