Detalles del Pedido
@php $total_productos = 0; $total_consumibles = 0; @endphp @if($pedido->pedidoProductos->where('producto_id', '!=', null)->count() > 0)Productos
| Producto | Cantidad Solicitada | Cantidad Recibida | Precio Unitario | Subtotal |
|---|---|---|---|---|
| {{ $pedidoProducto->producto->nombre ?? 'N/A' }} | {{ $pedidoProducto->cantidad }} | {{ $pedidoProducto->cantidad_recibida ?? '-' }} | ${{ number_format($pedidoProducto->precio_unitario ?? 0, 2) }} | @php $subtotal = ($pedidoProducto->cantidad_recibida ?? 0) * ($pedidoProducto->precio_unitario ?? 0); $total_productos += $subtotal; @endphp ${{ number_format($subtotal, 2) }} |
| Total Productos: | ${{ number_format($total_productos, 2) }} | |||
Consumibles
| Consumible | Cantidad Solicitada | Cantidad Recibida | Precio Unitario | Subtotal |
|---|---|---|---|---|
| {{ $pedidoProducto->consumible->nombre ?? 'N/A' }} | {{ $pedidoProducto->cantidad }} | {{ $pedidoProducto->cantidad_recibida ?? '-' }} | ${{ number_format($pedidoProducto->precio_unitario ?? 0, 2) }} | @php $subtotal = ($pedidoProducto->cantidad_recibida ?? 0) * ($pedidoProducto->precio_unitario ?? 0); $total_consumibles += $subtotal; @endphp ${{ number_format($subtotal, 2) }} |
| Total Consumibles: | ${{ number_format($total_consumibles, 2) }} | |||