@extends('layouts.admin')

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

@section('content')
    <section class="dashboard-head">
        <div>
            <span class="eyebrow">Admin</span>
            <h1>Edit Role</h1>
        </div>
        <a class="button ghost" href="{{ route('admin.roles.index') }}">Back</a>
    </section>

    <section class="panel form-panel">
        <form method="POST" action="{{ route('admin.roles.update', $role) }}" class="admin-form">
            @csrf
            @method('PATCH')
            @include('admin.roles._form')
            <button class="button primary" type="submit">Update role</button>
        </form>
    </section>
@endsection
