<form class="row g-3 auto-width bank" action="{{ route('account-banks.update', $bank->id)}}" method="post" enctype='multipart/form-data'>
    @csrf
    @method('patch')
    <div class="col-md-12">
        <label for="account_name" class="form-label">Account name <span class="text-danger"><b>*</b></span></label>
        <input type="text" class="form-control" id="account_name" name="account_name" value="{{$bank->account_name}}" aria-describedby="inputGroupPrepend" required>
        <span class="text-danger error_account_name" style="display: none;">This field is required.</span>
    </div>
    <div class="col-md-12">
        <label for="account_no" class="form-label">Account no <span class="text-danger"><b>*</b></span></label>
        <input type="number" class="form-control" id="account_no" name="account_no" value="{{$bank->account_no}}" aria-describedby="inputGroupPrepend" required>
        <span class="text-danger error_account_no" style="display: none;">This field is required.</span>
    </div>
    <div class="col-md-6">
        <label for="ifsc_code" class="form-label">IFSC code</label>
        <input type="number" class="form-control" id="ifsc_code" name="ifsc_code" value="{{$bank->ifsc_code}}" aria-describedby="inputGroupPrepend" required>
        <span class="text-danger error_ifsc_code" style="display: none;">This field is required.</span>
    </div>
    <div class="col-md-6">
        <label for="swift_code" class="form-label">Swift code</label>
        <input type="text" class="form-control" id="swift_code" name="swift_code" value="{{$bank->swift_code}}" aria-describedby="inputGroupPrepend" required>
        <span class="text-danger error_swift_code" style="display: none;">This field is required.</span>
    </div>
    <div class="col-md-6">
        <label for="bank_name" class="form-label">Bank name <span class="text-danger"><b>*</b></span></label>
        <input type="text" class="form-control" id="bank_name" name="bank_name" value="{{$bank->bank_name}}" aria-describedby="inputGroupPrepend" required>
        <span class="text-danger error_bank_name" style="display: none;">This field is required.</span>
    </div>
    <div class="col-md-6">
        <label for="branch_name" class="form-label">Branch name <span class="text-danger"><b>*</b></span></label>
        <input type="text" class="form-control" id="branch_name" name="branch_name" value="{{$bank->branch_name}}" aria-describedby="inputGroupPrepend" required>
        <span class="text-danger error_branch_name" style="display: none;">This field is required.</span>
    </div>
    <div class="col-md-6">
        <label for="upi_payee_name" class="form-label">UPI Payee name</label>
        <input type="text" class="form-control" id="upi_payee_name" name="upi_payee_name" value="{{$bank->upi_payee_name}}" aria-describedby="inputGroupPrepend" required>
        <span class="text-danger error_upi_payee_name" style="display: none;">This field is required.</span>
    </div>
    <div class="col-md-6">
        <label for="upi_id" class="form-label">UPI Id</label>
        <input type="text" class="form-control" id="upi_id" name="upi_id" value="{{$bank->upi_id}}" aria-describedby="inputGroupPrepend" required>
        <span class="text-danger error_upi_id" style="display: none;">This field is required.</span>
    </div>
    <div class="col-md-6">
        <label for="priority" class="form-label">Priority <span class="text-danger"><b>*</b></span></label>
        <input type="text" class="form-control" id="priority" name="priority" aria-describedby="inputGroupPrepend" required value="{{$bank->priority}}">
        <span class="text-danger error_priority" style="display: none;">This field is required.</span>
    </div>
</form>