@extends('admin.templates.panel-list-template-raw') @section('table') @foreach($cols as $col) @endforeach @if(count($items) == 0) @else @foreach($items as $item) @foreach($cols as $k => $col) @if($k == 0 && hasRoute('edit')) @else @endif @endforeach @endforeach @endif {{-- pagination and toggle button start --}} {{-- pagination and toggle button end --}}
{{__($col)}} {{__("Subject")}}
{{__("There is nothing to show!")}}
{{$item?->{$cols[0]} }} @switch($col) @case($col == 'user_id') {{ $item->user?->name??'-' }} @break @case($col == 'action') {{ getAction($item->$col) }} @break @default {{$item->$col}} @endswitch {{getModelName($item->loggable_type,$item->loggable_id)}} @if(strpos(request()->url(),'trashed') != false && hasRoute('restore')) @else @endif
@foreach($buttons as $btn => $btnData) @if(strpos($btnData['class'],'delete') == false ) @if(strpos(request()->url(),'trashed') == false) @endif @else @if( hasRoute('restore') && $item->trashed()) @else @endif @endif @endforeach
{{$items->withQueryString()->links()}}
@endsection @section('filter')

{{__("User filter")}}:

@endsection