@extends('backend.layouts.app') @section('title', \App\Http\Helpers\MenuHelper::getPageTitle()) @section('content')

All Galleries

@can('content-photo-gallery.create') Create New @endcan
@forelse($galleries as $gallery) @php $mainTranslation = $gallery->translations->firstWhere('gallery_translation_main', 1) ?? $gallery->translations->first(); @endphp @empty @endforelse
No Thumbnail Title Photos Category Status Action
{{ ($galleries->currentPage() - 1) * $galleries->perPage() + $loop->iteration }} @if($gallery->gallery_thumbnail) @else No image @endif {{ $mainTranslation->gallery_translation_title ?? '-' }} @if($gallery->translations->count() > 1) {{ $gallery->translations->count() }} translations @endif {{ $gallery->photo_lists_count }} photos {{ $categories[$gallery->gallery_cat] ?? $gallery->gallery_cat ?? '-' }} {{ $statuses[$gallery->gallery_status] ?? '-' }}
@can('content-photo-list.create') @endcan @can('content-photo-gallery.update') @endcan @can('content-photo-gallery.delete')
@csrf @method('DELETE')
@endcan

No galleries found

Click "Create New" to add your first entry.

{{ $galleries->appends(request()->query())->links('vendor.pagination.custom') }}
@endsection