all(); $moves = array_reverse($moves); $nameMap = []; foreach ((new Material())->all() as $m) { $nameMap['material:' . $m['id']] = $m['name']; } foreach ((new Product())->all() as $p) { $nameMap['product:' . $p['id']] = $p['name']; } return $this->renderSubsys('psi', 'psi/stock', ['moves' => $moves, 'nameMap' => $nameMap], \psi_nav(), 'stock'); } }