@extends('backend.layouts.app') @section('title', \App\Http\Helpers\MenuHelper::getPageTitle()) @section('content') @include('backend.module._index-reset-button')

All Galleries

@can('content-photo-gallery.create') Create @endcan
@if(!$cat)
Use the Category filter above to view galleries under a specific category, then drag & drop to reorder.
@elseif($cat && count($galleries) <= 1)
Add at least 2 galleries in this category to enable drag & drop reordering.
@endif
@forelse($galleries as $gallery) @php $mainTranslation = $gallery->translations->firstWhere('gallery_translation_main', 1) ?? $gallery->translations->first(); @endphp @empty @endforelse
# Thumbnail Title Category Status Sort Actions
@if($cat) @if(count($galleries) > 1) @else @endif @else @endif {{ ($galleries->currentPage() - 1) * $galleries->perPage() + $loop->iteration }} {{ $mainTranslation->gallery_translation_title ?? '-' }} @if($gallery->translations->count() > 1) {{ $gallery->translations->count() }} translations @endif {{ $categories[$gallery->gallery_cat] ?? $gallery->gallery_cat ?? '-' }} @if($gallery->gallery_status === 'ACTIVE') {{ $statuses['ACTIVE'] ?? 'Active' }} @elseif($gallery->gallery_status === 'INACTIVE') {{ $statuses['INACTIVE'] ?? 'Inactive' }} @else No Status @endif {{ $gallery->gallery_sort ?? '-' }}
@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" to add your first entry.

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