fix(reports): repair blade @foreach corrupted by aggressive i18n wrap
The mega-i18n script mis-wrapped a PHP fragment inside the array literal of a Blade @foreach on reports.blade.php (line 91). It matched the '>' from '>= 0' as an HTML tag boundary and turned the rest of the array into a broken __() string, which caused 'unexpected endforeach' compile error. Rewrote the array with proper __() calls on each label. Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
This commit is contained in:
@@ -86,11 +86,11 @@
|
||||
@if ($tab === 'finance')
|
||||
<div class="rp-grid rp-grid-4">
|
||||
@foreach ([
|
||||
['Încasări', $data['income'], 'success'],
|
||||
['Cheltuieli', $data['expenses'], 'danger'],
|
||||
['Profit', $data['profit'], $data['profit'] >{{ __('= 0 ? \'success\' : \'danger\'],
|
||||
[\'Datorii clienți\', $data[\'debt\'], \'warning\'],
|
||||
] as [$label, $value, $color])') }}
|
||||
[__('Încasări'), $data['income'], 'success'],
|
||||
[__('Cheltuieli'), $data['expenses'], 'danger'],
|
||||
[__('Profit'), $data['profit'], $data['profit'] >= 0 ? 'success' : 'danger'],
|
||||
[__('Datorii clienți'), $data['debt'], 'warning'],
|
||||
] as [$label, $value, $color])
|
||||
<div class="rp-card">
|
||||
<div class="rp-stat-label">{{ $label }}</div>
|
||||
<div class="rp-stat-value rp-{{ $color }}">
|
||||
|
||||
Reference in New Issue
Block a user