@if ($branding['logoUrl'])

@else{{ strtoupper(substr($propertyName ?: 'H', 0, 1)) }}@endif
{{ $propertyName }}
@if ($lang)
@endif
@if (! $stay)
{{ __('prearrival.not_found_title') }}
{{ __('prearrival.not_found_body') }}
@else
{{ $stay['countdownLabel'] }}
{{ $branding['welcome'] }}@if ($stay['firstName']), {{ $stay['firstName'] }}@endif
{{ __('prearrival.tagline') }}
{{ __('prearrival.checkin') }}
{{ $stay['checkInDate']->format('D j M') }}
@if ($stay['checkInTime'])
{{ __('prearrival.from_time', ['time' => $stay['checkInTime']]) }}
@endif
{{ __('prearrival.checkout') }}
{{ $stay['checkOutDate']->format('D j M') }}
@if ($stay['checkOutTime'])
{{ __('prearrival.by_time', ['time' => $stay['checkOutTime']]) }}
@endif
{{ __('prearrival.nights') }}
{{ $stay['nights'] }}
@if ($stay['unitName'])
{{ __('prearrival.room') }}
{{ $stay['unitName'] }}
@endif
{{ __('prearrival.door_code') }}
@if (! $stay['hasCode'])
{{ __('prearrival.door_pending') }}
@elseif (! $stay['revealCode'])
• • • •
@if ($stay['checkInTime'])
{{ __('prearrival.door_activates', ['time' => $stay['checkInTime'], 'date' => $stay['checkInDate']->format('D j M')]) }}
@endif
{{ __('prearrival.door_security') }}
@else
{{ $stay['passcode'] }}
@if ($stay['daysUntil'] === 0 && $stay['checkInTime'])
{{ __('prearrival.door_active_from', ['time' => $stay['checkInTime']]) }}
@endif
{{ __('prearrival.door_active') }}
@endif
@if ($branding['address'] || ($branding['lat'] && $branding['lng']))
@php
$mapQuery = ($branding['lat'] && $branding['lng']) ? ($branding['lat'] . ',' . $branding['lng']) : $branding['address'];
$mapUrl = 'https://www.google.com/maps/search/?api=1&query=' . urlencode((string) $mapQuery);
@endphp
@endif
@if ($capture)
{{ __('prearrival.arrival') }}
@if (session('saved'))
{{ __('prearrival.saved_ok') }}
@endif
@if ($errors->any())
{{ __('prearrival.form_error') }}
@endif
@endif
@if ($upsells->isNotEmpty())
{{ __('prearrival.before_you_arrive') }}
@if (session('upsell_added'))
{{ __('prearrival.upsell_added_msg', ['item' => session('upsell_added')]) }}
@endif
@if (session('upsell_requested'))
{{ __('prearrival.upsell_requested_msg', ['item' => session('upsell_requested')]) }}
@endif
@if (session('upsell_error'))
{{ __('prearrival.upsell_error_msg') }}
@endif
@foreach ($upsells->groupBy('category') as $category => $items)
@if ($category)
{{ $category }}
@endif
@foreach ($items as $u)
@php $purchased = in_array($u->id, $purchasedUpsellIds); @endphp
{{ $u->title }}
@if ($u->description)
{{ $u->description }}
@endif
@if ($u->price)
{{ $u->price }}
@endif
@if ($purchased)
✓ {{ $u->needs_approval ? __('prearrival.requested') : __('prearrival.added') }}
@elseif ($upsellUrl && ! $u->needs_flight_no && ! in_array($u->kind, ['early_checkin', 'late_checkout']) && ($u->price || $u->needs_approval))
@endif
@if ($upsellUrl && $u->needs_flight_no && ! $purchased)
@endif
@if ($upsellUrl && ! $u->needs_flight_no && in_array($u->kind, ['early_checkin', 'late_checkout']) && ! $purchased)
@endif
@endforeach
@endforeach
{{ __('prearrival.upsell_cta') }}
@endif
@if ($folio && (! empty($folio['items']) || ($folio['balance'] ?? 0) != 0))
@php $cur = $folio['currency'] ?? ''; $dec = strtoupper((string) $cur) === 'ISK' ? 0 : 2; @endphp
{{ __('prearrival.your_bill') }}
@foreach ($folio['items'] as $it)
@continue(($it['type'] ?? 'charge') === 'payment')
@if (($it['qty'] ?? 1) > 1){{ $it['qty'] }}× @endif{{ $it['description'] }}
{{ number_format($it['lineTotal'] ?? 0, $dec, ',', '.') }} {{ $cur }}
@endforeach
{{ __('prearrival.total') }}
{{ number_format($folio['charges'] ?? 0, $dec, ',', '.') }} {{ $cur }}
@if (($folio['payments'] ?? 0) > 0)
{{ __('prearrival.paid') }}
−{{ number_format($folio['payments'] ?? 0, $dec, ',', '.') }} {{ $cur }}
@endif
{{ __('prearrival.balance') }}
{{ number_format($folio['balance'] ?? 0, $dec, ',', '.') }} {{ $cur }}
{{ __('prearrival.bill_note') }}
@endif
@php
$showWifi = $branding['wifiSsid'];
@endphp
@if ($infoTabs->isNotEmpty() || $showWifi)
{{ __('prearrival.good_to_know') }}
@foreach ($infoTabs as $tab)
first) open @endif>
{{ $tab->title }}
{{ $tab->body }}
@endforeach
@if ($showWifi)
{{ __('prearrival.wifi') }}
{{ __('prearrival.wifi_network', ['ssid' => $branding['wifiSsid']]) }}@if ($branding['wifiPassword'])
{{ __('prearrival.wifi_password', ['password' => $branding['wifiPassword']]) }}@endif
@endif
@endif
@if ($contact['phone'] || $contact['email'])
{{ __('prearrival.need_hand') }}
@endif
@endif