| Cliente | Fecha Pedido @if ($sortField === 'created_at') {{ $sortDirection === 'asc' ? '↑' : '↓' }} @endif | Fecha Entrega @if ($sortField === 'fecha_entrega') {{ $sortDirection === 'asc' ? '↑' : '↓' }} @endif | Descuento | Detalles | Total Pedido |
|---|---|---|---|---|---|
| {{ $pedido->cliente }} | {{ \Carbon\Carbon::parse($pedido->created_at)->format('d/m/Y H:i') }} | {{ \Carbon\Carbon::parse($pedido->fecha_entrega)->format('d/m/Y') }} | {{ number_format($pedido->descuento ?? 0, 2) }} |
@if ($pedido->estado->nombre === 'Entregado')
|
{{ number_format($total, 2) }} |
| TOTAL GENERAL (Incl. adelantos Pendientes): | {{ number_format($totalGeneral, 2) }} | ||||
No hay pedidos para los filtros seleccionados.
@endif