@php // Switched off in Admin -> Pages: the band does not draw, on any layout that includes it. if (!section_on('craving-strip')) { return; } // Each smart filter gets its own vibrant accent (no more flat black icons). $smart = [ [t('home.craving.all_restaurants'), 'fa-utensils', route('restaurants')], [t('home.craving.top_rated'), 'fa-star', route('restaurants', ['sort' => 'rating'])], [t('home.hero.ad_fast'), 'fa-bolt', route('restaurants', ['sort' => 'delivery'])], [t('home.craving.budget'), 'fa-wallet', route('restaurants', ['sort' => 'price'])], ]; // Personalised greeting for signed-in users; smiley fallback for guests. $craveUser = \App\Support\Auth::user(); $craveName = $craveUser ? trim((string) explode(' ', (string) $craveUser['name'])[0]) : ''; // "What are you craving" = the customer's DIET / PROTEIN preferences (Vegan, Vegetarian, // Healthy, Seafood, Meat, Poultry). Cuisines (country) live in the right A-Z panel; // dish types live in the "Browse by food type" strip — so the three never overlap. $prefTags = (new \App\Models\Tag())->withCounts() ->filter(static fn ($t): bool => (int) ($t['restaurant_count'] ?? 0) > 0 && in_array($t['group'] ?? '', ['dietary', 'protein'], true)) ->values()->all(); @endphp