@extends('layouts.app') @section('content')

Ajoneuvotilaus {{ $order->order_number }}

Asiakas: {{ $order->company->name }}
Sopimus: {{ $order->contract?->contract_number }}
Status: {{ $order->status }}
Tilattu: {{ $order->ordered_at }}
K?siraha: {{ $order->down_payment_amount ? number_format((float)$order->down_payment_amount, 2, ',', ' ') . ' EUR' : '-' }} @if($order->down_payment_paid_at)(maksettu {{ $order->down_payment_paid_at->format('d.m.Y') }})@endif
Koko maksu: {{ $order->full_payment_amount ? number_format((float)$order->full_payment_amount, 2, ',', ' ') . ' EUR' : '-' }} @if($order->full_payment_paid_at)(maksettu {{ $order->full_payment_paid_at->format('d.m.Y') }})@endif
Maksun lis?tiedot: {{ $order->payment_notes ?: '-' }}

Maksut

@csrf

Tilauksen rivit

@foreach($order->items as $item) @endforeach
MerkkiMalliKategoriaVarustetasoKuntoVINRekisterinumeroKpl
{{ $item->brand }} {{ $item->model }} {{ $item->category }} {{ $item->trim_level }} {{ $item->condition_type }} {{ $item->vin }} {{ $item->registration_number }} {{ $item->quantity }}
@endsection