@extends('frontend.layouts.app') @section('content')

{{ $flash_deal->title }}

@if($flash_deal->status == 1 && strtotime(date('Y-m-d H:i:s')) <= $flash_deal->end_date)
@foreach ($flash_deal->flash_deal_products->take(20) as $key => $flash_deal_product) @php $product = \App\Models\Product::find($flash_deal_product->product_id); @endphp @if ($product != null && $product->published != 0) @php $product_url = route('product', $product->slug); if($product->auction_product == 1) { $product_url = route('auction-product', $product->slug); } @endphp
@include('frontend.partials.product_box_1',['product' => $product])
@endif @endforeach
@else

{{ $flash_deal->title }}

{{ translate('This offer has been expired.') }}

@endif
@endsection