/** * Show the form for editing the specified resource. * * @param int $id * @return \Illuminate\Http\Response */ public function edit($id) { session_start(); $item_detail = App\item::where('id', $id)->where('deleted', '0')->first(); $category = new category(); $tax = new tax(); $category_details = $category->viewcategory(); $tax_details = $tax->viewtax(); return View::make('sale.admin.item_edit', compact('item_detail', 'category_details', 'tax_details')); }
public function cart_edit($id) { $cart = new cart(); $tax = new tax(); $cart_item = $cart->view_cart_oneitem($id); $tax_details = $tax->viewtax(); return View::make('sale.cart_edit', compact('cart_item', 'tax_details')); }
public function load_sale() { session_start(); $category = new category(); $tax = new tax(); $group = new groups(); $categories = $category->viewcategory(); $taxs = $tax->viewtax(); $add_group_sales = $group->user_can_add_groups('sales'); return View::make('call_log.load.sale', compact('categories', 'taxs', 'add_group_sales')); }