@if($flashDeal) {{$flashDeal->name}} {{@frontend_section_data($flash_deal->value,'heading')}} {{@frontend_section_data($flash_deal->value,'sub_heading')}} {{translate('Time Remaining')}} {{translate('Days')}} {{translate('Hours')}} {{translate('Minutes')}} {{translate('Seconds')}} {{translate('View More Products')}} @php $products = App\Models\Product::with(['review','order','stock','stock.attribute']) ->whereIn('id', $flashDeal->products) ->inhouseProduct() ->physical() ->take(8) ->get() @endphp @forelse($products as $product) @php $randNum = rand(144,10000000); @endphp {{translate('Add to cart')}} {{translate("Quick View")}} @if($product->discount_percentage > 0) {{translate('off')}} {{round($product->discount_percentage)}} % @endif {{$product->name}} @php $price = (@$product->stock->first()?->price ?? $product->price); @endphp @if(($product->discount_percentage) > 0) {{short_amount(cal_discount($product->discount_percentage,$price) )}} {{short_amount($price)}} @else {{short_amount($price)}} @endif @empty @include("frontend.partials.empty",['message' => 'No product found']) @endforelse @php $date = date("Y-m-d H:i:s",strtotime($flashDeal->end_date)); @endphp @push('scriptpush') @endpush @endif
{{@frontend_section_data($flash_deal->value,'sub_heading')}}
{{translate('Time Remaining')}}
{{translate('Days')}}
{{translate('Hours')}}
{{translate('Minutes')}}
{{translate('Seconds')}}