@php
    use App\Support\LocalizedName;

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

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

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

@push('scripts')
    <script src="{{ asset('assets/admin/js/erp-geo-cascade.js') }}"></script>
@endpush
