@if(!$customerLoyaltyAccount && $calculateLoyaltyPointsForOrder>=1) {{-- if the customer is not logged in, we need to ask them if they have a loyalty account. we'll show them a form so they can submit their phone number --}}
This order earns you {!! $calculateLoyaltyPointsForOrder !!} {!! $pointsPlurality !!}!
If you have a Loyalty Account, enter your phone number below
{{-- Show flash message(s) if set --}} @if (session('loyaltyInfo'))
{{ session('loyaltyInfo') }}
@endif
@endif @if($customerLoyaltyAccount && $calculateLoyaltyPointsForOrder>=1) {{-- if the customer is logged in, or, we've asked for their loyalty account. we'll show them loyalty data and a button to redeem stuff (if applicable) --}}
Points Balance: {!! $currentCustomerPoints !!}
This order earns you an additional {!! $calculateLoyaltyPointsForOrder !!} {!! $pointsPlurality !!}! @if(count($availableRewardTiers)>=1) {{-- Check if a reward has already been added --}} @else
Once you've collected enough points, you can redeem them here
@endif @if(session()->has('loyaltyPhone'))
{{ session('loyaltyPhone') }} - Not your phone number?
{{-- Spinner when loading --}} Change Phone Number
@endif {{-- Show flash message(s) if set @if (session('loyaltySuccess'))
{{ session('loyaltySuccess') }}
@endif --}}
@endif @if(count($availableRewardTiers)>=1) @endif