Disponibilidad en inventario

@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) @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 != '') @endif @endforeach
# Código de barras Producto proveedor Lote Fecha vencimiento Cantidad Bodega Ubicaciones Unidad
{{ $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 }}
@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