Total Complexity | 3 |
Total Lines | 55 |
Duplicated Lines | 0 % |
Changes | 0 |
1 | <?php |
||
9 | class AdminController extends Controller |
||
10 | { |
||
11 | /** |
||
12 | * Create a new controller instance. |
||
13 | * |
||
14 | * @return void |
||
15 | */ |
||
16 | public function __construct() |
||
19 | } |
||
20 | |||
21 | /** |
||
22 | * Show the application dashboard. |
||
23 | * |
||
24 | * @return \Illuminate\View\View |
||
25 | */ |
||
26 | public function index() |
||
27 | { |
||
28 | $sounds = Sound::sortedSounds()->get(); |
||
29 | $enabledSounds = Sound::enabledSounds()->sortedSounds()->get(); |
||
30 | $user = auth()->user(); |
||
31 | $users = User::all(); |
||
32 | $themes = Theme::enabledThemes()->get(); |
||
33 | |||
34 | $data = [ |
||
35 | 'sounds' => $sounds, |
||
36 | 'enabledSounds' => $enabledSounds, |
||
37 | 'user' => $user, |
||
38 | 'users' => $users, |
||
39 | 'themes' => $themes, |
||
40 | ]; |
||
41 | |||
42 | return view('pages.dashboard', $data); |
||
43 | } |
||
44 | |||
45 | /** |
||
46 | * Show the application filemanager. |
||
47 | * |
||
48 | * @return \Illuminate\View\View |
||
49 | */ |
||
50 | public function filemanager() |
||
66 |