@php /** * Restaurant sign-up, step 3: the Business Profile block - Connect (a pop-up), or the connected chip * with the account's listings to pick from. Rendered by the page and again by the pop-up's answer / * "Disconnect" (VendorSignupController::venuePanel), so the block swaps in place without a reload. * * @var array $gbp The connection parked in the session: refresh, locations, picked ([] = none). */ $gbp = (array) ($gbp ?? []); $gbpConnected = ($gbp['refresh'] ?? '') !== ''; $gbpLocations = (array) ($gbp['locations'] ?? []); $gbpPicked = (array) ($gbp['picked'] ?? []); @endphp @if ($gbpConnected)
{!! google_mark(18) !!} {{ t_raw('auth.vs_gbp_connected') }} {{ t_raw('auth.vs_gbp_forget') }}
@if ($gbpLocations)

{{ t_raw('auth.vs_gbp_pick') }}

@foreach ($gbpLocations as $i => $loc) @php $lid = 'vs_gbp_' . $i; $on = ($gbpPicked['location'] ?? '') === $loc['location']; @endphp
@endforeach
@else

{{ t_raw('auth.vs_gbp_none') }}

@endif @else {!! google_mark(18, 'me-2') !!} {{ t_raw('auth.vs_gbp_btn') }} @endif