@props(['vehicle']) @php $cover = $vehicle->coverImage; $image = $cover?->path_800w ?: $cover?->path; $title = trim(implode(' ', array_filter([ $vehicle->make?->name, $vehicle->model?->name, $vehicle->trim, ]))); @endphp
merge(['class' => 'group relative flex flex-col overflow-hidden rounded-2xl border border-slate-200 bg-white shadow-sm transition hover:-translate-y-0.5 hover:shadow-lg dark:border-slate-800 dark:bg-slate-900']) }}>
@if ($image) @if ($cover->path_800w_webp) @endif {{ $cover?->alt ?: $title }} @else
@endif
@if ($vehicle->is_featured) {{ __('Featured') }} @endif @if ($vehicle->isSold()) {{ __('Sold') }} @endif
@if ($vehicle->condition) {{ $vehicle->condition->label() }} @endif

{{ $vehicle->formattedPrice }}

{{ $vehicle->year }}

{{ $title }}

{{ __('Mileage') }}
{{ number_format($vehicle->mileage_km) }} km
{{ __('Fuel') }}
{{ $vehicle->fuelType?->name ?? '—' }}
{{ __('Transmission') }}
{{ $vehicle->transmission?->name ?? '—' }}
@if ($vehicle->location)

{{ $vehicle->location }}

@endif
@isset($favourite)
{{ $favourite }}
@else
@endisset @isset($contactActions)
{{ $contactActions }}
@else @endisset