@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 }}
From ${{ number_format($inventoryItems->min('current_value'), 2) }}
{{ $inventoryItems->count() }} available
Available Items
| Condition | Price | Qty | Action |
|---|---|---|---|
| @if($item->conditionGrade) {{ $item->conditionGrade->name }} @else N/A @endif | ${{ number_format($item->current_value, 2) }} | {{ $quantity }} |
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
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)
@foreach($secondHalf as $key => $value)
@else
| {{ $key }} | {{ formatSpecValue($value) }} |
| {{ $key }} | {{ formatSpecValue($value) }} |
No specifications available for this product.
@endifReviews coming soon.
Related Products
@foreach($compatibleItems as $compatibleItem)
@if($compatibleItem->display_image_url)
@else
@endif
{{ $compatibleItem->product_name ?? 'Unknown Product' }}
{{ $compatibleItem->computed_price ?? 'Contact' }}
@endforeach