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