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

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

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