@php $branding = $clinic->resolvedBranding(); @endphp @include('mail.partials.branding-header', ['branding' => $branding])

Relatório agendado — {{ $clinic->name }}

{{ $schedule->displayName() }}

Período: {{ $startDate->format('d/m/Y') }} — {{ $endDate->format('d/m/Y') }}

Resumo

@if(!empty($comparison['previous']['metrics']))

Comparativo — {{ $comparison['previous']['label'] ?? 'período anterior' }}

@foreach(array_slice($comparison['previous']['metrics'], 0, 8) as $row) @endforeach
Indicador Atual Anterior Variação
{{ $row['label'] }} {{ is_float($row['current']) && str_contains($row['key'], 'revenue') ? number_format($row['current'], 2, ',', '.') : (int) $row['current'] }} {{ is_float($row['baseline']) && str_contains($row['key'], 'revenue') ? number_format($row['baseline'], 2, ',', '.') : (int) $row['baseline'] }} {{ $row['change_pct'] !== null ? ($row['change_pct'] > 0 ? '+' : '').$row['change_pct'].'%' : '—' }}
@endif @include('mail.partials.branding-footer', ['branding' => $branding])