1 | <?php namespace Modules\Dashboard\Http\Controllers\Admin; |
||
10 | class DashboardController extends AdminBaseController |
||
11 | { |
||
12 | /** |
||
13 | * @var WidgetRepository |
||
14 | */ |
||
15 | private $widget; |
||
16 | /** |
||
17 | * @var Authentication |
||
18 | */ |
||
19 | private $auth; |
||
20 | |||
21 | /** |
||
22 | * @param Repository $modules |
||
23 | * @param WidgetRepository $widget |
||
24 | * @param Authentication $auth |
||
25 | */ |
||
26 | public function __construct(Repository $modules, WidgetRepository $widget, Authentication $auth) |
||
33 | |||
34 | /** |
||
35 | * Display the dashboard with its widgets |
||
36 | * @return \Illuminate\View\View |
||
37 | */ |
||
38 | public function index() |
||
51 | |||
52 | /** |
||
53 | * Save the current state of the widgets |
||
54 | * @param Request $request |
||
55 | * @return mixed |
||
56 | */ |
||
57 | public function save(Request $request) |
||
69 | |||
70 | /** |
||
71 | * Reset the grid for the current user |
||
72 | */ |
||
73 | public function reset() |
||
85 | |||
86 | /** |
||
87 | * Boot widgets for all enabled modules |
||
88 | * @param Repository $modules |
||
89 | */ |
||
90 | private function bootWidgets(Repository $modules) |
||
101 | |||
102 | /** |
||
103 | * Require necessary assets |
||
104 | */ |
||
105 | private function requireAssets() |
||
117 | } |
||
118 |