@php
$historyCompany = $vehicle->ownershipHistory->sortByDesc('started_at')->first()?->company;
$displayCompany = $vehicle->company ?? $historyCompany;
@endphp
Perustiedot
VIN{{ $vehicle->vin ?: '-' }}
Rekisterinumero{{ $vehicle->registration_number ?: '-' }}
Ajoneuvotyyppi{{ $vehicleTypeLabels[$vehicle->vehicle_type] ?? '-' }}
Käyttöönottopäivä{{ $vehicle->first_registration_date ? $vehicle->first_registration_date->format('d.m.Y') : '-' }}
Kunto{{ $conditionLabels[$vehicle->condition_type] ?? '-' }}
{{ $customerPermitLabel }}{{ $vehicle->category_based_customer_permit ?: '-' }}
Valmistaja{{ $vehicle->manufacturer_name ?: '-' }}
Rahoitusyhtiö{{ $vehicle->financing_company_name ?: '-' }}
Status
Tila{{ $inventoryLabels[$vehicle->inventory_status] ?? $vehicle->inventory_status }}
Varastopaikka{{ $vehicle->stock_location_label }}
Maahantuotu{{ $vehicle->imported_flag ? 'Kyllä' : 'Ei' }}{{ $vehicle->imported_at ? ' (' . $vehicle->imported_at->format('d.m.Y') . ')' : '' }}{{ $vehicle->imported_note ? ' - ' . $vehicle->imported_note : '' }}
Tullattu{{ $vehicle->customs_cleared_flag ? 'Kyllä' : 'Ei' }}{{ $vehicle->customs_cleared_at ? ' (' . $vehicle->customs_cleared_at->format('d.m.Y') . ')' : '' }}
Autoveroilmoitus{{ $isBusType ? 'Ei käytössä (monitoimibussi/turistibussi)' : (($vehicle->car_tax_filed_flag ? 'Kyllä' : 'Ei') . ($vehicle->car_tax_filed_at ? ' (' . $vehicle->car_tax_filed_at->format('d.m.Y') . ')' : '')) }}
Luovutuspäivä{{ $vehicle->delivered_at ? $vehicle->delivered_at->format('d.m.Y') : '-' }}
Laskun tila{{ $invoiceStatusLabels[$vehicle->invoice_status] ?? ($vehicle->invoice_status ?: '-') }}
Lasku lähetetty{{ $vehicle->invoice_sent_at ? $vehicle->invoice_sent_at->format('d.m.Y H:i') : '-' }}
Hinnat
Myyntihinta alv {{ $salesVatPercentLabel }}%{{ $salesVat ? number_format($salesVat, 2, ',', ' ') . ' EUR' : '-' }}
Myyntihinta alv 0%{{ $salesVat0 ? number_format($salesVat0, 2, ',', ' ') . ' EUR' : '-' }}
Ostohinta alv 0%{{ $purchaseVat0 ? number_format($purchaseVat0, 2, ',', ' ') . ' EUR' : '-' }}
Ostohinta alv {{ $salesVatPercentLabel }}%{{ $purchaseVat ? number_format($purchaseVat, 2, ',', ' ') . ' EUR' : '-' }}
Kasiraha valmistajalle{{ $vehicle->manufacturer_down_payment_amount ? number_format((float)$vehicle->manufacturer_down_payment_amount, 2, ',', ' ') . ' EUR' : '-' }}