- $books = $this->bookRepo->getAll();
- $activity = $this->activityService->latest();
- return view('home', ['books' => $books, 'activity' => $activity]);
+ $activity = Activity::latest();
+ $recents = $this->signedIn ? Views::getUserRecentlyViewed(10, 0) : $this->bookRepo->getLatest(10);
+ return view('home', ['activity' => $activity, 'recents' => $recents]);