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

All Images

@can('content-image.create') Create New @endcan
@if(!$cat)
Use the Category filter above to view images under a specific category, then drag & drop to reorder.
@elseif($cat && count($images) <= 1)
Add at least 2 images in this category to enable drag & drop reordering.
@endif
@forelse($images as $image) @empty @endforelse
# Image Title Category Status Sort Actions
@if($cat) @if(count($images) > 1) @else @endif @else @endif {{ ($images->currentPage() - 1) * $images->perPage() + $loop->iteration }} {{ $image->image_title }} {{ $image->image_title ?? '-' }} {{ $categories[$image->image_cat] ?? $image->image_cat ?? '-' }} @if($image->image_status === 'ACTIVE') {{ $statuses['ACTIVE'] ?? 'Active' }} @elseif($image->image_status === 'INACTIVE') {{ $statuses['INACTIVE'] ?? 'Inactive' }} @else No Status @endif {{ $image->image_sort ?? '-' }}
@can('content-image.update') @endcan @can('content-image.delete')
@csrf @method('DELETE')
@endcan

No images found

Click "Create New" to add your first entry.

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