@extends('frontend.layout.app') @section('content')

Product Details

  • Home
  • Product Details
{{ $products->product_fullname }}
SKU: #{{ $products->sku }}
@php // Always show the default product's selling price and MRP. $defaultSp = $products->sp; $defaultMrp = $products->mrp; $defaultGst = $products->gst ?? 0; // Calculate price including GST $defaultPriceWithGst = $defaultSp + ($defaultSp * $defaultGst / 100); @endphp

{{ number_format($defaultPriceWithGst, 2) }} {{ $defaultMrp }}

@php // Assuming each $product has 'reviews' relationship, each review has 'rating' field (1-5) $ratings = $products->reviews->pluck('rating'); $avgRating = $ratings->count() ? round($ratings->avg(), 2) : null; $ratingPercent = $avgRating ? ($avgRating / 5) * 100 : 0; @endphp

{!! $products->content !!}

{{-- Removed vendor products display block --}} @if (session('flash_success')) @endif @if ($errors->any()) @endif
Delivery To :
@php $user = Auth::user(); @endphp @if (session('success'))
{{ session('success') }}
@endif
{{--
--}} @if ($user)
@csrf {{-- Removed vendor_product_id --}}
@csrf
@else Login @endif
{{-- Removed Vendor Price Selection Script --}}
About The Product
Specification
Shipping & Return
Post Review

Overview

{!! $products->overview !!}