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
FatalErrorException in 66e07bb82defb1810fc6e13b82dc623493bf38fa.php line 11:
syntax error, unexpected ':', expecting '('
This is the line of code in the file that I have not touched that is showing as an error in my IDE
<?php if: ?>
and finally here is my view that triggers the error message when I submit the form.
@extends('templates.default')
@section('content')
<div class="col-md-6 col-md-offset-3">
<h3>Your Account</h3>
<form action="{{ route('profile.avatar') }}" method="post" enctype="multipart/form-data">
<div class="form-group">
<label for="image">Image (only .jpg)</label>
<input type="file" name="image" class="form-control" id="image">
</div>
<button type="submit" class="btn btn-primary">Save Account</button>
<input type="hidden" value="{{ Session::token() }}" name="_token">
</form>
</div>
@stop
templates.default
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
</head>
<body>
@include('templates.partials.navigation')
<div class="container">
@include('templates.partials.alerts')
@yield('content')
</div>
</body>
</html>
ifwhat? I think blade templates are expecting@if(condition)and@endiflater on