has('dismiss-greeter')) { $dismiss = Utils::parseBool01($request->get('dismiss-greeter')); \Cookie::queue('dismiss-greeter', $dismiss); return back(); } $users = User::orderBy('updated_at', 'desc') ->paginate(15, ['id', 'title', 'name'], 'pageu'); // TODO visit counting $tables = Table::forList() ->orderBy('visits', 'desc') ->paginate(10, ['*'], 'paget'); $showGreeter = !$dismiss && !$request->cookie('dismiss-greeter', false); return view('welcome', compact('users', 'tables', 'showGreeter')); } }