@extends('layouts.main_frontend') {{-- {{dd($requuestHomeSearch )}} --}} @section('title', $subcat->name_ar??'' . '-' . trans('site.Car Booking')) @section('css') @endsection {{-- {{dd(request('subhidden') == null)}} --}} @section('content') {{-- {{dd($category)}} --}}
@csrf {{-- --}} {{-- --}} {{-- --}}
{{-- {{dd($requuestHomeSearch)}} --}}
{{--

وجدنا 44 شقة مناسبة لطلبك

--}} {{--
--}} {{-- @csrf --}}
{{-- --}} {{-- --}} {{-- --}} {{-- @if (request('brands')) --}} {{-- --}}
{{-- --}}
{{-- --}} {{-- --}} {{-- --}} {{--
--}} {{-- --}} {{--
--}} {{-- --}} {{-- --}} {{-- --}} {{--
--}} {{--
--}}
@csrf {{-- --}}

@lang('site.filter by'):

ازالة {{-- --}}

{{-- @csrf --}} {{-- --}} {{-- --}} {{-- --}} {{-- --}} {{-- {{dd($CategoriesCar)}} --}} @foreach ($CategoriesCar as $cat)
brand_id)) @foreach ($requuestHomeSearch->brand_id as $item) @if (strpos($item, ',') !== false) {{-- Explode the item into an array --}} @foreach (explode(',', $item) as $arritem) {{-- {{dd($arritem)}} --}} @if ($arritem == $cat->id) checked @endif @endforeach @else @if ($item == $cat->id) checked @endif @endif @endforeach @else @if ($requuestHomeSearch->brand_id == $cat->id) checked @endif @endif @endisset />
@endforeach {{-- --}}

{{-- {{dd($requuestHomeSearch)}} --}} @foreach ($subcategory as $cat)
sub_category_id)) @foreach ($requuestHomeSearch->sub_category_id as $item) {{-- @if ($item == $cat->id) selected @endif --}} @if (strpos($item, ',') !== false) {{-- Explode the item into an array --}} @foreach (explode(',', $item) as $arritem) {{-- {{dd($arritem)}} --}} @if ($arritem == $cat->id) checked @endif @endforeach @else @if ($item == $cat->id) checked @endif @endif @endforeach @else @if ($requuestHomeSearch->sub_category_id == $cat->id) checked @endif @endif {{-- {{dd("done")}} --}} @endisset {{-- @if (isset($catsubcategory)) @foreach ($catsubcategory as $catitem) @if ($catitem == $cat->id) checked @endif @endforeach @elseif (isset($subcatselect) && $subcatselect == $cat->id) checked @endif --}} {{-- @isset($subcatselect) @if ($subcatselect == $cat->id) checked @endif @endisset --}} {{-- class="check" name="category_id" --}} onclick="GetAtrribute(this.id,this.name)" />
@endforeach

@if ($years != null) @foreach ($years as $car)
year_id)) @foreach ($requuestHomeSearch->year_id as $item) {{-- @if ($item == $cat->id) selected @endif --}} @if (strpos($item, ',') !== false) {{-- Explode the item into an array --}} @foreach (explode(',', $item) as $arritem) {{-- {{dd($arritem)}} --}} @if ($arritem == $car->year) checked @endif @endforeach @else @if ($item == $car->year) checked @endif @endif @endforeach @else @if ($requuestHomeSearch->year_id == $car->year) checked @endif @endif {{-- {{dd("done")}} --}} @endisset {{-- @if (isset($catyear)) @foreach ($catyear as $yearitem) @if ($yearitem == $car->year) checked @endif @endforeach @elseif (isset($subcatselect) && $subcatselect == $cat->id) checked @endif --}} {{-- onclick="GetAtrribute(this.id,this.name)" --}} />
@endforeach @endif

@if ($colors != null) @foreach ($colors as $car)
color) checked @endif @endforeach @endif />
@endforeach @endif

{{--
@foreach ($carsfilters->unique('fixed_price') as $car)
@endforeach
--}}

{{-- --}}
{{-- --}}
@lang('site.filtering')

@lang('site.filter by'):

@foreach ($CategoriesCar as $cat)
@endforeach

{{-- {{dd($subcategory)}} --}} @foreach ($subcategory as $cat)
id) checked @endif @endisset --}} {{-- class="check" name="category_id" --}} onclick="GetAtrribute(this.id,this.name)" />
@endforeach

@if ($years != null) @foreach ($years as $car)
@endforeach @endif

@if ($colors != null) @foreach ($colors as $car)
@endforeach @endif

{{--
@foreach ($carsfilters->unique('fixed_price') as $car)
@endforeach
--}}

{{-- --}}
@lang('site.order')
{{-- {{dd($requuestHomeSearch)}} --}}
{{--
--}}
@if (!empty($cars)) @foreach ($cars as $car) {{-- {{dd($car)}} --}} @if ($car->ads_status_id != 3)
Fatal error: Uncaught Error: Class "App\Models\Car" not found in /home/saeeh/public_html/resources/views/frontend/cars.blade.php:1358 Stack trace: #0 {main} thrown in /home/saeeh/public_html/resources/views/frontend/cars.blade.php on line 1358