@extends('reports.pdf.layout') @section('title', 'Relatório de Categorias') @section('content')
| Categoria | Tipo | Quantidade | Total | Média | Mínimo | Máximo |
|---|---|---|---|---|---|---|
| {{ $categoryId ?: 'Sem categoria' }} | {{ $type->type == 'credit' ? 'Crédito' : 'Débito' }} | {{ number_format($type->count, 0, ',', '.') }} | R$ {{ number_format($type->total, 2, ',', '.') }} | R$ {{ number_format($type->average, 2, ',', '.') }} | R$ {{ number_format($type->min_amount, 2, ',', '.') }} | R$ {{ number_format($type->max_amount, 2, ',', '.') }} |
| Nenhuma categoria encontrada com os filtros aplicados. | ||||||
| Posição | Categoria | Total | % do Total |
|---|---|---|---|
| {{ $index + 1 }}º | {{ $category['category'] ?: 'Sem categoria' }} | R$ {{ number_format($category['total'], 2, ',', '.') }} | {{ $grandTotal > 0 ? number_format(($category['total'] / $grandTotal) * 100, 1) : 0 }}% |