@extends('layouts.app')

@section('title', 'Edit Role')

@section('content')
    <x-breadcrumbs :items="[
        ['label' => 'Dashboard', 'url' => route('dashboard')],
        ['label' => 'Roles', 'url' => route('admin.roles.index')],
        ['label' => $role->name, 'url' => route('admin.roles.show', $role)],
        ['label' => 'Edit'],
    ]" />

    <x-page-header title="Edit Role" :subtitle="$role->name" />

    <x-card>
        <form method="POST" action="{{ route('admin.roles.update', $role) }}">
            @csrf
            @method('PUT')
            @include('admin.roles._form', ['role' => $role])
        </form>
    </x-card>
@endsection
