public function getEdit($id) { $stockRequisition = StockRequisition::find($id); $products = new Product(); $productAll = $products->getProductsWithCategories(); $parties = new Party(); $partyAll = $parties->getPartiesDropDown(); $branches = new Branch(); $branchAll = $branches->getBranchesDropDown(); return view('StockRequisition.edit', compact('stockRequisition'))->with('partyAll', $partyAll)->with('productAll', $productAll)->with('branchAll', $branchAll); }
public function getStockProducts() { $branches = new Branch(); $branchAll = $branches->getBranchesDropDown(); $stockInfos = new StockInfo(); $allStockInfos = $stockInfos->getStockInfoDropDown(); $catogories = new Category(); $categoriesAll = $catogories->getCategoriesDropDown(); $products = new Product(); $productAll = $products->getProductsWithCategories(); return view('Searches.stockProduct', compact('productAll'))->with('categoriesAll', $categoriesAll)->with('allStockInfos', $allStockInfos)->with('branchAll', $branchAll); }