<form class="row g-3 auto-width" action="{{ route('account-titles.update', $account_title->id)}}" method="post" enctype='multipart/form-data'>
    @csrf
    @method('patch')
    <div class="col-md-12">
        <label for="name" class="form-label">Name <span class="text-danger"><b>*</b></span></label>
        <input type="text" class="form-control" id="name" name="name" aria-describedby="inputGroupPrepend" required value="{{$account_title->name}}">
        <span class="text-danger error_name" 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 type="text" class="form-control" id="code" name="code" aria-describedby="inputGroupPrepend" required value="{{$account_title->code}}">
        <span class="text-danger error_code" style="display:none;">This field is required.</span>
    </div>
    <div class="col-md-12">
        <label for="value" class="form-label">Value <span class="text-danger"><b>*</b></span></label>
        <input type="text" class="form-control" id="value" name="value" aria-describedby="inputGroupPrepend" required value="{{$account_title->value}}">
        <span class="text-danger error_value" style="display:none;">This field is required.</span>
    </div>
    <div class="col-md-12">
        <label for="priority" class="form-label">Priority <span class="text-danger"><b>*</b></span></label>
        <input type="number" class="form-control" id="priority" name="priority" aria-describedby="inputGroupPrepend" required value="{{$account_title->priority}}">
        <span class="text-danger error_priority" style="display:none;">This field is required.</span>
    </div>
    <div class="col-md-12">
        <label class="form-label">Gender <span class="text-danger"><b>*</b></span></label>
        <select class="single-select form-control" id="gender_id" name="gender_id">
            <option value=""> Select Gender</option>
            @foreach($genders as $list)
            <option value="{{ $list->id}}" {!! $account_title->gender_id == $list->id ? 'selected' : '' !!}>{{$list->name}}</option>
            @endforeach
        </select>
        <span class="text-danger error_gender_id" style="display:none;">This field is required.</span>
    </div>
</form>
