title: How to fix Namespace Laravel selection issue error= '@if(Auth' is not bound
body: <p>I have this piece of code that I did not write, but need to <code>trouble shoot</code>. The user is supposed to have the choice to pick one, two, or all 3 selections, but no matter what we select, nothing is working. It is giving me an error message of <code>"Namespace '@if(Auth' is not bound"</code>.</p>
  
  <p>Here is the code that seems to be the root of the problem.</p>
  
  <pre><code> &lt;select id="dates-field2" class="multiselect-ui form-control" multiple="multiple" name="service_type[]" id="service_type"&gt;
     @foreach(get_all_service_types() as $type)
        &lt;option @if(Auth::guard('provider')-&gt;user()-&gt;service-&gt;service_type-&gt;id == $type-&gt;id) selected="selected" @endif value="{{$type-&gt;id}}"&gt;{{$type-&gt;name}}&lt;/option&gt;
     @endforeach
   &lt;/select&gt;
  </code></pre>