@php
    use App\Support\LocalizedName;

    $breadcrumbs = [
        ['label' => __('common.home'), 'url' => route('dashboard.index')],
        ['label' => __('nav.group.administration')],
        ['label' => __('geography.title'), 'url' => route('settings.geography.regions.index')],
        ['label' => __('geography.regions.edit_title')],
    ];
@endphp

<x-ui.layout.page
    :title="__('geography.regions.edit_title')"
    :subtitle="LocalizedName::fromModel($region)"
    page-icon="fe fe-edit-2"
    :breadcrumbs="$breadcrumbs"
>
    @include('pages.settings.geography._nav', ['activeTab' => $activeTab])

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