title: i'm using a select tag in my laravel project but when i select it's not taking any value from option
body: <p>i'm trying to fetch data from database after selecting from the select tag.</p>
  
  <p>this is my view code:</p>
  
  <pre><code>&lt;div class="form-row"&gt;
      &lt;div class="form-group col-md-6"&gt;
          &lt;label&gt;Name&lt;/label&gt;
          &lt;select name="id" class="form-control"&gt;
              @foreach($clients as $client)
                  &lt;option value="{{ $client-&gt;Cid }}" {{ $selectedclients == $client-&gt;Cid ? selected="selected" : '' }}&gt;{{ $client-&gt;name }}&lt;/option&gt;
              @endforeach
          &lt;/select&gt;
      &lt;/div&gt;
  &lt;/div&gt;
  </code></pre>
  
  <p>this is my controller code:</p>
  
  <pre class="lang-php prettyprint-override"><code>$Clients = Client::all();
  $selectedClients = Client::first()-&gt;Cid;
  </code></pre>
  
  <p>when i run my code i'm getting the following error:</p>
  
  <blockquote>
    <p>Syntax error, unexpected '=' (View: /home/prasanna/Billing-master/resources/views/Qtcreate.blade.php).</p>
  </blockquote>