/** * Show the form for creating a new resource. * * @return Response */ public function create(ChampionshipDetail $championship, Club $club, CoachDetail $coach, Coach $coach) { return view('admin.coachdetail.create')->with('championship', $championship->all())->with('club', $club->lists('name', 'id'))->with('coach', $coach->lists('name', 'id')); }
/** * Show the form for editing the specified resource. * * @param int $id * @return Response */ public function edit($id, ClubHistory $clubhistories, Club $club, ChampionshipDetail $championship) { return view('admin.clubhistories.edit')->with('clubhistories', $clubhistories->find($id))->with('club', $club->all())->with('championship', $championship->all()); }
/** * Display a listing of the resource. * * @return Response */ public function index(Championship $championship) { return view('admin.championship.index')->with('championship', $championship->all()); }