@php // Collect all unique images from all available inventory items for this product $allFormattedImages = collect(); foreach ($inventoryItems as $item) { $allFormattedImages = $allFormattedImages->merge($item->getGroupedVisibleImages()); } // Ensure uniqueness based on the large image URL, as multiple items might share images $formattedImages = $allFormattedImages->unique('large')->values(); @endphp
Secure Checkout
Fast Shipping
Easy Returns
@if($product->brand) {{ $product->brand->name }} @endif

{{ $product->name }}

@for($i = 0; $i < 5; $i++) @endfor
4.8 (12 reviews)
From ${{ number_format($inventoryItems->min('current_value'), 2) }} {{ $inventoryItems->count() }} available

Available Items

@php // Group items by condition, price, and details (serial_number + condition_notes) $groupedItems = $inventoryItems->groupBy(function ($item) { $conditionName = $item->conditionGrade?->name ?? 'N/A'; $price = number_format($item->current_value, 2); $serialNumber = $item->serial_number ?? ''; $conditionNotes = $item->condition_notes ?? ''; return $conditionName . '|' . $price . '|' . $serialNumber . '|' . $conditionNotes; }); @endphp @foreach($groupedItems as $key => $items) @php $item = $items->first(); $quantity = $items->count(); @endphp @endforeach
Condition Price Qty Action
@if($item->conditionGrade) {{ $item->conditionGrade->name }} @else N/A @endif ${{ number_format($item->current_value, 2) }} {{ $quantity }}
@if($product->product_specs && count($product->product_specs) > 0)

Key Features

    @php $keySpecs = array_slice($product->product_specs, 0, 5); if (!function_exists('formatSpecValue')) { function formatSpecValue($value) { if (is_array($value)) { return implode(', ', array_map(function($item) { return is_array($item) ? json_encode($item) : (string)$item; }, $value)); } return (string)$value; } } @endphp @foreach($keySpecs as $key => $value)
  • {{ $key }}: {{ formatSpecValue($value) }}
  • @endforeach
@endif

About This Product

{{ $product->description ?? 'Professional-grade camera equipment designed for photographers who demand the best. This product combines cutting-edge technology with robust build quality to deliver exceptional performance in any shooting condition.' }}

@if($product->product_specs && count($product->product_specs) > 0)
@php $specs = $product->product_specs; $halfCount = ceil(count($specs) / 2); $firstHalf = array_slice($specs, 0, $halfCount); $secondHalf = array_slice($specs, $halfCount); @endphp
@foreach($firstHalf as $key => $value) @endforeach
{{ $key }} {{ formatSpecValue($value) }}
@foreach($secondHalf as $key => $value) @endforeach
{{ $key }} {{ formatSpecValue($value) }}
@else

No specifications available for this product.

@endif

Reviews coming soon.

@if(isset($compatibleItems) && $compatibleItems->count() > 0) @endif