@if(!is_null($priceValue) && $priceValue > 0) {{ number_format($priceValue, 0) }} {{ $listing->currency }} @else Free @endif
{{ $listing->title }}
{{ $listing->category?->name ?: 'No category' }}
@php $allListingsCount = isset($allListingsTotal) ? (int) $allListingsTotal : (int) $listings->total(); $resultListingsCount = isset($filteredListingsTotal) ? (int) $filteredListingsTotal : (int) $listings->total(); $activeCategoryName = $selectedCategory?->name ? trim((string) $selectedCategory->name) : ''; $seoHeading = $activeCategoryName !== '' ? $activeCategoryName.' Listings and Prices' : 'All Listings and Prices'; $canSaveSearch = $search !== '' || ! is_null($categoryId); $normalizeQuery = static fn ($value): bool => ! is_null($value) && $value !== ''; $baseCategoryQuery = array_filter([ 'search' => $search !== '' ? $search : null, 'user' => $sellerUserId ?? null, 'country' => $countryId, 'city' => $cityId, 'min_price' => $minPriceInput !== '' ? $minPriceInput : null, 'max_price' => $maxPriceInput !== '' ? $maxPriceInput : null, 'date_filter' => $dateFilter !== 'all' ? $dateFilter : null, 'sort' => $sort !== 'smart' ? $sort : null, ], $normalizeQuery); $clearFiltersQuery = array_filter([ 'search' => $search !== '' ? $search : null, 'user' => $sellerUserId ?? null, ], $normalizeQuery); $activeFilterCount = collect([ $categoryId, $countryId, $cityId, $sellerUserId, $minPriceInput !== '' ? $minPriceInput : null, $maxPriceInput !== '' ? $maxPriceInput : null, $dateFilter !== 'all' ? $dateFilter : null, ])->filter($normalizeQuery)->count(); @endphp
@if(!is_null($priceValue) && $priceValue > 0) {{ number_format($priceValue, 0) }} {{ $listing->currency }} @else Free @endif
{{ $listing->category?->name ?: 'No category' }}