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

بحث

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

Search

@endif

{{ TranslationHelper::translate('sub-categories', 'site') }}

{{-- --}}
  • @foreach ($sub_sub_categories as $subcategory)
    @endforeach

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


@foreach ($attrs as $attr) @if ($attr->options && count($attr->options) > 0) @endif @endforeach

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


@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 )
{{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