{{-- resources/views/admin/destinations/index.blade.php --}} {{-- Destinations listing with country filter --}} {{-- Controller: Admin\DestinationController@index --}} @extends('layouts.admin') @section('title', 'Destinations') @section('page_title', 'Destinations') @section('page_css') @endsection @section('content')
@if(request()->hasAny(['search', 'country_id'])) Clear @endif
@forelse($destinations as $destination) {{ $destinations->firstItem() + $loop->index }} {{ $destination->name }} {{ $destination->name }} @if($destination->category) @if($destination->category->icon) @endif {{ $destination->category->name }} @else @endif {{ $destination->country->name ?? '—' }} {{ $destination->slug }} @empty No destinations found. @endforelse
Showing {{ $destinations->firstItem() }}{{ $destinations->lastItem() }} of {{ $destinations->total() }} destinations {{ $destinations->appends(request()->query())->links('vendor.pagination.bootstrap-5') }}
@endsection @section('page_js') @endsection