@extends('eliteadmin::layouts.app')

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

@section('content')
    <div class="page-header">
        <h1 class="page-title">Edit Transaction</h1>
    </div>

    <div class="card">
        <div class="card-body">
            <form action="{{ route('finance.transactions.update', $transaction) }}" method="POST">
                @csrf
                @method('PUT')
                @include('finance::transactions.form')
                <div class="d-flex gap-2 justify-content-end mt-4">
                    <a href="{{ route('finance.transactions.index') }}" class="btn btn-outline-secondary">Cancel</a>
                    <button type="submit" class="btn btn-primary">Update Transaction</button>
                </div>
            </form>
        </div>
    </div>
@endsection
