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

<x-ui.layout.page
    :title="__('plans.actions.edit')"
    page-icon="fe fe-edit"
    :breadcrumbs="$breadcrumbs"
>
    @include('pages.admin.plans._form', [
        'action' => route('admin.plans.update', $plan),
        'method' => 'PUT',
        'plan' => $plan,
        'modules' => $modules,
        'selectedModules' => $selectedModules,
        'submitLabel' => __('common.update'),
    ])
</x-ui.layout.page>
