@extends('digitalmenu::layouts.public') @section('title', ($product->name ?? 'Product') . ' — ' . ($shop->name ?? 'Shop')) @section('header-left') arrow_back @endsection @section('content') @if($product->is_new_arrived) New @elseif($product->is_discount) Sale @endif Home / {{ $categoryName ?? 'Product' }} {{ $product->name }} @if($product->is_discount) {{ $currencySymbol }}{{ number_format($product->getDiscountPrice($product->unit_price), 2) }} {{ $currencySymbol }}{{ number_format($product->unit_price, 2) }} @else {{ $currencySymbol }}{{ number_format($product->unit_price, 2) }} @endif @if(!empty($product->short_description) || !empty($product->description)) {!! nl2br(e($product->description ?: $product->short_description)) !!} @endif @if(!empty($product->category)) Category {{ $categoryName }} @endif @if(!empty($product->sku)) SKU {{ $product->sku }} @endif @if($related->count() > 0) You May Also Like @foreach($related as $item) @if($item->is_new_arrived) New @elseif($item->is_discount) Sale @endif {{ $item->name }} @if($item->is_discount) {{ $currencySymbol }}{{ number_format($item->getDiscountPrice($item->unit_price), 2) }} {{ $currencySymbol }}{{ number_format($item->unit_price, 2) }} @else {{ $currencySymbol }}{{ number_format($item->unit_price, 2) }} @endif @endforeach @endif @endsection
{{ $currencySymbol }}{{ number_format($item->unit_price, 2) }}