@if($status !== 'Current')
Draft price list — for internal review only, not for distribution.
@endif
Prices
| Trim |
@foreach($trims[0]['engines'] ?? [] as $engine)
{{ $engine['name'] }} |
@endforeach
@foreach($trims as $trim)
| {{ $trim['name'] }} |
@foreach($trim['engines'] as $engine)
@php
$variant = collect($trim['variants'])->first(fn ($v) => $v['engine_id'] === $engine['engine_id']);
@endphp
@if($variant !== null && $variant['price'] !== null)
{{ \App\Services\Catalog\PricelistService::formatPrice($variant['price']) }}
@else
—
@endif
|
@endforeach
@endforeach
Equipment
● Standard · ○ Optional · – Not available
| Category |
@foreach($trims as $trim)
{{ $trim['name'] }} |
@endforeach
@foreach($categories as $category)
@foreach($category['items'] as $item)
|
@if($loop->parent->first)
{{ $category['name'] }}
@endif
{{ $item['name'] }}
|
@foreach($trims as $trim)
@php
$feature = collect($trim['features'])->firstWhere('code', $item['code']);
@endphp
{{ $feature['symbol'] ?? '?' }} |
@endforeach
@endforeach
@endforeach