/** * Shop home. * * */ public function index() { $products = Product::with(['translations', 'images', 'images.translations'])->take(15)->get(); $latest = $this->section($products, 4); $top = $this->section($products, 3); $bestsellers = $this->section($products, 3); $sales = $this->section($products, 3); $featured = $products; $tweets = latest_tweets_about(4); return $this->theme->render('shop.store', ['latest' => $latest, 'featured' => $featured, 'sales' => $sales, 'bestsellers' => $bestsellers, 'top' => $top, 'tweets' => $tweets]); }