@php use App\Utils\Helpers;use App\Utils\ProductManager;use Illuminate\Support\Str; @endphp @php($overallRating = getOverallRating($product->reviews))
@if($product->discount > 0) @if ($product->discount_type == 'percent') {{'-'.' '.round($product->discount, (!empty($decimal_point_settings) ? $decimal_point_settings: 0)).'%'}} @elseif($product->discount_type =='flat') {{'-'.' '.webCurrencyConverter($product->discount)}} @endif @endif
{{ $product['name'] }}
@for ($index = 1; $index <= 5; $index++) @if ($index <= (int)$overallRating[0]) @elseif ($overallRating[0] != 0 && $index <= (int)$overallRating[0] + 1.1 && $overallRating[0] == ((int)$overallRating[0]+.50)) @else @endif @endfor ({{ count($product->reviews) }})
@if($product->added_by=='seller') {{ isset($product->seller->shop->name) ? Str::limit($product->seller->shop->name, 20) : '' }} @elseif($product->added_by=='admin') {{ $web_config['company_name'] }} @endif
{{ $product['name'] }}
@if($product->discount > 0) {{webCurrencyConverter($product->unit_price)}} @endif {{webCurrencyConverter( $product->unit_price-(Helpers::getProductDiscount($product,$product->unit_price)) )}}