title: laravel: display data from a drop down list
body: <p>I am implementing a drop down menu list to display a list of hotels from my system. I currently have the following code which when i click submit, nothing is happening (no data displayed).</p>
  
  <p>Does anyone know how i can potentially display data once i press submit ?</p>
  
  <p>Search.Blade.php</p>
  
  <pre><code>{!! Form::open(['action' =&gt; 'SearchController@index', 'method' =&gt; 'POST']) !!}
  
   &lt;div class="form-group"&gt;
  
   &lt;select name="title" id="title" class="form-control input-lg dynamic" data-dependent="state"&gt;
  
   @foreach($posts as $post)
      &lt;option value="{{$post-&gt;id}}"&gt;{{$post-&gt;title}} &lt;/option&gt;
   @endforeach
  
   &lt;/select&gt;
   &lt;br&gt;
    &lt;div class="form-group"&gt;
   {{Form::Submit('submit', ['class' =&gt; 'btn btn-primary'])}}
   &lt;/div&gt;
  
  
      &lt;div class="table"&gt;
      &lt;table&gt;
      &lt;tr&gt;
       &lt;th&gt;Hotel Name&lt;/th&gt;
       &lt;td&gt;{{$post-&gt;title}}&lt;/td&gt;
       &lt;th&gt;Distance&lt;/th&gt;
       &lt;td&gt;{{$post-&gt;distance}}&lt;/td&gt;
       &lt;th&gt;Images&lt;/th&gt;
       &lt;td&gt;{{$post-&gt;image}}&lt;/td&gt;
      &lt;/tr&gt;
    &lt;tr&gt;
    &lt;/tr&gt;
   &lt;/td&gt;
      &lt;/div&gt; 
  </code></pre>
  
  <p>SearchController.php</p>
  
  <pre><code>  public function index()
      {
       $posts = Post::get();
       return view('Pages.search', compact('posts'));
       }
     public function store(Request $request)
    {
  
  
  
    }
  </code></pre>
  
  <p>So when i press submit, it takes me to a white blank page. Im not sure how to retrieve the data from the selected drop down list and display it on my page, if any one knows how to do so please advise. </p>