@php
$tab_items = ['reward'=>'Rewards Available','wallet'=>'Rewards Downloaded'];
$is_show_point = data_get($uiConfigs, 'showPoint', $is_show_point ?? true);
if(!$is_show_point){
unset($tab_items['reward']);
}
$campaign_status = getCampaignStatus();
@endphp
@once
@push('script')
@endpush
@endonce
@section('script')
@append
@component(getPopupLayout(), ['id' => 'popup_rewards'])
{{ $is_show_point ? __('enterprise.titlePointRedemptionCatalogue') : __('enterprise.titleVoucherWallet') }}
{{ __('enterprise.labelMyPoints') }}:
@if($is_show_point)
@foreach($tab_items as $tab=>$name)
-
{{$name}}
@endforeach
@endif
@foreach($tab_items as $tab=>$name)
@php
$active = $tab==='wallet' && !$is_show_point ? $loop->last : $loop->first;
@endphp
@include('components.utility.loading')
@include('components.main.voucher-card')
@endforeach
@endcomponent
@component(getPopupLayout(), ['id' => 'popup_attempt_plant_reward_not_synced'])
{{ __('heading.title_are_you_sure') }}
{!!
__(
htmlentities(__('enterprise.labelRedemptionConversionDescription')),
[
'num_point' => $is_show_point ? ('500 '
. htmlentities(__('enterprise.labelPoint'))
. '') : '',
'voucher_name' => '30% off selected items at Tomei'
]
)
!!}
{{--
You will convert
500 token
to
30% off selected items at Tomei
--}}
@endcomponent
@component(getPopupLayout(), ['id' => 'popup_attempt_plant_reward_no_token'])
@if(config('sys.reward_marketplace.confirmation_ui_type') === 'type2')
{{ __('heading.title_are_you_sure') }}
{{--
--}}
{{--
--}}
{{--
--}}
{{-- 30% off selected items at Tomei--}}
{{--
--}}
{{--
--}}
{{-- @if ($is_show_point)--}}
{{-- 500--}}
{{-- {{ __('label.pts') }}--}}
{{-- @endif--}}
{{--
--}}
{{--
--}}
{{-- --}}
{{-- --}}
{{-- --}}
{{--
--}}
{{--
--}}
{{--
--}}
{{--
--}}
@else
{{ __('heading.title_are_you_sure') }}
{{--
--}}
{{-- {!!--}}
{{-- __(--}}
{{-- htmlentities(__('enterprise.labelRedemptionConversionDescription')),--}}
{{-- [--}}
{{-- 'num_point' => $is_show_point ? ('500 '--}}
{{-- . htmlentities(__('enterprise.labelPoint'))--}}
{{-- . '') : '',--}}
{{-- 'voucher_name' => '30% off selected items at Tomei'--}}
{{-- ]--}}
{{-- )--}}
{{-- !!}--}}
{{-- You will convert--}}
{{-- 500 points --}}
{{-- for--}}
{{-- 30% off selected items at Tomei--}}
{{--
--}}
{{--
Terms and Conditions:
--}}
@endif
@endcomponent
@component(getPopupLayout(), ['id' => 'popup_attempt_plant_reward_redemption_success'])
{!! __('enterprise.titleRewardDownloadedDesc') !!}
{{--
{{ __('heading.select_variant_title') }}
--}}
@foreach($voucher_series['combinations'] ?? [] as $combination)
@endforeach
{{--
--}}
{{-- --}}
{{-- --}}
{{-- --}}
{{--
--}}
{!! __('messages.variant_download_warning') !!}
@endcomponent
@component(getPopupLayout(), ['id' => 'popup_attempt_use_digital_voucher'])