public function get_employee_salary(Request $request)
 {
     if ($request->ajax()) {
         $employee = Employeeinfo::find($request->input('employee_id'));
         if (!empty($employee)) {
             return response()->json($employee);
         } else {
             return response()->json(0);
         }
     }
 }
 public function delete(Request $request, $id)
 {
     $b = Employeeinfo::find($id);
     $b->delete();
     return Redirect('employee');
 }