@if(app()->getLocale() == 'ar')
عرض 1-30 نتيجة
@endif
@if(app()->getLocale() == 'en')
Showing 1-30 Results
@endif
@php
use Illuminate\Support\Carbon;
$ads = \App\Models\Ads::with('city', 'category','media','adAttributes')
->where('car_model_id', $ads_sub_category->id)
->where('is_approved', 1)
->where('is_pause', 0)
->whereHas('city', function ($query) {
$query->where('country_id', session('user_country', 1));
})
->latest()
->where('expired_at', '>=', Carbon::now())
->paginate(30);
@endphp
@if ($ads->count() > 0)
@foreach ($ads as $ad )
{{ number_format($ad->price,0,'.',',') }} {{ $currency }}
- {{ $ad->category->name }}
- {{ $ad->city->name }}
@endforeach
@isset($filteredCars)
@include('front.pages.filtered_ads', ['ads' => $filteredCars])
@endisset
@else
{{ TranslationHelper::translate('No Ads Found', 'site') }}
@endif
{{ $ads->links() }}