Reporte de Gastos
Del {{ $fechaInicio }} al {{ $fechaFin }}
Resumen por Categoría
@foreach($porCategoria as $cat) @endforeach
Categoría Cantidad Total
{{ $cat['categoria'] ?? 'Sin categoría' }} {{ $cat['cantidad'] }} ${{ number_format($cat['total'], 2) }}
Detalle de Gastos
@foreach($gastos as $gasto) @endforeach
Descripción Proveedor Categoría Monto Pagado Fecha
{{ $gasto->descripcion }} {{ $gasto->proveedor->nombre ?? 'N/A' }} {{ $gasto->categoria }} ${{ number_format($gasto->cantidad, 2) }} {{ $gasto->pagado ? 'Sí' : 'No' }} {{ $gasto->created_at->format('d/m/Y') }}

Total: ${{ number_format($totales['total'], 2) }}

Pagado: ${{ number_format($totales['pagado'], 2) }}

Pendiente: ${{ number_format($totales['pendiente'], 2) }}