@@ 33-60 (lines=28) @@ | ||
30 | /** |
|
31 | * Creates a new project controller instance. |
|
32 | */ |
|
33 | public function __construct() |
|
34 | { |
|
35 | $this->subMenu = [ |
|
36 | 'yours' => [ |
|
37 | 'title' => trans('dashboard.projects.yours'), |
|
38 | 'url' => route('dashboard.projects.index'), |
|
39 | 'icon' => 'fa fa-edit', |
|
40 | 'active' => false, |
|
41 | ], |
|
42 | 'starred' => [ |
|
43 | 'title' => trans('dashboard.projects.starred'), |
|
44 | 'url' => route('dashboard.projects.starred'), |
|
45 | 'icon' => 'fa fa-umbrella', |
|
46 | 'active' => false, |
|
47 | ], |
|
48 | 'explore' => [ |
|
49 | 'title' => trans('dashboard.projects.explore'), |
|
50 | 'url' => route('explore.index'), |
|
51 | 'icon' => 'fa fa-eye', |
|
52 | 'active' => false, |
|
53 | ], |
|
54 | ]; |
|
55 | ||
56 | View::share([ |
|
57 | 'sub_menu' => $this->subMenu, |
|
58 | 'sub_title' => trans_choice('dashboard.projects.projects', 2), |
|
59 | ]); |
|
60 | } |
|
61 | ||
62 | /** |
|
63 | * Shows the projects view. |
@@ 34-61 (lines=28) @@ | ||
31 | /** |
|
32 | * Creates a new project controller instance. |
|
33 | */ |
|
34 | public function __construct() |
|
35 | { |
|
36 | $this->subMenu = [ |
|
37 | 'yours' => [ |
|
38 | 'title' => trans('dashboard.projects.yours'), |
|
39 | 'url' => route('dashboard.projects.index'), |
|
40 | 'icon' => 'fa fa-edit', |
|
41 | 'active' => false, |
|
42 | ], |
|
43 | 'starred' => [ |
|
44 | 'title' => trans('dashboard.projects.starred'), |
|
45 | 'url' => route('dashboard.projects.starred'), |
|
46 | 'icon' => 'fa fa-umbrella', |
|
47 | 'active' => false, |
|
48 | ], |
|
49 | 'explore' => [ |
|
50 | 'title' => trans('dashboard.projects.explore'), |
|
51 | 'url' => route('explore.index'), |
|
52 | 'icon' => 'fa fa-eye', |
|
53 | 'active' => false, |
|
54 | ], |
|
55 | ]; |
|
56 | ||
57 | View::share([ |
|
58 | 'sub_menu' => $this->subMenu, |
|
59 | 'sub_title' => trans_choice('dashboard.projects.projects', 2), |
|
60 | ]); |
|
61 | } |
|
62 | ||
63 | /** |
|
64 | * Displays the explore page. |