public function editStockIn($id)
 {
     $stock_in_data = StockIn::getProductFromStockById($id);
     //        var_dump($stock_in_data);exit;
     $data = array('title' => 'StockIn Edit', 'all_products' => ItemConfiguration::getAllProducts(), 'all_brands' => ItemConfiguration::getAllBrands(), 'all_category' => ItemConfiguration::getAllCategories(), 'all_supplier' => ItemConfiguration::getAllSupplier(), 'all_products_stock' => StockIn::getAllProductsInStack(), 'edit_product_data' => $stock_in_data);
     return View::make('admin.pages.StockIn.update_stockIn_form')->with($data);
 }
 public function editStockOut($id)
 {
     $stock_out_data = StockOut::getProductFromStockOutById($id);
     $data = array('title' => 'Stock Out Edit', 'all_products' => ItemConfiguration::getAllProducts(), 'all_products_stock_out' => StockOut::getAllProductsStackOut(), 'edit_product_data' => $stock_out_data);
     return View::make('admin.pages.StockOut.update_stock_out_form')->with($data);
 }
 public function editProduct($id)
 {
     $data = array('title' => 'Edit products', 'all_products' => ItemConfiguration::getAllProducts(), 'all_brands' => ItemConfiguration::getAllBrands(), 'all_category' => ItemConfiguration::getAllCategories(), 'productData' => ItemConfiguration::getProductById($id));
     return View::make('admin.pages.ItemConfiguration.update_ products_form')->with($data);
 }
 public function productWiseStockInReport()
 {
     $data = array('title' => 'Stock In report', 'all_products' => ItemConfiguration::getAllProducts());
     return View::make('admin.pages.Report.product_wise_stock_in_report')->with($data);
 }