| # Orden | Usuario | Tipo Venta | Fecha Compra | Cliente Nombre | Total | Estado Retiro | Fecha Notificacion | Fecha Retiro | Acciones |
|---|---|---|---|---|---|---|---|---|---|
| {{$venta->venta_id}} | {{$venta->usuario->name}} | {{$venta->tipo_venta_texto}} | {{$venta->created_at}} | {{$venta->cliente->cliente_nombre}} | {{Currency::currency('CLP')->format(round($venta->venta_total ?? 0.00))}} | {{optional($venta->retiros)->status ?? "SIN RETIRAR"}} | {{$venta->notificaciones->created_at ?? "SIN NOTIFICAR"}} | {{ optional($venta->retiros)->status == 'RETIRADO' ? ($venta->retiros->updated_at ?? "SIN NOTIFICAR") : "SIN RETIRAR" }} | @if(optional($venta->retiros)->status == "NOTIFICADO") Retiro @endif @if(empty($venta->retiros->created_at)) @endif @if(optional($venta->retiros)->status == 'PENDIENTE') Pendientes @endif @if(optional($venta->retiros)->status == 'RETIRADO') PDF @endif |