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

<x-ui.layout.page
    :title="__('languages.edit_title')"
    :subtitle="$language->name"
    page-icon="fe fe-edit-2"
    :breadcrumbs="$breadcrumbs"
>
    <x-slot:actions>
        <x-ui.buttons.secondary :href="route('settings.languages.index')" icon="fe fe-arrow-left">
            {{ __('common.back') }}
        </x-ui.buttons.secondary>
    </x-slot:actions>

    @include('pages.settings.languages._form', [
        'action' => route('settings.languages.update', $language),
        'method' => 'PUT',
        'language' => $language,
        'submitLabel' => __('languages.actions.update'),
    ])
</x-ui.layout.page>
