Cantidad Actual por Ítems:

@foreach ($totalesPorItem as $datos)

{{ $datos['codigo'] }} - {{ $datos['nombre'] }}

Cantidad Actual: {{ $datos['cantidad_actual'] }} [{{ $datos['unidad'] }}] @if ($datos['cantidad_actual'] <= 0) @endif

@if ($datos['ultimo_egreso'])

Último Egreso: {{ $datos['ultimo_egreso']['cantidad'] / 1 }} [{{ $datos['unidad'] }}] ({{ \Carbon\Carbon::parse($datos['ultimo_egreso']['fecha'])->format('d-m-Y') }})

@else

Último Egreso: No disponible

@endif
@endforeach

Movimientos

@foreach ($movimientos as $mov) @if (isset($detallesAbiertos[$mov->id])) @endif @endforeach
Código Usuario Tipo Estado Fecha Acciones
SUS-{{ $mov->id }} {{ $mov->user->nombre }} {{ $mov->user->apellido }} @if ($mov->tipo == 1)
Entrada
@else
Salida
@endif
{{ $mov->estado }} {{ \Carbon\Carbon::parse($mov->tiempo)->format('d-m-Y H:m') }} @if ($mov->tipo == 0) @if (auth()->user()->role->rolModuloPermisos->where('modulo_id', 30)->where('permiso_id', 1)->isNotEmpty()) @if ($mov->estado != 'Entregado') @if ($mov->estado != 'Autorizado' && now()->diffInMinutes($mov->created_at) < 1440) @endif @if ($mov->estado != 'Denegado' && now()->diffInMinutes($mov->created_at) < 1440) @endif @endif @endif @if ($mov->estado == 'Autorizado') @if (auth()->user()->role->id == 7 || auth()->user()->role->id == 1) @endif @endif @endif

@foreach ($mov->detalleMovs as $detalle) @endforeach
Item Cantidad
{{ $detalle->item->codigo }} - {{ $detalle->item->nombre }} {{ $detalle->cantidad / 1 }} [{{ $detalle->item->unidad }}]
{{ $movimientos->links() }}

Descargar Reporte de salidas de sustancias

{{-- --}} @error('fechaInicio') {{ $message }} @enderror @error('fechaFin') {{ $message }} @enderror