/**
  * Display a listing of the resource.
  *
  * @return \Illuminate\Http\Response
  */
 public function index()
 {
     $trainers = Trainer::all();
     return view('trainers.index', compact('trainers'));
 }
 /**
  * Display a listing of the resource.
  *
  * @return \Illuminate\Http\Response
  */
 public function index()
 {
     $trainers = Trainer::all();
     return view('trainers.index', compact('trainers'))->with('trainings', 'active');
 }
 public function feedbackIndex()
 {
     $feedbacks = Feedback::with('trainer')->distinct()->select('trainer_id')->get();
     $trainers = Trainer::all();
     return view('admin.feedbacks.index', compact('feedbacks', 'trainers'));
 }
 /**
  * Show the form for creating a new resource.
  *
  * @return \Illuminate\Http\Response
  */
 public function create()
 {
     $trainers = Trainer::all();
     return view('feedbacks.create', compact('trainers'));
 }