@extends('frontend.layouts.app') @section('content')
{{@$campaign->banner_image}}
@php $dateTime = date("Y-m-d H:i:s",strtotime($flashDeal->end_date)); @endphp

{{$flashDeal->name}}

{{translate('Days')}}

{{translate('Hours')}}

{{translate('Minutes')}}

{{translate('Seconds')}}

@forelse($products as $product)
{{$product->name}}
@if($product->discount_percentage > 0) {{translate('off')}} {{round($product->discount_percentage)}} % @endif
@php echo show_ratings($product->review->avg('rating')) @endphp

{{$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
@php $authUser = auth_user('web'); $wishedProducts = $authUser ? $authUser->wishlist->pluck('product_id')->toArray() : []; $randNum = "prod-".rand(6666,10000000); @endphp
@empty
@include("frontend.partials.empty",['message' => 'No Data Found'])
@endforelse
@endsection @if($flashDeal) @push('scriptpush') @endpush @endif