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

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

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