public function edit(Player $player) { $users = ['' => ''] + User::lists('name', 'id')->all(); $teams = Team::lists('name', 'id'); $statuses = Player::$statuses; return view('backend.players.edit')->with('player', $player)->with('users', $users)->with('teams', $teams)->with('statuses', $statuses); }
public function edit(Training $training) { $dayList = Training::getDayOfWeekList(); $statusList = Training::getStatusList(); $teamList = Team::lists('name', 'id'); return view('backend.trainings.edit')->with('training', $training)->with('dayList', $dayList)->with('statusList', $statusList)->with('teamList', $teamList); }
public function edit(Tournament $tournament) { return view('backend.tournaments.edit')->with('tournament', $tournament)->with('statusList', Tournament::getStatusList())->with('teamList', Team::lists('name', 'id')); }
public function create() { return view('backend.games.create')->with('teamList', Team::lists('name', 'id'))->with('homeList', Game::getHomeList())->with('statusList', Game::getStatusList())->with('tournamentList', Tournament::lists('name', 'id')); }