@extends('layouts.admin')

@section('title', 'Edit Role: ' . $role->name)
@section('header_title', 'Edit Role: ' . $role->name)

@section('content')
<div class="bg-white dark:bg-gray-800 shadow-xl rounded-lg overflow-hidden">
    <div class="p-6 lg:p-8">
        @include('admin.partials.alerts')

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