@extends('frontend.layouts.app') @section('content') @if($flash_deal->status == 1 && strtotime(date('d-m-Y')) <= $flash_deal->end_date)
{{ $flash_deal->title }}

{{ $flash_deal->title }}

@foreach ($flash_deal->flash_deal_products as $key => $flash_deal_product) @php $product = \App\Product::find($flash_deal_product->product_id); @endphp @if ($product->published != 0)
@if(!empty($flash_deal_product->discount)) {{$flash_deal_product->discount}}% off @endif {{  __($product->name) }}
@if(home_base_price($product->id) != home_discounted_base_price($product->id)) {{ home_base_price($product->id) }} @endif {{ home_discounted_base_price($product->id) }}

{{ __($product->name) }}

@endif @endforeach
@else
{{ $flash_deal->title }}

{{ $flash_deal->title }}

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

@endif @endsection