@php use App\Enums\LinkType; $sightseeingSpots = []; if (count($touristRoutes)) { foreach ($touristRoutes as $touristRoute) { if (fieldPropertyValue('sightseeing_spot_contents', $touristRoute)) { $sightseeingSpots = array_merge($sightseeingSpots, fieldPropertyValue('sightseeing_spot_contents', $touristRoute)); } } } @endphp

@foreach ($sightseeingCategories as $category) @endforeach
@if (count($sightseeingSpots)) @endif