7077fff3b3
- Convert all remaining static \$modelLabel/\$pluralModelLabel to getter methods with __() (AppointmentResource, WorkOrderResource, MasterResource, ServiceTemplateResource, LaborResource, and 33 others) - Safe blade wrap v2 (37 files, 201 wraps): fixed the regex to not match `->`, `=>`, `!<` — previous aggressive pass broke @if directives - Bulk-translate lowercase model-label keys (programări, fișe lucru, tehnicieni, șabloane servicii, norme-ore, etc.) — these were the RO strings appearing in page titles/breadcrumbs - Add human RU/EN for mechanic-kpi (Mecanic/Lucrări/Norma ore/etc.) and calendar-board words Tests 306 green. Blade compiles cleanly. Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
44 lines
2.3 KiB
PHP
44 lines
2.3 KiB
PHP
@php
|
|
$valid = $info['valid_length'] ?? false;
|
|
@endphp
|
|
<div class="space-y-4">
|
|
@if (! $valid)
|
|
<div class="p-3 rounded-md bg-yellow-50 dark:bg-yellow-900/30 border border-yellow-200 dark:border-yellow-700 text-sm text-yellow-900 dark:text-yellow-100">
|
|
{{ $info['reason'] ?? 'VIN invalid.' }}
|
|
</div>
|
|
@else
|
|
<dl class="grid grid-cols-2 gap-x-4 gap-y-2 text-sm">
|
|
<dt class="text-gray-500 dark:text-gray-400">VIN</dt>
|
|
<dd class="font-mono text-gray-900 dark:text-gray-100">{{ $info['vin'] }}</dd>
|
|
|
|
<dt class="text-gray-500 dark:text-gray-400">{{ __('Regiune') }}</dt>
|
|
<dd class="text-gray-900 dark:text-gray-100">{{ $info['region'] ?? '—' }}</dd>
|
|
|
|
<dt class="text-gray-500 dark:text-gray-400">{{ __('Țară') }}</dt>
|
|
<dd class="text-gray-900 dark:text-gray-100">{{ $info['country'] ?? '—' }}</dd>
|
|
|
|
<dt class="text-gray-500 dark:text-gray-400">{{ __('Producător') }}</dt>
|
|
<dd class="text-gray-900 dark:text-gray-100 font-semibold">{{ $info['manufacturer'] ?? '— (WMI necunoscut)' }}</dd>
|
|
|
|
<dt class="text-gray-500 dark:text-gray-400">{{ __('An model') }}</dt>
|
|
<dd class="text-gray-900 dark:text-gray-100 font-semibold">{{ $info['year'] ?? '—' }}</dd>
|
|
|
|
<dt class="text-gray-500 dark:text-gray-400">{{ __('Cod uzină') }}</dt>
|
|
<dd class="font-mono text-gray-900 dark:text-gray-100">{{ $info['plant'] ?? '—' }}</dd>
|
|
|
|
<dt class="text-gray-500 dark:text-gray-400">{{ __('Checksum (ISO)') }}</dt>
|
|
<dd class="text-gray-900 dark:text-gray-100">
|
|
@if ($info['checksum_valid'])
|
|
<span class="text-green-600 dark:text-green-400">{{ __('✓ valid') }}</span>
|
|
@else
|
|
<span class="text-gray-500">{{ __('— (multe VIN-uri europene nu respectă checksum-ul NA)') }}</span>
|
|
@endif
|
|
</dd>
|
|
</dl>
|
|
|
|
<div class="text-xs text-gray-500 dark:text-gray-400 border-t border-gray-200 dark:border-gray-700 pt-2">
|
|
{{ __('Detalii granulare (model, motorizare) necesită bază TecDoc/NHTSA. Folosește butonul „AI: recomandări" pentru sugestii bazate pe an + producător.') }}
|
|
</div>
|
|
@endif
|
|
</div>
|