@extends('front.layouts.app') @section('content')

{{ $product->title }}

@if (count($product->product_rating) > 0) @foreach ($product->product_rating as $rating) @php $rating_per = ($rating->rating*100)/5; @endphp
{{ $rating->username }}

{{ $rating->comment }}

@endforeach @endif
@if ($product->compare_price > 0)
${{ $product->compare_price }}
@endif

${{ $product->price }}

Discription :

{!! $product->short_description !!}

@if ($product->product_size == null) @else
Size :
@endif
@if ($product->product_color == null) @else
Color :
@endif
{{-- product out of stock and add to cart --}} @if ($product->qty > 0) @else  Out of Stock @endif

@if (!empty($relatedProducts))

Related Products

@endif
@endsection @section('customJs') @endsection