@extends('admin.master') @section('content')

Product Details

Detailed information about selected product

Basic Information
Name {{ $product->name }}
Slug {{ $product->slug }}
SKU {{ $product->sku }}
Barcode {{ $product->barcode ?: '—' }}
Shop {{ $product->shop?->shop_name ?? '—' }}
Category {{ $product->category?->name ?? '—' }}
Brand {{ $product->brand?->name ?? '—' }}
Status @php $statusClass = match($product->status) { 'active' => 'badge-active', 'draft' => 'badge-draft', default => 'badge-inactive', }; @endphp {{ ucfirst($product->status) }}
Description
{!! $product->description ? nl2br(e($product->description)) : 'No description found.' !!}
Specification
{!! $product->specification ? nl2br(e($product->specification)) : 'No specification found.' !!}
Media Gallery
@forelse($product->media as $media)
@if($media->type === 'video') @else {{ $product->name }} @endif
Role: {{ ucfirst($media->role) }}
Type: {{ ucfirst($media->type) }}
@empty
No media found.
@endforelse
Product Variants
@forelse($product->variants as $variant)
Variant Name
{{ $variant->name }}
SKU
{{ $variant->sku ?: '—' }}
Regular Price
৳{{ number_format($variant->regular_price, 2) }}
Discount Price
{{ $variant->discounted_price ? '৳' . number_format($variant->discounted_price, 2) : '—' }}
@if($variant->image) {{ $variant->name }} @endif
@empty
No variants found.
@endforelse
Pricing Summary
Seller Price ৳{{ number_format($product->seller_price, 2) }}
Final Price ৳{{ number_format($product->final_price, 2) }}
Admin Markup ৳{{ number_format($product->admin_markup, 2) }}
Commission Rate {{ number_format($product->commission_rate, 2) }}%
Commission Amount ৳{{ number_format($product->commission_amount, 2) }}
Seller Payable ৳{{ number_format($product->seller_payable, 2) }}
Admin Earning ৳{{ number_format($product->admin_earning, 2) }}
Warranty
Warranty Type
{{ $product->warranty_type ?: '—' }}
Warranty Policy
{!! $product->warranty_policy ? nl2br(e($product->warranty_policy)) : 'No warranty policy found.' !!}
@endsection