@extends('layouts.app') @section('content')
{{-- list side bar start--}}

@yield('list-title')

@if(hasRoute('trashed')) @endif
@yield('filter')
{{__("Totol")}} ({{$items->total()}})

{{__("From - To")}} @paginated($items)
@if(hasRoute('bulk'))

{{__("Bulk actions:")}}

@csrf
@endif @include('components.err')
{{-- list side bar end--}} {{-- list content start--}}
@foreach($cols as $col) @endforeach @yield('table-head') @foreach($items as $item) @foreach($cols as $k => $col) @if($k == 0 && hasRoute('edit')) @else @endif @endforeach @yield('table-body') @endforeach {{-- pagination and toggle button start --}} {{-- pagination and toggle button end --}}
{{__($col)}}
{{$item->name}} {{$item->$col}} @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()}}
{{-- list content end--}}
@if(hasRoute('create')) @endif @endsection