L
L
lynnikvadim2015-08-10 02:05:22
Laravel
lynnikvadim, 2015-08-10 02:05:22

Why syntax error, unexpected end of file?

@if (is_array($org))
          <div class="col-sm-3"><h5>Роль пользователя:</h5> {{ $user->role }} </div>
          <div class="col-sm-3"><h5>E-mail:</h5> {{ $user->email }} </div>
          <div class="col-sm-3"><h5>Телефон:</h5> {{ $user->tel }} </div>
          <div class="col-sm-3"><h5>Активность:</h5>  @if ($user->active)
                          <a href="{{ URL::to('/admin/user/no-active/'.$user->id) }}"><i class="fa fa-check-square fa-lg"></i></a>
                             
                            @else
                                 <a href="{{ URL::to('/admin/user/active/'.$user->id) }}"><i class="fa fa-check-square-o fa-lg"></i></a>
                        @endif  </div>

Writes syntax error, unexpected end of file.
Why is that ?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
I
index0h, 2015-08-10
@index0h

You have 2 if and one endif

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question