@extends('admin.layouts.app') @section('title', 'Product Details') @section('content')

{{ $product->name }}

{{ $product->is_active ? 'Active' : 'Inactive' }} @if($product->is_featured) Featured @endif

SKU: {{ $product->sku }}

Regular Price

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

@if($product->sale_price)

Sale Price

${{ number_format($product->sale_price, 2) }}

-{{ number_format((1 - $product->sale_price / $product->price) * 100, 1) }}%

@endif

Stock Level

{{ $product->stock_quantity }}

{{ $product->stock_quantity <= ($product->low_stock_threshold ?? 0) ? 'Low Stock' : 'In Stock' }}

Last Updated

{{ $product->updated_at->diffForHumans() }}

{{ $product->updated_at->format('M d, Y') }}

Product Images

High-quality images showcasing your product

@if($product->images && count(json_decode($product->images, true)) > 0)
@foreach(json_decode($product->images, true) as $index => $image)
{{ $product->name }} - Image {{ $index + 1 }} @if($index === 0)
Main Image
@endif
@endforeach
@else

No Images Uploaded

This product doesn't have any images yet.

Add Images
@endif

Product Description

Detailed information about your product

@if($product->short_description)

Short Description

{{ $product->short_description }}

@endif @if($product->description)

Full Description

{!! nl2br(e($product->description)) !!}
@else

No Description

This product doesn't have a description yet.

@endif

Product Attributes

Colors, sizes, and other product variations

Available Colors

@if($product->colors->count() > 0)
@foreach($product->colors as $color)
{{ $color->name }}
@endforeach
@else

No colors assigned

@endif

Available Sizes

@if($product->sizes->count() > 0)
@foreach($product->sizes as $size)
{{ $size->name }}
@endforeach
@else

No sizes assigned

@endif

Product Information

Basic product details

SKU
{{ $product->sku }}
Category
{{ $product->category ? $product->category->name : 'N/A' }}
Brand
{{ $product->brand ? $product->brand->name : 'N/A' }}
Status
{{ $product->is_active ? 'Active' : 'Inactive' }}
@if($product->is_featured)
Featured
Featured
@endif @if($product->is_virtual)
Type
Virtual Product
@endif @if($product->is_downloadable)
Downloadable
Yes
@endif

Pricing & Inventory

Financial and stock details

Regular Price
${{ number_format($product->price, 2) }}
@if($product->sale_price)
Sale Price
${{ number_format($product->sale_price, 2) }}
@endif
Stock Quantity
{{ $product->stock_quantity }} @if($product->stock_quantity <= ($product->low_stock_threshold ?? 0)) (Low Stock) @endif
@if($product->low_stock_threshold)
Low Stock Alert
{{ $product->low_stock_threshold }}
@endif @if($product->weight)
Weight
{{ $product->weight }} kg
@endif @if($product->dimensions)
Dimensions
{{ $product->dimensions }}
@endif

Activity Timeline

Product creation and updates

Product Created

{{ $product->created_at->format('F d, Y \a\t g:i A') }}

Last Updated

{{ $product->updated_at->format('F d, Y \a\t g:i A') }}

Actions

Manage this product

Edit Product
@csrf @method('DELETE')
@endsection @section('scripts') @endsection