@php $destinationSlides = collect($destinations ?? []) ->map(function ($d) { return [ 'title' => $d->name, 'subtitle' => $d->type ? ucwords(str_replace('-', ' ', $d->type)) : 'Destination', 'img' => $d->cover_image ? asset('storage/' . ltrim($d->cover_image, '/')) : asset('assets/img/hero/destinations.jpg'), 'href' => route('destinations.show', $d->slug), ]; }) ->chunk(7) ->values(); @endphp @if($destinationSlides->count())

Destinations

Explore iconic places across Sri Lanka - hills, beaches, wildlife and heritage.

@if($destinationSlides->count() > 1) @endif
{{-- Desktop mosaic slider --}} {{-- Mobile: cards --}}
@foreach(collect($destinations)->take(10) as $d) @php $img = $d->cover_image ? asset('storage/' . ltrim($d->cover_image, '/')) : asset('assets/img/hero/destinations.jpg'); @endphp
{{ $d->name }}
{{ $d->type ? ucwords(str_replace('-', ' ', $d->type)) : 'Destination' }}
@endforeach
@endif