| Conditions | 1 |
| Paths | 1 |
| Total Lines | 19 |
| Code Lines | 14 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 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 | } |
||
| 60 |