@include('frontend.layout.head') @include('frontend.layout.header') @include('frontend.layout.search')
@if (!empty($subcategory))

{{ $subcategory->name }}({{ count($products) }})

@else

جميع الأقسام

@endif @if (!empty($subcategory))
{{ $subcategory->category->name }}
    @foreach ($categories as $category) @if ($category->id == $subcategory->category->id) @foreach ($category->subcategories as $oneSubcategory)
  • {{ $oneSubcategory->name }}
  • @endforeach @endif @endforeach
@endif
@if (count($products) > 0) @foreach ($products as $product)
{{ $product->title }}

{{ $product->title }}

{{$product->price}} ريال

{{ $product->user->name }}

{{ $product->city }}

{{ $product->created_at->toDateString() }}

@if (isset($product->star->status) && $product->star->status == 1)
اعلان مميز
@endif
  • @auth
  • @endauth
@endforeach @else

لا يوجد ما يطابق بحثك

@endif
@include('frontend.layout.footer')