3911012c65
Broad sweep across the whole codebase:
- Blade views (39 files, 315 wraps): tag-text and title/placeholder/alt
attributes wrapped with {{ __() }}. Excludes scripts, styles, @php,
@verbatim, {{ }}, {!! !!}, comments to avoid touching interpolations.
- PHP (54 files, 179 wraps): array 'key' => 'RO value' patterns and
list items with diacritics wrapped with __(). Reverted __() inside
const arrays (PHP disallows non-constant expressions).
- Added 269 new keys to lang/{ru,en}.json (identity fallback for
unknowns → 161 human RU + 163 EN translations added for the most
common enums, stages, roles, statuses, payment methods, vehicle
categories, warehouse, portal, form actions.
Missing translations fall back to RO so the UI never breaks. All 306
tests pass; view cache compiles cleanly.
Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
44 lines
2.2 KiB
PHP
44 lines
2.2 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>
|