Example #1
0
 public function getEdit($id)
 {
     $users = User::find($id);
     $branches = new Branch();
     $branchAll = $branches->getBranchesDropDown();
     return view('Users.edit', compact('branchAll'))->with('userdata', $users);
 }
 public function getEdit($id)
 {
     $stockInfo = StockInfo::find($id);
     $branches = new Branch();
     $branchAll = $branches->getBranchesDropDown();
     return view('StockInfos.edit', compact('stockInfo'))->with('branchAll', $branchAll);
 }
 public function getEdit($id)
 {
     $branches = new Branch();
     $branchAll = $branches->getBranchesDropDown();
     $category = Category::find($id);
     return view('ProductCategory.edit', compact('branchAll'))->with('category', $category);
 }
 public function getCreate()
 {
     $branches = new Branch();
     $branchAll = $branches->getBranchesDropDown();
     $accountCategories = new AccountCategory();
     $accountCategoriesAll = $accountCategories->getAccountCategoriesDropDown();
     return view('BalanceTransfers.add')->with('branchAll', $branchAll)->with('accountCategoriesAll', $accountCategoriesAll);
 }
 public function getEdit($id)
 {
     $account = NameOfAccount::find($id);
     $accountCategories = new AccountCategory();
     $accountCategoriesAll = $accountCategories->getAccountCategoriesDropDown();
     $branches = new Branch();
     $branchAll = $branches->getBranchesDropDown();
     return view('AccountName.edit', compact('account'))->with('accountCategoriesAll', $accountCategoriesAll)->with('branchAll', $branchAll);
 }
 public function getEdit($id)
 {
     $categories = new Category();
     $allCategory = $categories->getCategoriesDropDown();
     $branches = new Branch();
     $branchAll = $branches->getBranchesDropDown();
     $subCategory = SubCategory::find($id);
     return view('ProductSubCategory.edit', compact('branchAll'))->with('subCategory', $subCategory)->with('categoryAll', $allCategory);
 }
 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 getCreate()
 {
     $stockInfos = new StockInfo();
     $allStockInfos = $stockInfos->getStockInfoDropDown();
     $parties = new Party();
     $partyAll = $parties->getPartiesDropDown();
     $imports = new Import();
     $consignmentAll = $imports->getConsignmentNameDropDown();
     $branches = new Branch();
     $branchAll = $branches->getBranchesDropDown();
     return view('SalesReturn.add', compact('allStockInfos', 'consignmentAll'))->with('branchAll', $branchAll)->with('partyAll', $partyAll);
 }
 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);
 }
Example #10
0
 public function getEdit($id)
 {
     $buyers = new Party();
     $buyersAll = $buyers->getBuyersDropDown();
     $products = new Product();
     $finishGoods = $products->getFinishGoodsDropDown();
     $stockInfos = new StockInfo();
     $allStockInfos = $stockInfos->getStockInfoDropDown();
     $branches = new Branch();
     $branchAll = $branches->getBranchesDropDown();
     $sale[0] = Sale::where('invoice_id', '=', $id)->get();
     $var = $sale[0];
     $saleDetails = SAleDetail::where('invoice_id', '=', $id)->get();
     return view('Sales.edit', compact('buyersAll'))->with('finishGoods', $finishGoods)->with('saleDetails', $saleDetails)->with('sale', $var)->with('branchAll', $branchAll)->with('allStockInfos', $allStockInfos);
 }
Example #11
0
 public function getEdit($id)
 {
     $branches = new Branch();
     $branchAll = $branches->getBranchesDropDown();
     $import = Import::find($id);
     return view('Imports.edit', compact('import'))->with('branchAll', $branchAll);
 }
 public function getEdit($id)
 {
     $suppliers = new Party();
     $suppliersAll = $suppliers->getSuppliersDropDown();
     $products = new Product();
     $localProducts = $products->getLocalProductsDropDown();
     $stockInfos = new StockInfo();
     $allStockInfos = $stockInfos->getStockInfoDropDown();
     $branches = new Branch();
     $branchAll = $branches->getBranchesDropDown();
     $purchase[0] = PurchaseInvoice::where('invoice_id', '=', $id)->get();
     $var = $purchase[0];
     $purchaseDetails = PurchaseInvoiceDetail::where('detail_invoice_id', '=', $id)->get();
     return view('PurchaseInvoice.edit', compact('suppliersAll'))->with('localProducts', $localProducts)->with('purchaseDetails', $purchaseDetails)->with('purchase', $var)->with('branchAll', $branchAll)->with('allStockInfos', $allStockInfos);
 }
 public function getMakeall()
 {
     $accountCategories = new AccountCategory();
     $accountCategoriesAll = $accountCategories->getAccountCategoriesDropDown();
     $branches = new Branch();
     $branchAll = $branches->getBranchesDropDown();
     $buyers = new Party();
     $partyAll = $buyers->getSuppliersDropDown();
     return view('PurchaseInvoice.paymentAddAll', compact('accountCategoriesAll'))->with('branchAll', $branchAll)->with('partyAll', $partyAll);
 }
