<form class="row g-3 auto-width" action="{{ route('e-way-bill-api-settings.store')}}" method="post" enctype='multipart/form-data'>
    <!-- For validation comment on -->
    <!-- <form class="row g-3 was-validated"> -->
    @csrf
     <!--Base Url -->
    <div class="col-md-12">
        <label for="base_url" class="form-label">Base Url <span class="text-danger"><b>*</b></span></label>
        <input type="text" class="form-control" id="base_url" name="base_url" aria-describedby="inputGroupPrepend" required placeholder="Base Url">
        <span class="text-danger error_base_url" style="display: none;">This field is required.</span>
    </div>
    <!--Company -->
      <div class="col-md-6">
        <div>
            <label for="company_id" class="form-label">Company <span class="text-danger"><b>*</b></span></label>
        </div>
        <div class="input-group">
            <select class="single-select form-control" name="company_id">
                <option value=""> ---Select Company ---</option>                
                @foreach ($company as $list)
                <option value="{{ $list->id }}">{{ $list->name }}</option>
                @endforeach
            </select>
        </div>
        <span class="text-danger error_company_id" style="display: none;">This field is required.</span>
    </div>
    <!--Email -->
    <div class="col-md-6">
        <label for="email" class="form-label">Email <span class="text-danger"><b>*</b></span></label>
        <input type="text" class="form-control" id="email" name="email" aria-describedby="inputGroupPrepend" required placeholder="Email">
        <span class="text-danger error_email" style="display: none;">This field is required.</span>
    </div>
    <!--User Name -->
    <div class="col-md-6">
        <label for="user_name" class="form-label">User Name <span class="text-danger"><b>*</b></span></label>
        <input type="text" class="form-control" id="user_name" name="user_name" aria-describedby="inputGroupPrepend" required placeholder="User Name">
        <span class="text-danger error_user_name" style="display: none;">This field is required.</span>
    </div>
    <!--Password -->
    <div class="col-md-6">
        <label for="password" class="form-label">Password</label> <span class="text-danger"><b>*</b></span>
        <input type="password" class="form-control" id="password" name="password" aria-describedby="inputGroupPrepend" required placeholder="Password" >
        <span class="text-danger error_password" style="display: none;">This field is required.</span>
    </div> 
    <!--Client Secret -->
    <div class="col-md-6">
        <label for="client_secret" class="form-label">Client Secret</label> <span class="text-danger"><b>*</b></span>
        <input type="text" class="form-control" id="client_secret" name="client_secret" aria-describedby="inputGroupPrepend" required placeholder="Client Secret">
        <span class="text-danger error_client_secret" style="display: none;">This field is required.</span>
    </div>
     <!--Client ID -->
    <div class="col-md-6">
        <label for="client_id" class="form-label">Client ID</label> <span class="text-danger"><b>*</b></span>
        <input type="text" class="form-control" id="client_id" name="client_id" aria-describedby="inputGroupPrepend" required placeholder="Client ID">
        <span class="text-danger error_client_id" style="display: none;">This field is required.</span>
    </div>
      <!--API Type -->
    <div class="col-md-6">
        <label for="api_type" class="form-label" >API Type </label>
        <select class="form-select" aria-label="api_type" name="api_type">
            <option selected value="">Select API Type</option>
            <option value="Sandbox">Sandbox</option>
            <option value="Live">Live</option>
          </select>
        <span class="text-danger error_api_type" style="display:none;">This field is required.</span>
    </div>
    <!--GSTIN -->
    <div class="col-md-6">
        <label for="gstin" class="form-label">GSTIN</label> <span class="text-danger"><b>*</b></span>
        <input type="text" class="form-control" id="gstin" name="gstin" aria-describedby="inputGroupPrepend" required placeholder="GSTIN">
        <span class="text-danger error_gstin" style="display: none;">This field is required.</span>
    </div>
</form>