Data Table With Suites: {{$author->suites->count()}}

Add Suite
@foreach ($author->suites as $suite) @endforeach
ID Title Category Status Actions Microunits
{{$suite->id}} {{$suite->title}} - Created at: {{ date('j M. Y', strtotime($suite->created_at)) }} {{$suite->category->name}} @if ($suite->approved === 0) {!! Form::model($suite, ['route' => ['admin.suite.activate', $suite->id], 'method'=>'PUT', 'id'=>'form-activate','style'=>'display:inline-block']) !!} Activate @include('admin.modals.activatesuite') {!! Form::close() !!} @elseif ($suite->approved === 1)
Activated
@endif
@include('admin.modals.deletesuite') @if($suite->microunits->count()) {{$suite->microunits->count()}} microunits @else Add Microunit @endif
ID Title Category Status Actions Microunits