<form class="row g-3 auto-width" action="{{ route('user-license.update', $user_license->id)}}" method="post" enctype='multipart/form-data'>
    @csrf
    @method('patch')
     {{-- unique_client_code --}}
     <div class="col-md-6">
        <label for="unique_client_code" class="form-label">Unique Client Code <span class="text-danger"><b>*</b></span></label>
        <input type="number" class="form-control" id="unique_client_code" name="unique_client_code" aria-describedby="inputGroupPrepend" required value="{{$user_license->unique_client_code}}">
        <span class="text-danger error_unique_client_code" style="display:none;">This field is required.</span>
    </div>
     {{-- client_mail_id --}}
     <div class="col-md-6">
        <label for="client_mail_id" class="form-label"> Client Mail ID <span class="text-danger"><b>*</b></span></label>
        <input type="number" class="form-control" id="client_mail_id" name="client_mail_id" aria-describedby="inputGroupPrepend" required value="{{$user_license->client_mail_id}}">
        <span class="text-danger error_client_mail_id" style="display:none;">This field is required.</span>
    </div>
    {{-- Product Code --}}
    <div class="col-md-6">
        <div>
            <label for="product_code" class="form-label">Product Code <span class="text-danger"><b>*</b></span></label>
        </div>
        <div class="input-group">
            <select class="single-select form-control" name="product_code">
                @foreach ($product_code as $list)
                    <option value="{{ $list->id }}" {{ ($list->id == $user_license->product_code) ? 'selected' : '' }}>
                        {{ $list->shortcode }}
                    </option>
                @endforeach
            </select>
        </div>
        <span class="text-danger error_product_code" style="display: none;">This field is required.</span>
    </div>
     {{-- license_no --}}
     <div class="col-md-6">
        <label for="license_no" class="form-label"> License # <span class="text-danger"><b>*</b></span></label>
        <input type="number" class="form-control" id="license_no" name="license_no" aria-describedby="inputGroupPrepend" required value="{{$user_license->license_no}}">
        <span class="text-danger error_license_no" style="display:none;">This field is required.</span>
    </div>
     {{-- license_key --}}
     <div class="col-md-6">
        <label for="license_key" class="form-label"> License Key <span class="text-danger"><b>*</b></span></label>
        <input type="text" class="form-control" id="license_key" name="license_key" aria-describedby="inputGroupPrepend" required value="{{$user_license->license_key}}">
        <span class="text-danger error_license_key" style="display:none;">This field is required.</span>
    </div>
     {{-- registration_date --}}
     <div class="col-md-6">
        <label for="registration_date" class="form-label">Registration Date <span class="text-danger"><b>*</b></span></label>
        <input type="text" class="form-control" id="registration_date" placeholder="dd-mm-YY" name="registration_date" aria-describedby="inputGroupPrepend" autocomplete="off" value="{{$user_license->registration_date}}">
        <span class="text-danger error_registration_date" style="display:none;">This field is required.</span>
      </div>
   
</form>