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); }
</div> </th>--> </tr> </thead> <tbody> <?php foreach ($all_products_stock_out as $single_product) { ?> <tr> <td> <?php echo $single_product->stock_out_id; ?> </td> <td> <?php echo ItemConfiguration::getProductById($single_product->Product_ID)->Product_Name; ?> </td> <td> <?php echo $single_product->Product_Count; ?> </td> <td> <?php echo $single_product->Requisition_No; ?> </td> <td> <?php echo $single_product->Requisition_By; ?> </td> <td> <?php
public function deleteProduct($id = '') { ItemConfiguration::deleteProduct($id); return Redirect::to('/addProducts')->with('add_success_massege', 'Product Deleted successfully.'); }
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); }
<div class="col-sm-9"> <?php echo Form::number('order_number', $value = $edit_product_data->Order_No, $attributes = array('class' => 'form-control', 'placeholder' => 'Order Number')); ?> <span class="text-red"><?php echo $errors->first('order_number'); ?> </span> </div> </div> <div class="form-group"> <label id="inputSuccess" class="col-sm-3 control-label">Supplier<b class="mandetory_star">*</b> </label> <div class="col-sm-9"> <?php $select_supplier_blank = array($edit_product_data->Supplier_ID => ItemConfiguration::getSupplierById($edit_product_data->Supplier_ID)->Supplier_Name); $select_supplier = array(); foreach ($all_supplier as $single_supplier) { // Make associative array from all category to create select option $select_supplier[$single_supplier->Supplier_ID] = $single_supplier->Supplier_Name; } $final_supplier_select = $select_supplier_blank + $select_supplier; echo Form::select('supplier_id', $final_supplier_select, '', $attributes = array('class' => 'form-control')); ?> <span class="text-red"><?php echo $errors->first('supplier_id'); ?> </span> </div> </div>
?> </td> <td> <?php echo ItemConfiguration::getProductById($single_product->Product_ID)->Product_Name; ?> </td> <td> <?php echo $single_product->Product_Count; ?> </td> <td> <?php echo $single_product->Order_No; ?> </td> <td> <?php echo ItemConfiguration::getSupplierById($single_product->Supplier_ID)->Supplier_Name; ?> </td> <td> <?php echo $single_product->Order_date; ?> </td> <td> <div class="btn-group"> <button type="button" class="btn btn-primary ">Action</button> <button type="button" class="btn btn-primary dropdown-toggle" data-toggle="dropdown"> <span class="caret"></span> <span class="sr-only">Toggle Dropdown</span> </button> <ul class="dropdown-menu" role="menu"> <li><a href="<?php
<!-- Horizontal Form --> <div class="box box-info"> <div class="box-header with-border"> <h3 class="box-title"> Edit Products Stock Out </h3> </div><!-- /.box-header --> <!-- form start --> <?php echo Form::open(array('route' => 'ProductUpdateSaveStockOut', 'files' => true, 'class' => 'form-horizontal')); ?> <div class="box-body"> <div class="form-group"> <label id="inputSuccess" class="col-sm-3 control-label">Product<b class="mandetory_star">*</b> </label> <div class="col-sm-9"> <?php echo Form::hidden('stock_out_id', $value = $edit_product_data->stock_out_id, ''); $select_Product_blank = array($edit_product_data->Product_ID => ItemConfiguration::getProductById($edit_product_data->Product_ID)->Product_Name); $select_Product = array(); foreach ($all_products as $single_product) { // Make associative array from all category to create select option $select_product[$single_product->Product_Id] = $single_product->Product_Name; } $final_Product_select = $select_Product_blank + $select_product; echo Form::select('product_id', $final_Product_select, '', $attributes = array('class' => 'form-control')); ?> <span class="text-red"><?php echo $errors->first('product_id'); ?> </span> </div> </div>
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); }