@php
    $breadcrumbs = [
        ['label' => __('common.home'), 'url' => route('dashboard.index')],
        ['label' => __('settings.title')],
        ['label' => __('rbac.roles.title'), 'url' => route('settings.roles.index')],
        ['label' => $role->name],
    ];
@endphp

<x-ui.layout.page
    :title="__('rbac.roles.edit_title')"
    :subtitle="__('rbac.roles.edit_subtitle')"
    page-icon="fe fe-shield"
    :breadcrumbs="$breadcrumbs"
>
    @include('pages.settings.roles._form', [
        'action' => route('settings.roles.update', $role),
        'method' => 'PUT',
        'role' => $role,
        'matrixGroups' => $matrixGroups,
        'assignedIds' => $assignedIds,
        'submitLabel' => __('common.save'),
    ])
</x-ui.layout.page>
