@php use App\Utils\Helpers;use App\Utils\ProductManager;use Illuminate\Support\Str; @endphp
@if(isset($deal_of_the_day->product))
@php($overall_rating = getOverallRating($deal_of_the_day->product->reviews))
{{ translate('don’t_miss_the_chance').'!' }}

{{ translate('today’s_best_deal') }}

{{ $deal_of_the_day->product->name }}
@for ($i = 1; $i <= 5; $i++) @if ($i <= $overall_rating[0]) @elseif ($overall_rating[0] != 0 && $i <= $overall_rating[0] + 1.1) @else @endif @endfor
({{ $deal_of_the_day->product->reviews->count() }})
@if($deal_of_the_day->product->discount > 0) {{Helpers::currency_converter($deal_of_the_day->product->unit_price)}} @endif {{ Helpers::currency_converter($deal_of_the_day->product->unit_price-Helpers::get_product_discount($deal_of_the_day->product,$deal_of_the_day->product->unit_price)) }}
{{ translate('save') }} {{ Helpers::currency_converter(Helpers::get_product_discount($deal_of_the_day->product,$deal_of_the_day->product->unit_price)) }}
@endif