@foreach(($data['drilldown'] ?? []) as $tabKey => $section)

{{ $data['drilldown_labels'][$tabKey] ?? $tabKey }}

@foreach(($section['kpis'] ?? []) as $kpi) @endforeach
@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
@if(!empty($section['top_items'])) @foreach($section['top_items'] as $item) @endforeach
@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
@endif @endforeach