Mantenedor Stock

@if ($this->puedeVerStock('_stock')) Agregar Ubicación {{-- Agregar Minimo --}} @endif
@if (session()->has('success'))
{{ session('success') }}
@endif
Stock Por Producto:
@if($producto)
@else
@endif
@if(count($areas)) @foreach($areas as $area) @endforeach @else @endif
ÁREA CANTIDAD ACCIÓN
{{ $area->nombre }}
@if($area->ubicaciones && count($area->ubicaciones))
@foreach($area->ubicaciones as $ubicacion)
• {{ $ubicacion->ubicacion }}
@endforeach
@endif
{{ $area->stocks->first()->cantidad ?? 0 }} {{-- --}}
Sin áreas registradas
Nota: Al editar stock, ingrese la cantidad total que debe quedar en el área, no la cantidad a sumar o restar.
Ejemplo: Si hay 100 unidades y quiere que queden 90, ingrese 90 (se descontarán 10). Si quiere que queden 110, ingrese 110 (se sumarán 10).
Historico Movimientos: {{ $this->nombreTienda }}
@if (count($this->historicos)) @foreach ($this->historicos as $item) @endforeach
Usuario Tienda SKU Cantidad Stock Movimiento Fecha
{{$item->usuario->name}} {{$item->tienda->nombre}} {{$item->sku}} {{ $item->status === 'egreso' ? '-' : ($item->status === 'ingreso' ? '+' : '') }} {{ abs($item->cantidad) }} {{$item->stock}} {{$item->movimiento}} {{$item->created_at}}
@else
@endif
{{-- {{$historicos->links()}} --}}
@push('scripts') @endpush