@once @endonce @php $dashboardUrl = \App\Filament\Pages\TorreControle::getUrl([ 'data' => $filters['inicio'], ]); $hoje = \Illuminate\Support\Carbon::parse($filters['inicio'])->format('d/m/Y'); $periodoLabel = $filters['inicio'] === $filters['fim'] ? $hoje : \Illuminate\Support\Carbon::parse($filters['inicio'])->format('d/m/Y').' a '.\Illuminate\Support\Carbon::parse($filters['fim'])->format('d/m/Y'); $maxValue = max(array_column($bars, 'value') ?: [0]); $totalSeguro = max((int) $total, 1); $logo = $filters['tema'] === 'escuro' ? ($tenant?->logo_dark_path ?: $tenant?->logo_path ?: $tenant?->logo_small_path) : ($tenant?->logo_path ?: $tenant?->logo_small_path); $logoUrl = $logo ? asset('storage/'.ltrim($logo, '/')) : null; @endphp
Grafico geral de operacao {{ $periodoLabel }}
Data {{ $periodoLabel }}
Hora
Total {{ number_format($total, 0, ',', '.') }}
Atualiza em 05:00
Sair
@foreach($bars as $bar) @php $percentBase = max((int) ($bar['percent_base'] ?? $total), 1); $pct = $bar['value'] > 0 ? ($bar['value'] / $percentBase) * 100 : 0; $ratio = $pct > 0 ? max(0.02, min($pct / 100, 1)) : 0.02; @endphp
{{ number_format(round($pct), 0, ',', '.') }}%
{{ $bar['label'] }}
{{ number_format($bar['value'], 0, ',', '.') }} Documentos
@endforeach