title: Syntax error, unexpected ':', expecting '(' in Laravel
body: <p>I have done some googling on this error I have an it seems to be an error in the blade templates but I cannot see what I have done that is different to my other templates that work. This is the error message</p>
  
  <pre><code>FatalErrorException in 66e07bb82defb1810fc6e13b82dc623493bf38fa.php line 11:
  syntax error, unexpected ':', expecting '('
  </code></pre>
  
  <p>This is the line of code in the file that I have not touched that is showing as an error in my IDE</p>
  
  <pre><code>&lt;?php if: ?&gt; 
  </code></pre>
  
  <p>and finally here is my view that triggers the error message when I submit the form.</p>
  
  <pre><code>    @extends('templates.default')
  
  @section('content')
  &lt;div class="col-md-6 col-md-offset-3"&gt;
              &lt;h3&gt;Your Account&lt;/h3&gt;
              &lt;form action="{{ route('profile.avatar') }}" method="post" enctype="multipart/form-data"&gt;
                  &lt;div class="form-group"&gt;
                      &lt;label for="image"&gt;Image (only .jpg)&lt;/label&gt;
                      &lt;input type="file" name="image" class="form-control" id="image"&gt;
                  &lt;/div&gt;
                  &lt;button type="submit" class="btn btn-primary"&gt;Save Account&lt;/button&gt;
                  &lt;input type="hidden" value="{{ Session::token() }}" name="_token"&gt;
              &lt;/form&gt;
  &lt;/div&gt;
  @stop
  </code></pre>
  
  <p>templates.default </p>
  
  <pre><code>&lt;!DOCTYPE html&gt;
  &lt;html lang="en"&gt;
      &lt;head&gt;
          &lt;meta charset="UTF-8"&gt;
      &lt;/head&gt;
      &lt;body&gt;
          @include('templates.partials.navigation')
          &lt;div class="container"&gt;
              @include('templates.partials.alerts')
              @yield('content')
          &lt;/div&gt;
      &lt;/body&gt;
  &lt;/html&gt;
  </code></pre>