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

{{ translate('todays_best_deal') }}

{{ $dealOfTheDay->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
({{ $dealOfTheDay->product->reviews->count() }})
@if($dealOfTheDay->product->discount > 0) {{webCurrencyConverter($dealOfTheDay->product->unit_price)}} @endif {{ webCurrencyConverter($dealOfTheDay->product->unit_price-Helpers::getProductDiscount($dealOfTheDay->product,$dealOfTheDay->product->unit_price)) }}
{{ translate('save') }} {{ webCurrencyConverter(Helpers::getProductDiscount($dealOfTheDay->product,$dealOfTheDay->product->unit_price)) }}
@endif