@php $link = route('glover-website.product', [ 'id' => $product->id, 'slug' => !empty($product->name) ? \Str::slug($product->name) : \Str::random(10), ]); @endphp
Product logo

{{ $product->name }}

{{-- strip description of html tags --}} {{ strip_tags($product->vendor->name) }}

{{-- price --}}

@if ($product->discount_price > 0) {{ currencyFormat($product->price) }} @endif {{ currencyFormat($product->sell_price) }}

{{-- discount tag --}} @if ($product->discount_price > 0)

~ {{-- calculate the discount percentage between price and discount_price --}} {{ round((($product->price - $product->discount_price) / $product->price) * 100) }}% {{ __('Off') }}

@endif