@extends('backEnd.layouts.master') @section('title','Product Details') @section('css') @endsection @section('content')
{{ $product->name }}
@if($product->images->count() > 0)
{{-- Main Image Thumbnail --}} {{-- Gallery Images --}} @foreach($product->images as $img) @endforeach
@endif
Brand Information

{{ $product->brand ? $product->brand->name : 'No Brand' }}


Vendor

@if($product->vendor) {{ $product->vendor->shop_name ?? 'Vendor #' . $product->vendor_id }} @else Inhouse Product @endif


Product Type

@if($product->is_digital) Digital Product @else Physical Product @endif @if($product->is_wholesale) Wholesale Product @endif

{{ $product->name }}

@if($product->status == 1) Active @else Inactive @endif @if($product->topsale == 1) Hot Deal @endif @if($product->feature_product == 1) Featured @endif
৳{{ number_format($product->new_price, 2) }} @if($product->old_price) ৳{{ number_format($product->old_price, 2) }} ({{ round((($product->old_price - $product->new_price) / $product->old_price) * 100) }}% OFF) @endif

Current Stock

{{ $product->stock }} {{ $product->pro_unit ?? 'pcs' }}

Purchase Price

৳{{ number_format($product->purchase_price, 2) }}
Specifications
@if($product->is_digital) @endif @if($product->is_wholesale && $product->wholesalePrices && $product->wholesalePrices->count() > 0) @endif @if($product->variantPrices && $product->variantPrices->count() > 0) @endif
Product Code #{{ $product->product_code ?? 'N/A' }}
Category {{ $product->category ? $product->category->name : 'N/A' }} @if($product->subcategory) {{ $product->subcategory->subcategoryName ?? $product->subcategory->name }} @endif @if($product->childcategory) {{ $product->childcategory->childcategoryName ?? $product->childcategory->name }} @endif
Digital File @if($product->digital_file) Download File @else No file uploaded @endif
Wholesale Pricing Tiers
@foreach($product->wholesalePrices as $tier) @endforeach
Min Qty Max Qty Price Stock
{{ $tier->min_quantity }} {{ $tier->max_quantity ?? 'Unlimited' }} ৳{{ number_format($tier->wholesale_price, 2) }} {{ $tier->stock ?? 0 }}
Product Variants
@foreach($product->variantPrices as $variant) @endforeach
Color Size Price Stock
{{ $variant->color ? ($variant->color->colorName ?? $variant->color->name) : 'N/A' }} {{ $variant->size ? ($variant->size->sizeName ?? $variant->size->name) : 'N/A' }} ৳{{ number_format($variant->price, 2) }} {{ $variant->stock ?? 0 }}
Short Note {{ $product->note ?? 'N/A' }}
Description
@if($product->description) {!! $product->description !!} @else No description available. @endif
@if($product->pro_video)
Product Video
Watch Video
@endif
@endsection