@php /** * @var array $item popular menu item with restaurant_name / restaurant_slug / restaurant_logo * @var bool $showRestaurant false when the whole rail already belongs to one restaurant * (e.g. a restaurant-spotlight "Popular at X" rail), so the * per-card restaurant tag would just repeat what's already shown */ $veg = (int) ($item['is_veg'] ?? 0) === 1; $restUrl = url('/restaurant/' . e($item['restaurant_slug'] ?? '')); $showRestaurant = $showRestaurant ?? true; @endphp
{{ $item['name'] }} @if (!empty($item['is_popular'])){{ t_raw('vendor.menu.popular_pill') }}@endif @if ($showRestaurant) {!! restaurant_logo_html(['logo' => $item['restaurant_logo'] ?? '', 'name' => $item['restaurant_name'] ?? ''], 'sm', 'qm-pop-rest-logo') !!} {{ $item['restaurant_name'] ?? '' }} @endif

{{ $item['name'] }}

{{ money($item['price']) }}
@partial('cards/dish-attrs', ['item' => $item])