@extends('layouts.admin') @section('title', 'Wholesale Product Details') @section('content')
{{-- Header --}}

{{ $wholesaleProduct->name }}

Product details and information

Edit Product Back to List {{ ucfirst($wholesaleProduct->status) }}
{{-- Main Content --}}
{{-- Product Images --}}

Product Images

Thumbnail and gallery

@if($wholesaleProduct->thumbnail)

Thumbnail

{{ $wholesaleProduct->name }}
@endif @if($wholesaleProduct->gallery)

Gallery ({{ count(json_decode($wholesaleProduct->gallery)) }} images)

@foreach(json_decode($wholesaleProduct->gallery) as $img) @endforeach
@endif @if(!$wholesaleProduct->thumbnail && !$wholesaleProduct->gallery)

No images uploaded

@endif
{{-- Product Details --}}

Product Details

General information

SKU

{{ $wholesaleProduct->sku ?? '—' }}

Barcode

{{ $wholesaleProduct->barcode ?? '—' }}

Unit

{{ $wholesaleProduct->unit ?? '—' }}

Base Price

{{ price($wholesaleProduct->price) }}

Min Order Qty

{{ number_format($wholesaleProduct->min_order_quantity) }} units

Created

{{ $wholesaleProduct->created_at->format('M d, Y') }}

{{-- Wholesale Pricing Tiers --}} @if($wholesaleProduct->wholesale_prices && count($wholesaleProduct->wholesale_prices) > 0)

Wholesale Pricing Tiers

Quantity-based discounts

@foreach($wholesaleProduct->wholesale_prices as $tier) @php $discount = $wholesaleProduct->price > 0 ? round((1 - ($tier['price'] / $wholesaleProduct->price)) * 100, 0) : 0; @endphp @endforeach
Min Quantity Max Quantity Price per Unit Discount
{{ number_format($tier['min_qty'] ?? 0) }} {{ $tier['max_qty'] ? number_format($tier['max_qty']) : '∞' }} {{ price($tier['price']) }} @if($discount > 0) -{{ $discount }}% @else @endif
@endif {{-- Stock & Shipping --}}

Stock & Shipping

Inventory and delivery

Current Stock

{{ number_format($wholesaleProduct->current_stock ?? 0) }}

Low Stock Alert

{{ number_format($wholesaleProduct->low_stock_threshold ?? 0) }}

Shipping Days

{{ $wholesaleProduct->shipping_days ? $wholesaleProduct->shipping_days . ' days' : '—' }}

Stock Visibility

{{ str_replace('_', ' ', $wholesaleProduct->stock_visibility ?? 'visible_with_quantity') }}

{{-- Description --}}

Description

Product details

@if($wholesaleProduct->short_description)

Short Description

{{ $wholesaleProduct->short_description }}

@endif

Full Description

{{ $wholesaleProduct->description ?: 'No description provided.' }}
@if($wholesaleProduct->pdf_specification)

{{ basename($wholesaleProduct->pdf_specification) }}

View PDF →
@endif
{{-- Video --}} @if($wholesaleProduct->video_url || $wholesaleProduct->video_provider === 'mp4')

Product Video

Media content

{{ $wholesaleProduct->video_provider }}: {{ $wholesaleProduct->video_url }}

@endif
{{-- Sidebar --}}
{{-- Quick Info --}}

Quick Info

Cash on Delivery @if($wholesaleProduct->cash_on_delivery) Enabled @else Disabled @endif
Refundable @if($wholesaleProduct->is_refundable) Yes @else No @endif
Featured @if($wholesaleProduct->is_featured) Yes @else No @endif
Today's Deal @if($wholesaleProduct->todays_deal) Active @else No @endif
{{-- SEO Info --}} @if($wholesaleProduct->meta_title || $wholesaleProduct->meta_description || $wholesaleProduct->meta_keywords)

SEO

Search engine optimization

@if($wholesaleProduct->meta_title)

Meta Title

{{ $wholesaleProduct->meta_title }}

@endif @if($wholesaleProduct->meta_description)

Meta Description

{{ $wholesaleProduct->meta_description }}

@endif @if($wholesaleProduct->meta_keywords)

Meta Keywords

@foreach(explode(',', $wholesaleProduct->meta_keywords) as $keyword) {{ trim($keyword) }} @endforeach
@endif
@endif {{-- Actions --}}

Actions

Edit Product
@csrf
@csrf
{{-- Timestamps --}}

Timestamps

Created

{{ $wholesaleProduct->created_at->format('M d, Y h:i A') }}

{{ $wholesaleProduct->created_at->diffForHumans() }}

Last Updated

{{ $wholesaleProduct->updated_at->format('M d, Y h:i A') }}

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

@if($wholesaleProduct->deleted_at)

Deleted

{{ $wholesaleProduct->deleted_at->format('M d, Y h:i A') }}

@endif
@endsection