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>
47 lines
2.1 KiB
PHP
47 lines
2.1 KiB
PHP
@php
|
|
$titles = [
|
|
'itp' => '🛡️ Reminder ITP',
|
|
'oil' => '🛢️ Reminder schimb ulei',
|
|
'general' => '🔧 Reminder revizie',
|
|
];
|
|
$body = [
|
|
'itp' => 'ITP-ul autoturismului dvs. expiră în curând. Programați-vă din timp pentru a evita amenzile.',
|
|
'oil' => 'A trecut o perioadă de la ultimul schimb de ulei. Recomandăm o nouă verificare.',
|
|
'general' => 'Vă reamintim că autoturismul dvs. necesită o verificare programată.',
|
|
];
|
|
@endphp
|
|
@component('emails.layout', [
|
|
'companyName' => $companyName,
|
|
'themeColor' => $themeColor,
|
|
'phone' => $phone ?? null,
|
|
'email' => $email ?? null,
|
|
'city' => $city ?? null,
|
|
'logoUrl' => $logoUrl ?? null,
|
|
'title' => $titles[$reminderType] ?? 'Reminder',
|
|
])
|
|
<h2 style="margin:0 0 12px;font-size:20px;color:{{ $themeColor }};">{{ $titles[$reminderType] ?? 'Reminder' }}</h2>
|
|
<p>Bună ziua{{ $client?->name ? ', ' . $client->name : '' }},</p>
|
|
<p>{{ $body[$reminderType] ?? 'Vă reamintim despre vehiculul dvs.' }}</p>
|
|
|
|
<table role="presentation" width="100%" cellpadding="0" cellspacing="0" style="margin:16px 0;border:1px solid #e5e7eb;border-radius:8px;">
|
|
<tr><td style="padding:14px;">
|
|
<div style="font-size:11px;text-transform:uppercase;color:#6b7280;letter-spacing:.5px;">Vehicul</div>
|
|
<div style="font-size:16px;font-weight:700;margin-top:4px;">
|
|
{{ $vehicle->make }} {{ $vehicle->model }} {{ $vehicle->year ?? '' }}
|
|
@if ($vehicle->plate) <span style="color:{{ $themeColor }};">[{{ $vehicle->plate }}]</span> @endif
|
|
</div>
|
|
@if ($vehicle->mileage)
|
|
<div style="font-size:12px;color:#6b7280;margin-top:4px;">Kilometraj: {{ number_format($vehicle->mileage, 0, '.', ' ') }} km</div>
|
|
@endif
|
|
</td></tr>
|
|
</table>
|
|
|
|
@if ($note)
|
|
<div style="background:#fef3c7;border-left:4px solid #f59e0b;padding:12px;margin:16px 0;border-radius:6px;font-size:13px;">
|
|
{{ $note }}
|
|
</div>
|
|
@endif
|
|
|
|
<p>{{ __('Programați-vă online sau sunați la') }} <b>{{ $phone ?? '—' }}</b>.</p>
|
|
@endcomponent
|