Shop offers by category:
{{-- @foreach ($promotions as $key => $promotion)
{{ $promotion->category->category_image ?? '' }} {{ $promotion->category->name_en ?? '' }}
@endforeach --}}
Sort By:
@include('flash-message')
@foreach ($promotions as $key => $promotion) @php $color = []; $price_max = $promotion->product->product_prices()->orderBy('price', 'desc')->first(); $price_min = $promotion->product->product_prices()->orderBy('price', 'asc')->first(); $product_specifications = $promotion->product->specification_values; foreach ($product_specifications as $pskey => $psvalue) { if ($psvalue->specification->name == "Color") { $color [] = $psvalue; } if ($psvalue->specification->name == "Memory") { $storage [] = $psvalue; } } @endphp @if(isset($promotion->product))
{{--
--}}
@if (count($color) >0)