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

@yield('list-title')

@if(hasRoute('trashed')) @endif
@yield('filter')
{{-- 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)}} {{__("Totol")}}: {{$items->total()}}
{{$item->name}} {{$item->$col}} @if(hasRoute('destroy')) @endif @if(hasRoute('edit')) @endif @if(hasRoute('show')) @endif @yield('list-btn')
{{$items->withQueryString()->links()}}
@paginated($items)
{{-- list content end--}}
@if(hasRoute('create')) @endif @endsection