@extends('layouts.public') @section('content') @php /** * @var array $user * @var int $total_points points held across every restaurant wallet * @var int $programs number of loyalty programs the customer earns with * @var int $claimable_now rewards already affordable right now * @var array|null $top_wallet highest-balance wallet (or null) */ $total_points = (int) ($total_points ?? 0); $programs = (int) ($programs ?? 0); $claimable_now = (int) ($claimable_now ?? 0); $top_wallet = $top_wallet ?? null; @endphp
@if ($programs > 0) {!! t_raw('account.earn_para_with_programs', [':link' => '' . e(t_raw('account.loyalty')) . '']) !!} @else {{ t_raw('account.earn_para_no_programs') }} @endif
{!! t_raw('account.top_program_balance_text', [':name' => '' . (($top_wallet['restaurant_name'] ?? '') !== '' ? e((string) $top_wallet['restaurant_name']) : t('account.a_restaurant_fallback')) . '']) !!} {{ t_raw('account.see_redeem_link') }}
{{ t_raw('account.earning_automatic_lead') }}
{{ t_raw('account.earn_item1_text') }}
{{ t_raw('account.earn_item2_text') }}
{{ t_raw('account.earn_item3_text') }}
{{ t_raw('account.more_item1_text') }}
{{ t_raw('account.more_item2_text') }}
{{ t_raw('account.more_item3_text') }}