@php /** * "Goes well with your order" — the recommendation band shown once something is in the basket. * * Rendered server-side and injected by assets/js/qm-upsell.js, so the cards are built by the same * helpers, classes and translations as the rest of the storefront rather than by a second copy of * the markup living in JavaScript. * * No new styles: the tile is the shipped .qm-pop-card (app.css) that the homepage popular-dish * rail and partials/cards/food-item.php's 'grid' layout both draw, and the photo opens through the * product's existing global lightbox (data-lightbox-src, assets/js/qm-lightbox.js) rather than a * modal of its own. * * @var array $items SmartUpsell::forCart() rows; a rule row also carries * upsell_discount + upsell_type * @var string $restaurantSlug for the "see the whole menu" link; '' when unknown */ use App\Services\SmartUpsell; if (empty($items)) { return; } /* No glyph beside this heading. A wand read as "magic", which is the opposite of what a recommendation should claim, and no other storefront band puts an icon next to its title. No "add more" link either: the customer is already on the menu, or one tap from it. In the restaurant page's rail this is its own compact card sitting ABOVE "Your Order" — a suggestion is read before the basket is reviewed, not after it. Above also settles the overlap: .qm-cart-side is position:sticky with z-index 20, so a band below it was slid under the pinned panel on scroll, while one above simply scrolls away as the panel takes over. */ $inRail = !empty($inRail); @endphp