@php $thumb = $product->thumbnail; $thumbSrc = $thumb && (str_starts_with($thumb, 'http://') || str_starts_with($thumb, 'https://')) ? $thumb : ($thumb ? asset($thumb) : null); $price = $product->sale_price ?? $product->price; $gridContext = $gridContext ?? 'home'; $gridColClass = \App\Services\ProductItemSettingsService::gridColClass($gridContext); $imageFitClass = \App\Services\ProductItemSettingsService::imageFitClass($gridContext); $showCartIcon = \App\Services\ProductItemSettingsService::showAddToCartIcon(); @endphp
@if($thumbSrc) {{ $product->name }} @else
@endif @if($product->is_new_arrival) New @endif
{{ $product->name }}
৳{{ number_format($price, 2) }}