<form class="row g-3 auto-width" action="{{ route('user-license-validity.update', $user_license_validity->id)}}" method="post" enctype='multipart/form-data'>
    @csrf
    @method('patch')
      {{-- license_id--}}
      <div class="col-md-6">
        <div>
            <label for="lisence_id" class="form-label">License Id <span class="text-danger"><b>*</b></span></label>
        </div>
        <div class="input-group">
            <select class="single-select form-control" name="license_id">
                @foreach ($ClientLicense as $list)
                <option value="{{ $list->id }}" {{ ($list->id == $user_license_validity->license_key) ? 'selected' : '' }}>
                    {{ $list->license_key }}
                @endforeach
            </select>
        </div>
        <span class="text-danger error_license_id" style="display: none;">This field is required.</span>
    </div>
    
     {{-- activation_date --}}
     <div class="col-md-6">
        <label for="activation_date" class="form-label">Activation Date <span class="text-danger"><b>*</b></span></label>
        <input type="text" class="form-control" id="activation_date" placeholder="dd-mm-YY" name="activation_date" aria-describedby="inputGroupPrepend" autocomplete="off" value="{{$user_license_validity->activation_date}}">
        <span class="text-danger error_activation_date" style="display:none;">This field is required.</span>
      </div>
     {{-- valid_upto --}}
     <div class="col-md-6">
        <label for="valid_upto" class="form-label">Valid Upto <span class="text-danger"><b>*</b></span></label>
        <input type="text" class="form-control" id="valid_upto" placeholder="dd-mm-YY" name="valid_upto" aria-describedby="inputGroupPrepend" autocomplete="off" value="{{$user_license_validity->valid_upto}}">
        <span class="text-danger error_activation_date" style="display:none;">This field is required.</span>
      </div>
      {{-- grace_period --}}
      <div class="col-md-6">
        <label for="grace_period" class="form-label">Grace Period <span class="text-danger"><b>*</b></span></label>
        <input type="text" class="form-control" id="grace_period" placeholder="dd-mm-YY" name="grace_period" aria-describedby="inputGroupPrepend" autocomplete="off" value="{{$user_license_validity->grace_period}}">
        <span class="text-danger error_activation_date" style="display:none;">This field is required.</span>
      </div>
</form>