public function publicShow($id)
 {
     $training = Training::whereid($id)->firstOrFail();
     $courses = Course::wheretraining_id($id)->get();
     $testimonials = Testimonial::wheretraining_id($id)->get();
     $FAQs = FAQ::wheretraining_id($id)->get();
     return view('trainings.public_training_pages.show', compact('training', 'courses', 'FAQs'))->with('testimonials', $testimonials);
 }
 /**
  * Display the specified resource.
  *
  * @param  int  $id
  * @return \Illuminate\Http\Response
  */
 public function show($id)
 {
     $FAQs = FAQ::wheretraining_id($id)->get();
     return view('frequently_asked_questions.public.show', compact('FAQs'));
 }