@section('script')
@parent
@endsection
@section('style')
@parent
@if(config('app.SHOW_SIDEBAR'))
@endif
@endsection
@php
$tutorial_data = [];
if ($is_home) {
$tutorial_data = array_merge($tutorial_data, [
[
'id' => 'tutorial_home_banner',
'text' => 'tutorials_common.home_banner',
],
[
'id' => 'tutorial_flash_promo',
'text' => 'tutorials_digital_voucher.flash_promo',
],
[
'id' => 'tutorial_category_bar',
'text' => 'tutorials_digital_voucher.category_bar',
],
[
'id' => 'tutorial_first_voucher',
'text' => 'tutorials_digital_voucher.first_voucher',
'global_script' => 'var MSG_CTA_DOWNLOAD_VOUCHER = "'.addslashes(__('tutorials_digital_voucher.msg_cta_download_voucher')).'";',
],
[
'id' => 'tutorial_voucher_download',
'text' => 'tutorials_digital_voucher.voucher_download',
],
[
'id' => 'tutorial_proceed_voucher_wallet',
'text' => 'tutorials_digital_voucher.msg_proceed_voucher_wallet',
],
]);
}
if ($is_wallet) {
$tutorial_data = array_merge($tutorial_data, [
[
'id' => 'tutorial_voucher_redemption',
'text' => 'tutorials_digital_voucher.voucher_redemption',
],
[
'id' => 'tutorial_voucher_redemption_pin',
'text' => 'tutorials_digital_voucher.voucher_redemption_pin',
],
[
'id' => 'tutorial_promotional_method',
'text' => 'tutorials_digital_voucher.promotional_method',
],
[
'id' => 'redemption_complete',
'text' => 'tutorials_digital_voucher.redemption_complete',
],
[
'id' => 'tutorial_get_in_touch',
'text' => 'tutorials_common.label_get_in_touch'
],
]);
}
@endphp
@if($is_home)
@component('components.utility.popup_welcome', ['product_name' => __('tutorials_digital_voucher.product_name')])
@endcomponent
@endif
@php
$global_js = [];
@endphp
@foreach($tutorial_data as $tutorial)
@component('components.utility.template_floating_container', ['id' => $tutorial['id']])
@endcomponent
@php
if ($tutorial['global_script']) {
$global_js[] = $tutorial['global_script'];
}
@endphp
@endforeach
@if(config('app.SHOW_SIDEBAR'))
@component('components.digital_voucher.tutorial_sidebar')
@endcomponent
@endif
@if(!empty($global_js))
@section('script')
@parent
@endsection
@endif