@extends('layouts.app')

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

@section('content')
    <x-page-head :title="'Edit '.$account->code" subtitle="Update account details" />

    <x-panel>
        <form method="POST" action="{{ route('accounting.coa.update', $account) }}">
            @csrf
            @method('PUT')
            @include('admin.coa._form', ['account' => $account])
            <div style="display:flex; gap:10px; margin-top:16px;">
                <button type="submit" class="btn btn-primary">Update Account</button>
                <a href="{{ route('accounting.coa.index') }}" class="btn btn-outline">Cancel</a>
            </div>
        </form>
    </x-panel>
@endsection
