<form class="row g-3 auto-width" action="{{ route('payment-modes.update', $payment_modes->id)}}" method="post" enctype='multipart/form-data'>
    @csrf
    @method('patch')
    <div class="col-md-12">
        <label for="mode" class="form-label">Name <span class="text-danger"><b>*</b></span></label>
        <input type="text" class="form-control" id="mode" name="mode" aria-describedby="inputGroupPrepend" required value="{{$payment_modes->mode}}">
        <span class="text-danger error_mode" style="display:none;">This field is required.</span>
    </div>
    <div class="col-md-12">
        <label for="code" class="form-label">Code <span class="text-danger"><b>*</b></span></label>
        <input readonly type="text" class="form-control" id="code" name="code" aria-describedby="inputGroupPrepend" required value="{{$payment_modes->mode}}">
        <span class="text-danger error_code" style="display:none;">This field is required.</span>
    </div>
    <div class="col-md-12">
        <label for="validationCustom01" class="form-label">Accounting Group <span class="text-danger"><b>*</b></span></label>
        <select class="form-control" name="accounting_group_id">
            @foreach ($groups as $list)
                <option value="{{ $list->id }}" {{ $list->id == $payment_modes->accounting_group_id ? 'selected':'' }}>{{ $list->name }}</option>
            @endforeach
        </select>
        <span class="text-danger error_country_id" style="display:none;">This field is required.</span>
    </div>
    <div class="col-md-12">
        <label for="priority" class="form-label">Priority </label>
        <input type="number" class="form-control" id="priority" name="priority" aria-describedby="inputGroupPrepend" required value="{{$payment_modes->priority}}">
        <span class="text-danger error_priority" style="display:none;">This field is required.</span>
    </div>
</form>
