@vite(['resources/css/app.css']) @php $m = $config->moneda; @endphp

{{ $config->nombre }}

Reporte de ventas y rentabilidad

{{ \Illuminate\Support\Carbon::parse($desde)->format('d/m/Y') }} — {{ \Illuminate\Support\Carbon::parse($hasta)->format('d/m/Y') }}

Generado: {{ now()->format('d/m/Y H:i') }}

Ventas totales

{{ $m }} {{ number_format($totalVentas,2) }}

N° pedidos

{{ $numPedidos }}

Ticket promedio

{{ $m }} {{ number_format($ticketPromedio,2) }}

Rentabilidad por plato

@forelse ($rentabilidad as $r) @empty @endforelse
ProductoUnid.Ingresos CostoGananciaMargen
{{ $r->nombre }} {{ $r->unidades }} {{ $m }} {{ number_format($r->ingreso,2) }} {{ $m }} {{ number_format($r->costo_total,2) }} {{ $m }} {{ number_format($r->ganancia,2) }} {{ $r->margen }}%
Sin datos.
TOTAL {{ $m }} {{ number_format($ingresoTotalR,2) }} {{ $m }} {{ number_format($costoTotalR,2) }} {{ $m }} {{ number_format($gananciaTotalR,2) }} {{ $margenTotalR }}%