{{-- Shared listing screen. Every resource renders this unless it ships its own `admin..index` view. Columns and the AJAX URL come from the controller; optional per-resource filters live in `admin..filters`. --}} @extends('admin.layouts.app') @php $title = $title ?? __('admin.menu.'.str_replace('-', '_', $route), [], app()->getLocale()); $filtersView = 'admin.'.$route.'.filters'; $hasFilters = view()->exists($filtersView); $canCreate = app('router')->has('admin.'.$route.'.create'); @endphp @section('title', $title) @section('page-title', $title) @section('page-actions') @if ($canCreate) {{ __('admin.actions.create') }} @endif @endsection @section('content') @if ($hasFilters)
@include($filtersView)
@endif
@foreach ($columns as $column) @endforeach
{{ $column['title'] }}
@endsection @push('scripts') @endpush