@can('viewAny', \App\Models\Menu::class) @foreach ($menus as $menu) @endforeach @endcan @can('viewAny', \App\Models\Category::class) @foreach ($categories as $category) @endforeach @endcan @if (!$selectedBranch) @can('viewAny', \App\Models\Branch::class) @foreach ($branches as $branch) @endforeach @endcan @endif
{{ __('dashboard.id') }} {{ __('dashboard.image') }} {{ __('dashboard.name') }} {{ __('dashboard.category') }} {{ __('dashboard.price') }} {{ __('dashboard.menu') }} {{ __('dashboard.active') }} @forelse ($rows as $row) {{ $row->id }} @if ($row->image && file_exists(storage_path('app/public/' . $row->image))) {{ $row->name }} @endif {{ $row->name }} {{ $row?->category?->name }} {{ currency((float) $row->price) }} {{ $row?->category?->menu?->name ?? '—' }} @if ($row->active) {{ __('dashboard.active') }} @else {{ __('dashboard.inactive') }} @endif @empty {{ __('dashboard.no') }} {{ __($collectionTitle) }} {{ __('dashboard.found') }}. @endforelse