@extends('front.layouts.app') @section('content') Product Product Detail @foreach($product->image as $key => $image) @endforeach @foreach($product->image as $key => $image) @endforeach @csrf {{ $product->name }} 3539 Reviews @php $formattedPrice = \App\Helper\PriceHelper::formatPrice($product->price); $formattedSalePrice = \App\Helper\PriceHelper::formatPrice($product->sale_price); @endphp Price $ @if($product->sale == 1) {{ $formattedSalePrice }} {{ $formattedPrice }} @else {{ $formattedPrice }} @endif @if(Auth::check() && Auth::user()->hasRole('wholesaler')) Wholesale Price: {{$product->dist_price ?? 'No Price'}} @endif In stock - + Product Discription {!! $product->description !!} @endsection @push('script') @endpush
Wholesale Price: {{$product->dist_price ?? 'No Price'}}
{!! $product->description !!}