@props(['listing']) @php $spec = $listing->specification; $mainImage = $listing->image_url && is_array($listing->image_url) && count($listing->image_url) > 0 ? $listing->image_url[0] : asset('assets/images/placeholder.png'); $dealerName = $listing->owner ? ($listing->owner->first_name . ' ' . $listing->owner->last_name) : 'N/A'; $addedDate = $listing->created_at ? $listing->created_at->format('d.m.y') : 'N/A'; @endphp
{{ $listing->title }}

{{ $listing->title }}

${{ number_format($listing->price, 0) }}

@if($spec?->body_type) {{ $spec->body_type }} @endif @if($spec?->year) {{ $spec->year }} @endif
Mileage
{{ $spec?->mileage ? number_format($spec->mileage) : '0' }}
Engine
{{ $spec?->engine_capacity ? ($spec->engine_capacity / 1000) . 'L' : 'N/A' }} @if($spec?->engine_capacity && $spec->engine_capacity >= 3000) Twinscroll @endif
Fuel Type
{{ $spec?->fuel_type ?: 'N/A' }}
Transmission
{{ $spec?->transmission ?: 'N/A' }}