@extends('admin.layouts.app') @section('title', 'Product Details - ' . $product->name) @section('header_title', 'Product Details') @section('content')
Dwaraka Luxury E-Commerce Portal / Product View

{{ $product->name }}

{{ $product->name }}
Click to Zoom
@if($product->badge) {{ $product->badge }} @endif
@php $allImagesList = []; if (!empty($product->primary_image_url)) $allImagesList[] = ['type' => 'Primary', 'url' => $product->primary_image_url]; if (!empty($product->hover_image_url) && $product->hover_image_url !== $product->primary_image_url) { $allImagesList[] = ['type' => 'Hover', 'url' => $product->hover_image_url]; } foreach ($product->additional_image_urls as $idx => $url) { if (!in_array($url, array_column($allImagesList, 'url'))) { $allImagesList[] = ['type' => 'Gallery ' . ($idx + 1), 'url' => $url]; } } @endphp @if(count($allImagesList) > 0)

Product Image Gallery ({{ count($allImagesList) }})

@foreach($allImagesList as $index => $imgItem) @endforeach
@endif
@if(strtolower($product->product_type ?? 'normal') === 'impon') IMPON PRODUCT @else NORMAL PRODUCT @endif {{ $product->category->name ?? 'Uncategorized' }} SKU: {{ $product->sku ?? 'N/A' }}
@if($product->status === 'active') ACTIVE STORE PRODUCT @elseif($product->status === 'sold_out' || $product->stock <= 0) SOLD OUT @else INACTIVE @endif

{{ $product->name }}

Selling Price

₹{{ number_format($product->price, 2) }}

@if($product->original_price && $product->original_price > $product->price)

MRP Original

₹{{ number_format($product->original_price, 2) }}

@endif @if($product->discount_percentage > 0) {{ $product->discount_percentage }}% OFF @endif

Display Flags

@if($product->is_new) ✓ NEW ARRIVAL @endif @if($product->is_best_seller) ✓ BEST SELLER @endif @if($product->is_featured) ✓ FEATURED @endif @if($product->is_trending) ✓ TRENDING @endif @if($product->is_sold_out) ✓ FORCE SOLD OUT @endif @if(!$product->is_new && !$product->is_best_seller && !$product->is_featured && !$product->is_trending && !$product->is_sold_out) No special flags assigned @endif

Short Summary

{{ $product->short_description ?? 'No short summary provided.' }}

Detailed Description

{{ $product->description ?? 'No detailed description specified.' }}

Stock Quantity

{{ $product->stock }} Units Available

Availability

{{ $product->status === 'active' && $product->stock > 0 ? 'In Stock for Orders' : 'Unavailable' }}

Media URLs & System Audit

@if(count($product->additional_image_urls) > 0)
@foreach($product->additional_image_urls as $addUrl) @endforeach
@endif
Created: {{ $product->created_at ? $product->created_at->format('M d, Y h:i A') : 'N/A' }} Last Updated: {{ $product->updated_at ? $product->updated_at->format('M d, Y h:i A') : 'N/A' }}
@push('scripts') @endpush @endsection