/** * @param Cart $cart */ public function __construct(Cart $cart) { $this->NavigationItems = NavigationItem::active()->get(); $this->Cart = $cart; }