sumitgroup
3 months ago
398
1
Laravel

Error in Laravel 6 Filter

Posted 3 months ago by sumitgroup

Hi, I am trying to filter data in Laravel, Everything is working fine, but when i add "Select Locality" and "Select Status" then it does not show any data, reason because it's search in "Select Locality" and "Select Status" field. Could you please tell me how i can Display these option values.

Note: Main error is when i am adding these extra fields "Select Locality" and " Select Status"

Here are my code..

 <div class="trip-search">
         <form id="filterForm" method="POST" action="{{route('filter.property')}}">
          @csrf
          <div class="form-group location">
            <select name="lotId[]" class="nice-select form-control wide" tabindex="0">
             @foreach($locality as $localt)
             <option>Select Locality</option>
             <option value="{{$localt->lotId}}">{{$localt->name}}</option>
             @endforeach
           </select>
         </div>
         <div class="form-group duration">
          <select name="consStatus[]" class="nice-select form-control wide" tabindex="0">
           <option>Select Status</option>
           <option value="Under Construction">Under Construction</option>
           <option value="New Launch">New Launch</option>
           <option value="Ready To Move">Ready To Move</option>
         </select>
       </div>
       <div class="form-group looking">
        <div class="first-select wide">
          <div class="main-search-input-item">
            <input type="text" name="title" placeholder="What are you looking for?" style="padding:15px;" id="search_field" onkeyup="getSearchResult(this.value)">
            <input type="hidden" name="locationId" >
            <input type="hidden" name="sCityId" >
            <input type="hidden" name="sPropId" >
            <input type="hidden" name="sTitle" >
            <input type="hidden" name="suggestion" value="0">
            <div class="dropdwonlist">  
              <ul class="list-group" id="suggetResult">               
              </ul>
            </div> 
          </div>
        </div>
      </div>
      <div class="form-group button">
        <button type="submit" class="btn">Search</button>
      </div>
    </form>
  </div>

Please sign in or create an account to participate in this conversation.