Example #14
0
 public function getEdit($id)
 {
     $stockInvoices = StockInvoice::find($id);
     $branches = new Branch();
     $branchAll = $branches->getBranchesDropDown();
     $stockDetails = StockDetail::where('invoice_id', '=', $stockInvoices->invoice_id)->first();
     $stockDetails2 = StockDetail::where('invoice_id', '=', $stockInvoices->invoice_id)->get();
     // get all stocks
     $stockInfos = new StockInfo();
     $allStockInfos = $stockInfos->getStockInfoDropDown();
     $invoiceId = $stockInvoices->invoice_id;
     //$invoiceId = 's121513';
     $buyersAll = 0;
     $imports = Import::where('status', '=', 'Activate')->get();
     $productsName = Product::where('product_type', '=', $stockDetails->product_type)->where('branch_id', '=', $stockDetails->branch_id)->get();
     return view('Stocks.edit2', compact('buyersAll', 'invoiceId', 'stockInvoices', 'stockDetails', 'productsName', 'stockDetails2', 'imports'))->with('branchAll', $branchAll)->with('allStockInfos', $allStockInfos);
     //        return view('Stocks.edit',compact('stock'))
     //            ->with('allStockInfos',$allStockInfos)
     //            ->with('branchAll',$branchAll);
 }
 public function getExpensepayment()
 {
     $branches = new Branch();
     $branchAll = $branches->getBranchesDropDown();
     return view('Reports.expensePaymentReport')->with('branchAll', $branchAll);
 }
 public function getMake()
 {
     $accountCategories = new AccountCategory();
     $accountCategoriesAll = $accountCategories->getAccountCategoriesDropDown();
     $branches = new Branch();
     $branchAll = $branches->getBranchesDropDown();
     return view('Expenses.paymentAdd', compact('accountCategoriesAll'))->with('branchAll', $branchAll);
 }
Example #17
0
 public function getSalesreturndetails()
 {
     $branches = new Branch();
     $branchAll = $branches->getBranchesDropDown();
     return view('Reports.salesReturnDetailsReport')->with('branchAll', $branchAll);
 }
Example #18
0
 public function getMake($invoice_id)
 {
     $accountCategories = new AccountCategory();
     $transactions = new Transaction();
     $accountCategoriesAll = $accountCategories->getAccountCategoriesDropDown();
     $branches = new Branch();
     $branchAll = $branches->getBranchesDropDown();
     $expense = Expense::where('invoice_id', '=', $invoice_id)->first();
     $transactionsPaid = $transactions->getTotalExpensePaid($invoice_id);
     return view('Expenses.paymentAdd', compact('accountCategoriesAll'))->with('invoice_id', $invoice_id)->with('totalExpense', $expense->amount)->with('transactionsPaid', $transactionsPaid)->with('branchAll', $branchAll);
 }
Example #19
0
 public function getEdit($id)
 {
     $stock = Stock::find($id);
     $stockInfos = new StockInfo();
     $allStockInfos = $stockInfos->getStockInfoDropDown();
     $branches = new Branch();
     $branchAll = $branches->getBranchesDropDown();
     return view('Stocks.edit', compact('stock'))->with('allStockInfos', $allStockInfos)->with('branchAll', $branchAll);
 }
Example #20
0
 public function getMakeall()
 {
     $accountCategories = new AccountCategory();
     $saleDetails = new SAleDetail();
     $transactions = new Transaction();
     $accountCategoriesAll = $accountCategories->getAccountCategoriesDropDown();
     $branches = new Branch();
     $branchAll = $branches->getBranchesDropDown();
     $buyers = new Party();
     $partyAll = $buyers->getPartiesDropDown();
     return view('Sales.paymentAddAll', compact('accountCategoriesAll'))->with('branchAll', $branchAll)->with('partyAll', $partyAll);
 }