{{-- resources/views/admin/destinations/index.blade.php --}} @extends('admin.layouts.app') @section('title', 'Destinations Management') @section('page-title', 'Destinations Management') @section('content')
Add New Destination
@if($destinations->count() > 0)
@foreach($destinations as $destination)
@if($destination->image_url) {{ $destination->name }} @else
@endif
{{ $destination->trip_templates_count }} Template{{ $destination->trip_templates_count !== 1 ? 's' : '' }}
{{ $destination->name }}

{{ $destination->city }}, {{ $destination->country }}

@if($destination->description)

{{ Str::limit($destination->description, 100) }}

@endif
@if($destination->trip_templates_count == 0) @else @endif
@endforeach
{{ $destinations->withQueryString()->links() }}
@else

No destinations found

@if(request()->hasAny(['search', 'country']))

Try adjusting your search criteria.

Clear Filters @else

Start by adding your first destination.

Add New Destination @endif
@endif
@endsection @push('scripts') @endpush