| @@ 80-90 (lines=11) @@ | ||
| 77 | * |
|
| 78 | * @return \Illuminate\Http\Response |
|
| 79 | */ |
|
| 80 | public function create() |
|
| 81 | { |
|
| 82 | $authorUserId = $this->getLoggedUser(); |
|
| 83 | $users = User::pluck('name', 'id'); |
|
| 84 | $countries = Country::getCountries(); |
|
| 85 | ||
| 86 | return view('eventVenues.create') |
|
| 87 | ->with('countries', $countries) |
|
| 88 | ->with('users', $users) |
|
| 89 | ->with('authorUserId', $authorUserId); |
|
| 90 | } |
|
| 91 | ||
| 92 | /***************************************************************************/ |
|
| 93 | ||
| @@ 97-107 (lines=11) @@ | ||
| 94 | * |
|
| 95 | * @return \Illuminate\Http\Response |
|
| 96 | */ |
|
| 97 | public function create() |
|
| 98 | { |
|
| 99 | $countries = Country::getCountries(); |
|
| 100 | $users = User::pluck('name', 'id'); |
|
| 101 | $authorUserId = $this->getLoggedUser(); |
|
| 102 | ||
| 103 | return view('teachers.create') |
|
| 104 | ->with('countries', $countries) |
|
| 105 | ->with('users', $users) |
|
| 106 | ->with('authorUserId', $authorUserId); |
|
| 107 | } |
|
| 108 | ||
| 109 | /***************************************************************************/ |
|
| 110 | ||
| @@ 182-192 (lines=11) @@ | ||
| 179 | * @param \App\Teacher $teacher |
|
| 180 | * @return \Illuminate\Http\Response |
|
| 181 | */ |
|
| 182 | public function edit(Teacher $teacher) |
|
| 183 | { |
|
| 184 | $authorUserId = $this->getLoggedAuthorId(); |
|
| 185 | $users = User::pluck('name', 'id'); |
|
| 186 | $countries = Country::getCountries(); |
|
| 187 | ||
| 188 | return view('teachers.edit', compact('teacher')) |
|
| 189 | ->with('countries', $countries) |
|
| 190 | ->with('users', $users) |
|
| 191 | ->with('authorUserId', $authorUserId); |
|
| 192 | } |
|
| 193 | ||
| 194 | /***************************************************************************/ |
|
| 195 | ||