@extends('adminlte::page') @section('title', 'Reporte de Gastos') @section('content_header')

Reporte de Gastos

Volver al Dashboard
@stop @section('content')
Filtros
Limpiar
Total de Gastos

{{ number_format($totalGastosCount) }}

Total Gastado

S/ {{ number_format($totalGastos, 2) }}

Promedio

S/ {{ number_format($promedioGasto, 2) }}

Gasto Más Alto

S/ {{ number_format($gastoMasAlto, 2) }}

Gasto Más Bajo

S/ {{ number_format($gastoMasBajo, 2) }}

@if($totalPorTipo->count() > 0)
Total por Tipo de Gasto
@foreach($totalPorTipo as $tipo => $monto)
{{ ucfirst($tipo) }}
S/ {{ number_format($monto, 2) }}
@endforeach
@endif
Gastos por Tipo
Gastos en el Tiempo
Top 10 Ventas por Gastos
Detalle de Gastos
@forelse($gastos as $gasto) @empty @endforelse
Venta Tipo de Gasto Descripción Monto Fecha Observaciones Acciones
{{ $gasto->venta->codigo_seguimiento ?? 'Venta #' . $gasto->venta->id }} {{ explode(' ', $gasto->descripcion)[0] ?? 'Gasto' }} {{ $gasto->descripcion }} S/ {{ number_format($gasto->monto, 2) }} {{ $gasto->fecha->format('d/m/Y') }} {{ $gasto->observaciones ?? '-' }}
No hay gastos que coincidan con los filtros seleccionados
@stop @section('js') @stop @section('css') @stop