@extends('front.layouts.master') @section('content')
@if(app()->getLocale() == 'ar')

بحث

@endif @if(app()->getLocale() == 'en')

Search

@endif
@foreach ($categories as $cat)
  • {{ $cat->name }} {{-- @php $subCategories = App\Models\CarModel::with('brand')->where('brand_id', $cat->id)->get(); @endphp
      @foreach ($subCategories as $index => $subCat)
    • @endforeach
    --}}
@endforeach

{{ TranslationHelper::translate('price_range', 'site') }}


@if(app()->getLocale() == 'ar')
عرض 1-10 من 50 نتيجة
@endif @if(app()->getLocale() == 'en')
Showing 1-10 of 50 Results
@endif @if(app()->getLocale() == 'ar')
@endif @if(app()->getLocale() == 'en')
@endif
@php use Illuminate\Support\Carbon; $ads = \App\Models\Ads:: with('city','category') ->where('city_id', $ads_category->id) ->where('is_approved', 1) ->where('is_pause', 0) ->whereHas('city', function ($query) { $query->where('country_id', session('user_country', 1)); }) ->where('expired_at', '>=', Carbon::now()) ->paginate(30); @endphp
@if ($ads->count() > 0) @foreach ($ads as $ad )
{{TranslationHelper::translate( $ad->AdType,'site' )}} @if ($ad->getFirstMediaUrl('ads') != null) ads @else ads @endif
{{ number_format($ad->price,0,'.',',') }} {{ $currency }}

{{ $ad->title }}

  • {{ $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() }}
@endsection @push('js') @endpush