Exemplo n.º 1
0
 /**
  * Show the form for editing the specified resource.
  *
  * @param  int  $id
  * @return Response
  */
 public function edit($id)
 {
     $edit_data = Commissionclass::find($id);
     $data_class = Commission::orderBy('class', 'asc')->get();
     return view('sales.commissionclass_edit')->with(['commissionclass' => $edit_data, 'commission' => $data_class]);
 }
Exemplo n.º 2
0
 /**
  * Remove the specified resource from storage.
  *
  * @param  int  $id
  * @return Response
  */
 public function destroy($id)
 {
     $delete = Commission::where('id', $id)->delete();
     $data_com = array('commission' => Commission::orderBy('class', 'asc')->get(), 'refresh' => true);
     return view('sales.commission_table')->with($data_com);
 }