@foreach ($services as $service)
{{-- Content for Each Tab --}}
{!! $service->page !!}
{{-- Masonry Gallery for the Service --}}
@php
$filteredGalleries = $galleries->where('album_id', $service->id);
@endphp
@if ($filteredGalleries->isEmpty())
No images available for this category.
@else
@foreach ($filteredGalleries as $gallery)
@endforeach
@endif
@endforeach
{{-- Pagination --}}
@if ($galleries->hasPages())
{{ $galleries->links('pagination::bootstrap-4') }}