public function del_reps(Request $request)
 {
     $id = $request->input('id');
     $reps = Rep::find($id);
     $reps->delete();
 }
 public function edit_stock(Request $request)
 {
     $id = $request->input('id');
     $rep = Rep::find($id);
     $rep->rep_name = $request->input('name');
     $rep->nic = $request->input('nic');
     $rep->remarks = $request->input('remarks');
     $rep->phone = $request->input('phone');
     $rep->save();
 }