<form class="row g-3 auto-width license" action="{{ route('company-documents.store')}}" method="post" enctype='multipart/form-data'>
    @csrf
    <div class="col-md-12">
        <div>
            <label for="license_type_id" class="form-label">Company Document Type <span class="text-danger"><b>*</b></span></label>
        </div>
        <div class="input-group">
            <select class="single-select form-control" name="license_type_id">
                @foreach($types as $list)
                <option value="{{ $list->id }}">{{ $list->license_type_name }}</option>
                @endforeach
            </select>
            {{-- <div class="input-group-append" style="margin: auto 10px;">
                <button class="btn btn-success add_btn create_license_types" type="button" style="border-radius: 20px;"> + </button>
            </div> --}}
        </div>
        <span class="text-danger error_license_type_id" style="display: none;">This field is required.</span>
    </div>
    <input type="hidden" name="company_id" data-id="{!! $id !!}">
    <div class="col-md-12">
        <label for="license_number" class="form-label">License/Document Number <span class="text-danger"><b>*</b></span></label>
        <input type="text" class="form-control" id="license_number" name="license_number" aria-describedby="inputGroupPrepend" required>
        <span class="text-danger error_license_number" style="display: none;">This field is required.</span>
    </div>
    <div class="col-md-12">
        <label for="attachment" class="form-label">Attachment </label>
        <input type="file" class="form-control" id="attachment" name="attachment" aria-describedby="inputGroupPrepend" required>
        <span class="text-danger error_attachment" style="display: none;">This field is required.</span>
    </div>
    <div class="col-md-6">
        <label for="date_from" class="form-label">Date From </label>
        <input type="text" class="form-control" id="date_from" name="valid_from" autocomplete="off" readonly style="cursor: pointer">
        <span class="text-danger error_valid_from" style="display: none;">This field is required.</span>
    </div>
    <div class="col-md-6">
        <label for="date_to" class="form-label">Date Upto </label>
        <input type="text" class="form-control" id="date_to" name="valid_upto"  autocomplete="off" readonly style="cursor: pointer">
        <span class="text-danger error_valid_upto" style="display: none;">This field is required.</span>
    </div>
</form>
