1 | <?php |
||
2 | |||
3 | namespace App\Http\Controllers; |
||
4 | |||
5 | use Illuminate\Http\Request; |
||
6 | |||
7 | use App\Association; |
||
8 | use App\Schedule; |
||
9 | |||
10 | class AssociationScheduleController extends AssociationAwareController |
||
11 | { |
||
12 | |||
13 | /** |
||
14 | * Display the specified resource. |
||
15 | * |
||
16 | * @param int $id |
||
17 | * @return \Illuminate\Http\Response |
||
18 | */ |
||
19 | public function showUpcoming() |
||
20 | { |
||
21 | return view( |
||
0 ignored issues
–
show
Bug
Best Practice
introduced
by
![]() |
|||
22 | 'association.schedule', |
||
23 | [ |
||
24 | 'association' => $this->association, |
||
25 | 'schedules' => $this->association->activeSchedules, |
||
0 ignored issues
–
show
|
|||
26 | ] |
||
27 | ); |
||
28 | } |
||
29 | |||
30 | public function showFull($string, Schedule $schedule) |
||
31 | { |
||
32 | return view( |
||
33 | 'association.schedule.full', |
||
34 | [ |
||
35 | 'association' => $this->association, |
||
36 | 'schedule' => $schedule, |
||
37 | ] |
||
38 | ); |
||
39 | } |
||
40 | |||
41 | } |
||
42 |