toCollection()->all(); } $settings->sort(); $themes = array_diff(scandir(base_path('themes')), array('..', '.')); return view('admin.settings.index', [ 'settings' => $settings->all(), 'themes' => $themes, 'active_theme' => Theme::active(), ]); } }