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

Product Details

  • Home
  • Product Details
{{-- FIX PRODUCT MAIN IMAGE: Use $vendorProduct with existence check, fallback to default --}} {{-- FIX PRODUCT THUMBNAILS: use $vendorProduct and correct public path --}}
{{ $vendorProduct->product_name }}
SKU: #{{ $vendorProduct->sku }}
@php $vendorSp = $vendorProduct->sp ?? 0; $vendorGst = $vendorProduct->gst ?? 0; $platformFeeRate = 10; // Fixed 10% platform fee on (SP + GST) $vendorGstAmount = $vendorSp * $vendorGst / 100; $vendorBaseWithGst = $vendorSp + $vendorGstAmount; $vendorPlatformFee = $vendorBaseWithGst * $platformFeeRate / 100; $vendorPriceWithPlatformFee = $vendorBaseWithGst + $vendorPlatformFee; @endphp

₹{{ number_format($vendorPriceWithPlatformFee, 2) }}

@php $stock = (int) ($vendorProduct->stock ?? 0); @endphp @if($stock > 0) In Stock ({{ $stock }}) @else Out of Stock @endif


{!! $vendorProduct->short_description !!}

@if (session('flash_success')) @endif @if ($errors->any()) @endif
Delivery To :
@php $user = Auth::user(); @endphp @if (session('success'))
{{ session('success') }}
@endif @if (session('error'))
{{ session('error') }}
@endif
@if ($user) @php // Vendor cart uses vendor_product_id and quantity $vendorPrice = $vendorProduct->sp ?? 0; $mappedProductId = $vendorProduct->mapped_product_id ?? null; @endphp {{-- CORRECT ADD TO CART: - Add 'vendor_product_id' and quantity fields - Only enable if in stock, disable button if out of stock --}}
@csrf
@csrf
@else Login @endif
About The Product
Highlights
Post Review

Long Description

{!! $vendorProduct->long_description !!}