@extends('frontend.master') @section('title') Product Details @endsection @section('content') Home Product Details @foreach ($productImages as $productImage) @endforeach @foreach ($productImages as $image) @endforeach {{ $product->name }} Category: {{ $product?->category?->name ?? '' }} Code: {{ $product->code }} Status: {{ $product->quantity > 0 ? 'In Stock' : 'Out Stock' }} @if (!empty($product->offer_price)) {{ $product->price }} {{ $product->offer_price }} @else {{ $product->price }} @endif @if (!empty(count($ratings))) ({{ count($ratings) }} {{ count($ratings) > 1 ? 'Reviews' : 'Review' }}) @endif {{ $product->short_description }} {{-- Color: @foreach ($colors as $color) @php $colorName = App\Models\Admin\Color::findOrFail($color)->name; @endphp @endforeach --}} Size: @foreach ($sizes as $size) {{ $size->name }} @endforeach @if ($product->quantity > 0) Add to Cart @endif Description @if (!empty($product->product_ratings_count)) Customer Reviews ({{ count($ratings) }}) @endif @if (!empty(@$product->video_link)) @endif {!! $product->long_description !!} @foreach ($ratings as $rating) @if (!empty($rating->image)) @endif {{ $rating->name }} {{ date('d-F-Y', strtotime($rating->created_at)) }} {!! $rating->review !!} {{-- --}} @endforeach @if (count($relatedProducts) > 0) Related Products More Products @foreach ($relatedProducts as $relatedProduct) @endforeach @endif @endsection @push('scripts') @endpush
{!! $product->long_description !!}
{!! $rating->review !!}
{{ $rating->name }} {{ date('d-F-Y', strtotime($rating->created_at)) }}
{!! $rating->review !!}
{{--