@include('ctrl.common.i_success_notification')
@if(!$pdfs->count())
@include('ctrl.common.i_empty_page',['items'=>$modelClass])
@else
| # |
|
@sortablelink('title', 'Title') |
@sortablelink('company.title', 'Company') |
@sortablelink('category.title', 'Category') |
@sortablelink('subCategory.title', 'Sub Category') |
@sortablelink('created_at', 'Creation Time') |
{{--any more heads below here--}}
@canany(['edit','delete','de/activate'],$modelClass)
Actions |
@endcanany
@endif
@foreach($pdfs as $pdf)
| @listing($pdfs) |
|
{{$pdf->title}} |
{{$pdf->company->title}} |
{{$pdf->category->title}} |
{{$pdf->subCategory->title}} |
{{$pdf->created_at->diffForHumans()}} |
{{--any more below here--}}
@canany(['edit', 'delete', 'de/activate'],$modelClass)
@include('ctrl.common.i_button_edit_activate_delete', [
'item' => $pdf,
'route' => route('pdfs.index'),
'editRoute' => route('pdfs.edit',[$pdf])
])
|
@endcanany
@endforeach
{{ $pdfs->appends($_GET)->links() }}