/**
  * Display a listing of the resource.
  *
  * @return Response
  */
 public function index()
 {
     $teams = Team::orderBy('ID_DRUZYNA', 'desc')->paginate(10);
     $coaches = Coatch::get();
     if (empty($coaches)) {
         return redirect()->route('coatches.index')->with('message', 'Najpierw dodaj  Trenera.');
     }
     return view('teams.index', compact('teams'))->with('list', self::getCoach($coaches));
 }