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

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

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