feat(i18n): convert 38 hardcoded static labels + safe blade wrap + 226 keys
- 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>
This commit is contained in:
@@ -104,7 +104,7 @@
|
||||
<div class="rp-card">
|
||||
<div class="rp-h3">{{ __('Încasări pe metodă') }}</div>
|
||||
<table class="rp-tbl">
|
||||
<thead><tr><th>{{ __('Metodă') }}</th><th class="rp-right">Tranz.</th><th class="rp-right">{{ __('Total') }}</th></tr></thead>
|
||||
<thead><tr><th>{{ __('Metodă') }}</th><th class="rp-right">{{ __('Tranz.') }}</th><th class="rp-right">{{ __('Total') }}</th></tr></thead>
|
||||
<tbody>
|
||||
@forelse ($data['by_method'] as $row)
|
||||
<tr>
|
||||
@@ -119,9 +119,9 @@
|
||||
</table>
|
||||
</div>
|
||||
<div class="rp-card">
|
||||
<div class="rp-h3">Cheltuieli pe categorie</div>
|
||||
<div class="rp-h3">{{ __('Cheltuieli pe categorie') }}</div>
|
||||
<table class="rp-tbl">
|
||||
<thead><tr><th>Categorie</th><th class="rp-right">{{ __('Nr.') }}</th><th class="rp-right">{{ __('Total') }}</th></tr></thead>
|
||||
<thead><tr><th>{{ __('Categorie') }}</th><th class="rp-right">{{ __('Nr.') }}</th><th class="rp-right">{{ __('Total') }}</th></tr></thead>
|
||||
<tbody>
|
||||
@forelse ($data['by_category'] as $row)
|
||||
<tr>
|
||||
@@ -150,7 +150,7 @@
|
||||
</div>
|
||||
</div>
|
||||
<div class="rp-card">
|
||||
<div class="rp-h3">Pe status</div>
|
||||
<div class="rp-h3">{{ __('Pe status') }}</div>
|
||||
<table class="rp-tbl">
|
||||
<tbody>
|
||||
@forelse ($data['by_status'] as $row)
|
||||
@@ -169,11 +169,11 @@
|
||||
<div class="rp-card" style="overflow-x: auto;">
|
||||
<table class="rp-tbl">
|
||||
<thead><tr>
|
||||
<th>Mecanic</th>
|
||||
<th>Specializare</th>
|
||||
<th class="rp-right">Manopere</th>
|
||||
<th>{{ __('Mecanic') }}</th>
|
||||
<th>{{ __('Specializare') }}</th>
|
||||
<th class="rp-right">{{ __('Manopere') }}</th>
|
||||
<th class="rp-right">{{ __('Ore') }}</th>
|
||||
<th class="rp-right">Venit</th>
|
||||
<th class="rp-right">{{ __('Venit') }}</th>
|
||||
</tr></thead>
|
||||
<tbody>
|
||||
@forelse ($data['rows'] as $r)
|
||||
@@ -185,7 +185,7 @@
|
||||
<td class="rp-right rp-bold rp-success">{{ number_format($r['revenue'], 2, '.', ' ') }}</td>
|
||||
</tr>
|
||||
@empty
|
||||
<tr><td colspan="5" class="rp-muted">Niciun mecanic activ.</td></tr>
|
||||
<tr><td colspan="5" class="rp-muted">{{ __('Niciun mecanic activ.') }}</td></tr>
|
||||
@endforelse
|
||||
</tbody>
|
||||
</table>
|
||||
@@ -198,7 +198,7 @@
|
||||
<th>{{ __('Manoperă') }}</th>
|
||||
<th class="rp-right">{{ __('Nr.') }}</th>
|
||||
<th class="rp-right">{{ __('Ore total') }}</th>
|
||||
<th class="rp-right">Venit</th>
|
||||
<th class="rp-right">{{ __('Venit') }}</th>
|
||||
</tr></thead>
|
||||
<tbody>
|
||||
@forelse ($data['rows'] as $r)
|
||||
@@ -220,7 +220,7 @@
|
||||
<div class="rp-card" style="overflow-x: auto;">
|
||||
<div class="rp-h3">{{ __('Top piese vândute') }}</div>
|
||||
<table class="rp-tbl">
|
||||
<thead><tr><th>{{ __('Piesă') }}</th><th class="rp-right">Cant.</th><th class="rp-right">Venit</th><th class="rp-right">{{ __('Marjă') }}</th></tr></thead>
|
||||
<thead><tr><th>{{ __('Piesă') }}</th><th class="rp-right">{{ __('Cant.') }}</th><th class="rp-right">{{ __('Venit') }}</th><th class="rp-right">{{ __('Marjă') }}</th></tr></thead>
|
||||
<tbody>
|
||||
@forelse ($data['sold'] as $r)
|
||||
<tr>
|
||||
@@ -238,7 +238,7 @@
|
||||
<div class="rp-card">
|
||||
<div class="rp-h3">{{ __('⚠️ Stoc minim atins') }}</div>
|
||||
<table class="rp-tbl">
|
||||
<thead><tr><th>{{ __('Piesă') }}</th><th class="rp-right">{{ __('Stoc') }}</th><th class="rp-right">Min.</th></tr></thead>
|
||||
<thead><tr><th>{{ __('Piesă') }}</th><th class="rp-right">{{ __('Stoc') }}</th><th class="rp-right">{{ __('Min.') }}</th></tr></thead>
|
||||
<tbody>
|
||||
@forelse ($data['low'] as $p)
|
||||
<tr>
|
||||
@@ -270,7 +270,7 @@
|
||||
<td class="rp-right rp-bold">{{ $row->cnt }}</td>
|
||||
</tr>
|
||||
@empty
|
||||
<tr><td colspan="2" class="rp-muted">Niciun lead.</td></tr>
|
||||
<tr><td colspan="2" class="rp-muted">{{ __('Niciun lead.') }}</td></tr>
|
||||
@endforelse
|
||||
</tbody>
|
||||
</table>
|
||||
|
||||
Reference in New Issue
Block a user