How to fix Parse error: syntax error, unexpected ')', expecting '['?

X

XXXXXX

Guest
@extends('admin.layouts.app_admin')

@section('content')

<div class="container">

@component('admin.components.breadcrumb')
@slot('title') all_ category @endslot
@slot('parent') main @endslot
@slot('active') category @endslot
@endcomponent
<hr>


<a href="{{route('admin.category.create')}}" class="btn btn-primary pull-right">
<i class="fa fa-plus-square-0">Создать категорию</i></a>
<table class="table table-striped">
<th>XXX</th>
<th>XXX</th>
<th class="text-right">XXX</th>
<tbody>
@forelse ($categories as category)
<tr>
<td>{{$category->title}}</td>
<td>{{$category->published}}</td>
<td>
<a href="{{route('admin.category.edit', ['id'=>$category->id])}}"><i class="fa fa-edit "></i></a>
</td>
</tr>
@empty
<tr>
<td colspan="3" class="text-center"><h2>not found</h2></td>
</tr>
@endforelse
</tbody>
</table>

</div>

@endsection


I have such an error in this file Parse error: syntax error, unexpected ')', expecting '[' (View: D: \ wamp \ www \ blog \ resources \ views \ admin \ categories \ index.blade.php) please help me solve it, I already broke my head, I can’t find the error

Continue reading...
 
Top