/**
  * Display a listing of the resource.
  *
  * @return \Illuminate\Http\Response
  */
 public function index()
 {
     $trainees = Registration::lists('english_name', 'id');
     $courses = Course::lists('course_name', 'id');
     $traineeCourse = TraineeCourse::all()->sortByDesc('id');
     return view('traineeCourse/index', compact('traineeCourse', 'trainees', 'courses'));
 }
 public function trainee_by_course_id($course_id)
 {
     //$trainees = Info::all();
     $trainees = TraineeCourse::all();
     $users = User::all();
     dd($trainees);
     return view('admin/admin_trainee/show_trainee_list', compact('trainees', 'users'));
 }