{{ $header['project_name'] }}

Relatório {{ $header['cadence_label'] }} · {{ $header['period_label'] }}
Gerado em {{ $header['generated_label'] }}
@if (!empty($header['actions']))
Ações da semana
{{ $header['actions'] }}
@endif @forelse ($sections as $section)

{{ $section['label'] }}

@foreach ($section['blocks'] as $block)

{{ $block['label'] }}

@if ($block['type'] === 'kpi')
@foreach ($block['items'] as $item)
{{ $item['label'] }}
{{ $item['value'] }} @if ($item['trend']) @php $v = $item['trend']['value']; $invert = $item['trend']['invert']; $up = $v > 0; $flat = $v == 0; $good = $flat ? null : ($invert ? !$up : $up); $cls = $flat ? 'flat' : (($up ? 'up' : 'down') . '-' . ($good ? 'good' : 'bad')); $arrow = $flat ? '' : ($up ? '▲' : '▼'); @endphp {{ $arrow }} {{ number_format(abs($v), 1, ',', '.') }}% @endif
@endforeach
@elseif ($block['type'] === 'table') @foreach ($block['columns'] as $col) @endforeach @foreach ($block['rows'] as $row) @foreach ($row as $cell) @if ($cell['type'] === 'thumb') @else @endif @endforeach @endforeach
{{ $col['label'] }}
@if ($cell['value']) @else @endif {{ $cell['value'] }}
@elseif ($block['type'] === 'chart')
@foreach ($block['bars'] as $bar)
@endforeach
{{ $block['first_label'] }} Total: {{ $block['total'] }} {{ $block['last_label'] }}
@endif
@endforeach
@empty

Sem dados para exibir neste período.

@endforelse