{{ $daily ? 'Ventas por día' : 'Ventas por mes' }}
Productos más vendidos
@php $topMax = max(1, $top->max('total')); @endphpPor vendedor
@php $uMax = max(1, $by_user->max('total')); @endphp{{ $by_store->isNotEmpty() ? 'Por local' : 'Descuentos y envíos' }}
| {{ $daily ? 'Día' : 'Mes' }} | Ventas | Desc. productos | Desc. pedido | IVA | Impuesto pedido | Envío | Total |
|---|---|---|---|---|---|---|---|
| {{ $daily ? $p['date']->format('d/m/Y') : $p['label'] }} | {{ $p['n'] }} | {{ number_format($p['total_discount'], 2) }} | {{ number_format($p['order_discount'], 2) }} | {{ number_format($p['total_tax'], 2) }} | {{ number_format($p['order_tax'], 2) }} | {{ number_format($p['shipping_cost'], 2) }} | {{ number_format($p['grand_total'], 2) }} |
| Total | {{ $totals['n'] }} | {{ number_format($totals['discount'], 2) }} | {{ number_format($totals['total_tax'], 2) }} | {{ number_format($totals['order_tax'], 2) }} | {{ number_format($totals['shipping_cost'], 2) }} | {{ number_format($totals['grand_total'], 2) }} | |