🔎 Decode VIN

@if ($decoded)
@if ($decoded['valid'])

✅ VIN decodificat

Producător
{{ $decoded['manufacturer'] }}
Țară
{{ $decoded['country'] }}
An model (estimat)
{{ $decoded['year'] ?? '—' }}
WMI
{{ $decoded['wmi'] }}
Serial
{{ $decoded['serial'] }}
@else
⚠ {{ $decoded['error'] ?? 'WMI necunoscut — producătorul nu e în baza de date locală.' }}
@endif
@php $matches = $this->vehicleMatches(); @endphp @if ($matches->isNotEmpty())

🚗 Mașini cu acest VIN în CRM

@foreach ($matches as $v) @endforeach
VINMarca/ModelPlateClientKm
{{ $v->vin }} {{ $v->make }} {{ $v->model }} {{ $v->year }} {{ $v->plate ?? '—' }} {{ $v->client?->name ?? '—' }} {{ number_format($v->mileage, 0, '.', ' ') }}
@endif @endif

📦 Caută piesă în catalog

@php $parts = $this->partsResults(); @endphp @if ($partsQuery)
@if ($parts->isEmpty())
Niciun rezultat pentru „{{ $partsQuery }}"
@else @foreach ($parts as $p) @endforeach
DenumireCodBrandStocPreÈ›
{{ $p->name }} {{ $p->article ?? '—' }} {{ $p->brand ?? '—' }} {{ $p->qty }} {{ $p->unit }} {{ number_format($p->sell_price, 2, '.', ' ') }} MDL
@endif
@endif