@extends('layouts.admin')

@section('title', 'Edit Admin User')

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

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