19.98 ORDER BY procent DESC LIMIT 1)"; } $query .= " UNION (SELECT 'Alle Angebote' as name, '/img/paw-400-400.png' as image_url, 'RSS-Feeds' as spirit_type, 'feeds' AS url, 'RSS-Feeds' AS angebotsname, (SELECT MAX(procent) FROM all_view) as procent, 'Zu den RSS-Feeds' AS linktext FROM all_view LIMIT 1)"; $data = DB::select($query); $count = DB::select("SELECT count(*) as count FROM all_view")[0]; #$data = DB::table('whisky_view')->orderBy('procent', 'DESC')->limit(100)->simplePaginate(20); #$views[] = "rss-feeds"; return view('index', ['data' => $data, 'views' => $views, 'hits' => $count]); } }