@if (isset($iv['inventario']))
@php
$validador = 0;
foreach ($iv['inventario'] as $key => $in) {
if ($in->contenedor?->unidad_id == $detalle->unidad_id) {
$validador = $validador + 1;
}
}
@endphp
@if ($validador > 0)
# |
Código de barras |
Producto proveedor |
Lote |
Fecha vencimiento |
Cantidad |
Bodega |
Ubicaciones |
Unidad |
@php
$carreo = 0;
$class = '';
@endphp
@foreach ($iv['inventario'] as $key => $item)
@php
$class = '';
if ($carreo <= 0) {
if ($key == 0) {
$class = 'bg-warning';
}
} else {
$class = 'bg-warning';
}
$carreo = $carreo + ($detalle->cantidad - $item->cantidad);
@endphp
@if ($class != '')
{{ $key + 1 }} |
{{ $item->barcode }} |
{{ $item->productoProveedor->producto }} |
{{ $item->lote }} |
{{ $item->contenedor->fecha_vencimiento }} |
{{ $item->cantidad }} |
{{ $item->bodega->bodega }} |
{{ $item->locacion->ubicacion }} |
{{ $item->contenedor->unidad->unidad }} |
@endif
@endforeach
@else
Error, no hay inventario para el producto solicitado
@endif
@if ($validador>0)
Ubicaciones sugeridas
@foreach ($iv['sugeridas'] as $item)
{{ $item->ubicacion }}
@endforeach
@endif
@endif