@foreach($allCategories as $rowCategory) @php $isSelected = $selectedCategory ? $rowCategory->slug == $selectedCategory->slug : null; $category = $isSelected ? $selectedCategory : $rowCategory; // Fetch children with optional search filter $childrenQuery = $category->children(); if ($searchCategory) { $childrenQuery->where('title', 'like', '%' . $searchCategory . '%'); } $children = $childrenQuery->get(); // Determine the default state of the dropdown $isOpen = $isSelected ? 'true' : 'false'; @endphp

{{ $category->title }}

@endforeach

مرتب سازی بر اساس:

@if (count($services) > 0)
@foreach($services ?? [] as $service) @if($service != null)
poster
{{ $service->title }}
user {{ $service->businessOwner->name }}
4.8 star
متخصص در زمینه @foreach($service->categories as $category) {{ $category->title }}@if(!$loop->last),@endif @endforeach
@endif @endforeach
@if($hasMorePages)
@endif @else
موردی یافت نشد
@endif