@@ 31-76 (lines=46) @@ | ||
28 | * |
|
29 | * @return void |
|
30 | */ |
|
31 | public function __construct() |
|
32 | { |
|
33 | $this->subMenu = [ |
|
34 | 'overview' => [ |
|
35 | 'title' => 'Overview', |
|
36 | 'url' => route('admin.index'), |
|
37 | 'icon' => 'fa fa-wrench', |
|
38 | 'active' => false, |
|
39 | ], |
|
40 | 'general' => [ |
|
41 | 'title' => trans('admin.settings.general.general'), |
|
42 | 'url' => route('admin.settings.general'), |
|
43 | 'icon' => 'fa fa-gear', |
|
44 | 'active' => false, |
|
45 | ], |
|
46 | 'theme' => [ |
|
47 | 'title' => trans('admin.settings.theme.theme'), |
|
48 | 'url' => route('admin.settings.theme'), |
|
49 | 'icon' => 'fa fa-list-alt', |
|
50 | 'active' => false, |
|
51 | ], |
|
52 | 'stylesheet' => [ |
|
53 | 'title' => trans('admin.settings.stylesheet.stylesheet'), |
|
54 | 'url' => route('admin.settings.stylesheet'), |
|
55 | 'icon' => 'fa fa-magic', |
|
56 | 'active' => false, |
|
57 | ], |
|
58 | 'localization' => [ |
|
59 | 'title' => trans('admin.settings.localization.localization'), |
|
60 | 'url' => route('admin.settings.localization'), |
|
61 | 'icon' => 'fa fa-language', |
|
62 | 'active' => false, |
|
63 | ], |
|
64 | 'timezone' => [ |
|
65 | 'title' => trans('admin.settings.timezone.timezone'), |
|
66 | 'url' => route('admin.settings.timezone'), |
|
67 | 'icon' => 'fa fa-calendar', |
|
68 | 'active' => false, |
|
69 | ], |
|
70 | ]; |
|
71 | ||
72 | View::share([ |
|
73 | 'sub_title' => trans('admin.admin'), |
|
74 | 'sub_menu' => $this->subMenu, |
|
75 | ]); |
|
76 | } |
|
77 | ||
78 | /** |
|
79 | * Display a listing of the resource. |
@@ 37-82 (lines=46) @@ | ||
34 | * |
|
35 | * @return void |
|
36 | */ |
|
37 | public function __construct() |
|
38 | { |
|
39 | $this->subMenu = [ |
|
40 | 'overview' => [ |
|
41 | 'title' => 'Overview', |
|
42 | 'url' => route('admin.index'), |
|
43 | 'icon' => 'fa fa-wrench', |
|
44 | 'active' => false, |
|
45 | ], |
|
46 | 'general' => [ |
|
47 | 'title' => trans('admin.settings.general.general'), |
|
48 | 'url' => route('admin.settings.general'), |
|
49 | 'icon' => 'fa fa-gear', |
|
50 | 'active' => false, |
|
51 | ], |
|
52 | 'theme' => [ |
|
53 | 'title' => trans('admin.settings.theme.theme'), |
|
54 | 'url' => route('admin.settings.theme'), |
|
55 | 'icon' => 'fa fa-list-alt', |
|
56 | 'active' => false, |
|
57 | ], |
|
58 | 'stylesheet' => [ |
|
59 | 'title' => trans('admin.settings.stylesheet.stylesheet'), |
|
60 | 'url' => route('admin.settings.stylesheet'), |
|
61 | 'icon' => 'fa fa-magic', |
|
62 | 'active' => false, |
|
63 | ], |
|
64 | 'localization' => [ |
|
65 | 'title' => trans('admin.settings.localization.localization'), |
|
66 | 'url' => route('admin.settings.localization'), |
|
67 | 'icon' => 'fa fa-language', |
|
68 | 'active' => false, |
|
69 | ], |
|
70 | 'timezone' => [ |
|
71 | 'title' => trans('admin.settings.timezone.timezone'), |
|
72 | 'url' => route('admin.settings.timezone'), |
|
73 | 'icon' => 'fa fa-calendar', |
|
74 | 'active' => false, |
|
75 | ], |
|
76 | ]; |
|
77 | ||
78 | View::share([ |
|
79 | 'sub_title' => trans('admin.settings.settings'), |
|
80 | 'sub_menu' => $this->subMenu, |
|
81 | ]); |
|
82 | } |
|
83 | ||
84 | /** |
|
85 | * Shows the settings general view. |