@php $label = optional($product->label)->name; @endphp @if ($label) {{ $label }} @endif
Grocery Ecommerce Template {{--
--}}

@php //reduce name string length to 20 chars and append ... $name = strlen($product->name) > 20 ? substr($product->name, 0, 20) . '...' : $product->name; @endphp {{ ucwords($name) }}

@php //reduce short_description string length to 100 chars and append ... $short_description = strlen($product->short_description) > 60 ? substr($product->short_description, 0, 60) . '...' : $product->short_description; @endphp {!! $short_description !!}

{{ $product->specification }} | {{ $product->sku }}
@php $discount = \App\Helpers\ProductsHelper::getProductPrice($product, true); $orignalPrice = \App\Helpers\ProductsHelper::getProductPrice($product); $show_price = get_setting('show_price'); @endphp @if ($show_price == '1' || isCustomer())
£{{ $orignalPrice }} @if (!empty($product->off_price) && $product->off_price > $orignalPrice) £{{ $product->off_price }} @endif
{{-- @if(!empty($discount) && $discount < $orignalPrice)
£{{ $discount }} £{{ $orignalPrice }}
Save {{ \App\Helpers\ProductsHelper::getProductDiscount($product) }} %
@else
£90 £100
@endif --}}
@else @endif
@php $isExist = false; if(count($cartItems) > 0){ $isExist = $cartItems->where('product_id', $product->id)->first(); $qty = $isExist ? $isExist->quantity : 1; } @endphp @if (!$isExist) @php $show_purchase_note = get_setting('show_purchase_note'); @endphp @if($show_purchase_note == '1' && !empty($product->purchase_note)) Add to cart @else Add to cart
@endif @else Add to cart
@endif
@include('frontend.partials.purchase-note-modal',$product)