@extends('admin.master') @section('title', $product->name) @push('styles') @endpush @section('content') @php $displayPrice = $product->sale_price ?? $product->regular_price; $hasDiscount = $product->sale_price !== null && (float) $product->sale_price < (float) $product->regular_price; @endphp
← Back Product Details
✎ Edit Product
@csrf @method('DELETE')
@if ($product->cover_image) {{ $product->name }} @else No product image @endif
{{ $product->is_published ? 'Published' : 'Draft' }} {{ ucfirst(str_replace('_', ' ', $product->availability)) }} @if ($product->has_variants) Variant Product @endif @if ($product->is_digital) Digital Product @endif

{{ $product->name }}

SKU: {{ $product->sku }}
৳{{ number_format((float) $displayPrice, 2) }} @if ($hasDiscount) ৳{{ number_format((float) $product->regular_price, 2) }} @endif
Brand {{ $product->brand?->name ?? 'No Brand' }}
Category {{ $product->categories->pluck('name')->join(', ') ?: 'No Category' }}
Unit {{ $product->unit_value }} {{ $product->unit?->name }}
Weight {{ $product->weight_value ?? '—' }} {{ $product->weightUnit?->name }}
Stock @if ($product->has_variants) {{ $product->variants->sum('stock_quantity') }} total variant stock @else {{ $product->stock_quantity }} @endif
Inventory Tracking {{ $product->track_stock ? 'Enabled' : 'Disabled' }}
Product Information
Slug
{{ $product->slug }}
Condition
{{ ucfirst($product->condition) }}
Delivery Type
{{ ucfirst(str_replace('_', ' ', $product->delivery_type)) }}
Regular Price
৳{{ number_format((float) $product->regular_price, 2) }}
Discount Type
{{ ucfirst($product->discount_type) }}
Discount Value
{{ $product->discount_value }} {{ $product->discount_type === 'percentage' ? '%' : 'BDT' }}
Stock Alert
{{ $product->stock_alert_quantity }}
Pre-order
{{ $product->pre_order_enabled ? 'Enabled' : 'Disabled' }}
Created
{{ $product->created_at?->format('d M Y, h:i A') }}
@if ($product->pre_order_message)
Pre-order Message

{{ $product->pre_order_message }}

@endif
Product Images
@if ($product->has_variants)
Product Variants
@foreach ($product->variants as $variant) @endforeach
Name SKU Attributes Price Stock Default
{{ $variant->name }} {{ $variant->sku }} {{ $variant->attributeValues->map(function ($value) { return $value->attribute?->name . ': ' . $value->value; })->join(', ') ?: '—' }} ৳{{ number_format((float) ($variant->sale_price ?? $variant->regular_price), 2) }} {{ $variant->stock_quantity }} {{ $variant->is_default ? 'Yes' : 'No' }}
@endif
Product Description

Short Description

{!! $product->short_description ?: 'No short description.' !!}

Long Description

{!! $product->long_description !!}
Offers and Product Flags

Offers

@forelse($product->offers as $offer) {{ $offer->name }} @empty No offers assigned. @endforelse

Flags

@forelse($product->flags as $flag) {{ $flag->name }} @empty No product flags assigned. @endforelse
@if ($product->video_embed)
Product Video
Position: {{ ucfirst(str_replace('_', ' ', $product->video_position)) }}
{!! $product->video_embed !!}
@endif @if ($product->is_digital)
Digital Product Information
Download Limit
{{ $product->download_limit }}
Expiry Days
{{ $product->download_expiry_days }}
Files
{{ $product->digitalFiles->pluck('file_name')->join(', ') ?: 'No file' }}
@endif
SEO Information
SEO Enabled
{{ $product->seo_enabled ? 'Yes' : 'No' }}
Meta Title
{{ $product->meta_title ?? '—' }}
Canonical URL
{{ $product->canonical_url ?? '—' }}
Meta Keywords

{{ $product->meta_keywords ?? '—' }}

Meta Description

{{ $product->meta_description ?? '—' }}

@endsection