@foreach(($data['drilldown'] ?? []) as $tabKey => $section)
| @lang('managementtools::lang.metric') | @lang('managementtools::lang.actual') | @lang('managementtools::lang.vs_previous_period') |
|---|---|---|
| {{ $kpi['label'] }} | @if(!empty($kpi['currency'])) {{ number_format((float) $kpi['value'], 2) }} @else {{ $kpi['value'] }} @endif | @if(!empty($kpi['comparison'])) @if(($kpi['comparison']['direction'] ?? 'flat') === 'flat') @lang('managementtools::lang.no_change') @else {{ ($kpi['comparison']['delta_pct'] ?? 0) > 0 ? '+' : '' }}{{ number_format((float) ($kpi['comparison']['delta_pct'] ?? 0), 1) }}% @endif @else — @endif |
| @lang('managementtools::lang.top_5_items') | @lang('managementtools::lang.amount') |
|---|---|
| {{ $item['label'] }} | @if(!empty($item['currency'])) {{ number_format((float) ($item['value'] ?? 0), 2) }} @else {{ $item['value'] ?? '-' }} @endif |