@extends('layouts.dashboard') @section('content') @php /** * Vendor → Google Business Profile → pick the location. * * A Google account can manage several businesses, and Google addresses a menu as * accounts/{a}/locations/{l} — so which one this restaurant is cannot be inferred, only * chosen. Once, then stored. * * @var array $locations account, location, name, address, eligible */ $locations = $locations ?? []; @endphp @php /* .qm-d2: the dashboard density standard (app.css §35) */ @endphp
{{ t_raw('vendor.menu.google_pick_sub') }}
{{ t_raw('vendor.menu.google_none_body') }}
| {{ t_raw('vendor.menu.google_col_location') }} | {{ t_raw('vendor.menu.google_col_menu') }} | |
|---|---|---|
|
{{ (string) $loc['name'] }}
@if (($loc['address'] ?? '') !== '') {{ (string) $loc['address'] }}@endif |
@php /* Google decides per location whether it may carry a food menu (metadata.canHaveFoodMenus). Saying so here beats letting the owner pick one and meet an empty import. */ @endphp @if (!empty($loc['eligible'])) {{ t_raw('vendor.menu.google_eligible') }} @else {{ t_raw('vendor.menu.google_not_eligible') }} @endif |