get(); return view("admin.themes", ["themes" => $themes]); } public function themesSettings(Request $request) { $theme = Theme::query()->where("id", "=", $request->input("id"))->firstOrFail(); $theme->status = $request->input("status"); $theme->img_big = (bool)$request->input("img_big", false); $theme->img_medium = (bool)$request->input("img_medium", false); $theme->img_small = (bool)$request->input("img_small", false); $theme->img_pixel = (bool)$request->input("img_pixel", false); $theme->saveOrFail(); return Redirect::back(); } public function serverView() { if(Auth::user()->typ != "admin") { abort(401); } $servers = Server::query()->get(); return view("admin.servers", ["servers" => $servers]); } }