{{ __('🔎 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
VIN{{ __('Marca/Model') }}{{ __('Plate') }}{{ __('Client') }}{{ __('Km') }}
{{ $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
{{ __('Denumire') }}{{ __('Cod') }}{{ __('Brand') }}{{ __('Stoc') }}{{ __('PreÈ›') }}
{{ $p->name }} {{ $p->article ?? '—' }} {{ $p->brand ?? '—' }} {{ $p->qty }} {{ $p->unit }} {{ number_format($p->sell_price, 2, '.', ' ') }} MDL
@endif
@endif