@extends('components.view') @section('themeStylesheet') @endsection @section('brandThemeOverrideSettings') @endsection @section('brandBackground') @if($brandBackground!=='' && !empty($brandBackground)) style="background-image:url('{{ $brandBackground }}');" @endif @endsection @section('header') @php echo \App\Http\Controllers\Header::index($themeDirectory,$brandLogoSmall) @endphp @php echo \App\Http\Controllers\Navigation::index($themeDirectory) @endphp @endsection @section('content')
{!! $icon !!}{{ $heading }}
{{ $subheading }}

You currently have {!! $customersCurrentPoints !!} points

@if((int)$customersCurrentPoints>=(int)$loyaltyPointsSettings['point_limit'])
You've reached the maximum points allowed, time to cash in!
@endif

- Available Rewards -

@if(count($redeemable_items)>=1)
@foreach($redeemable_items as $redeemableItem) @if((int)$redeemableItem['is_active']===1) @endif @endforeach
@else
There are currently no redeemable rewards
@endif

- How are points earned? -

@if($pointsAreEarnedFor)
{!! $pointsAreEarnedFor !!}
@endif @if($pointsAreEarnedForItems)
@foreach($menuItemNames as $menuItemName) @php $plurality = ((int)$pointsAreEarnedForItems[$menuItemName['id']]>=2 ? '\'s are' : ' is'); @endphp
{!! $pointsAreEarnedForItems[$menuItemName['id']] !!} point{!! $plurality !!} earned for {!! $menuItemName['name'] !!}
@endforeach
@endif
@endsection