@php $iText = (($i ?? -1) > -1) ? ('-' . $i) :''; $inventoryId = $inventoryId ?? 0; $inventories = $inventories ?? \App\Module\Db\Inventory::getInstance()->getInventoriesByActive(); @endphp