@php /** * Shop spotlight card — a richer restaurant tile shown beside a rail of that shop's dishes * (restaurant-oriented landing). Purpose-built for the spotlight block; distinct from the * compact cards/restaurant. * * @var array $r restaurant row (id, slug, name, cover_image, cuisine_name, city, * rating_cache, rating_count, avg_prep_time, min_order, tag_names, is_featured) */ $slug = (string) ($r['slug'] ?? ''); $name = (string) ($r['name'] ?? ''); $rate = (float) ($r['rating_cache'] ?? 0); $rcount = (int) ($r['rating_count'] ?? 0); $cuisine = (string) ($r['cuisine_name'] ?? ''); $tags = array_values(array_filter(array_map('trim', explode(',', (string) ($r['tag_names'] ?? ''))))); @endphp {{ $name }} @if (!empty($r['is_featured'])){{ t_raw('common.featured_badge') }}@endif {{ t_raw('home.restaurant.spotlight_eyebrow') }} {{ $name }} {!! $cuisine !== '' ? e($cuisine) : t('common.multi_cuisine') !!}{!! !empty($r['city']) ? ' · ' . e($r['city']) : '' !!} @if ($tags) @php $tagTaken = []; @endphp @foreach (array_slice($tags, 0, 3) as $tn){{ $tn }}@endforeach @endif {{ number_format($rate, 1) }}@if ($rcount) ({{ number_format($rcount) }})@endif {{ (int) ($r['avg_prep_time'] ?? 0) }} {{ t_raw('common.prep_min_suffix') }} {{ money($r['min_order'] ?? 0) }} {{ t_raw('common.order_min_suffix') }} {{ t_raw('home.restaurant.view_menu_order_cta') }}