@php $tutorial_video = trim(config('app.TUTORIAL_VIDEO_URL')); $tutorial_admin = trim(config('app.TUTORIAL_ADMIN_URL')); $tutorial_themes = [ ]; $accounts = \App\Models\BusinessAccounts::select(['id', 'company_name', 'hostname']) ->whereNotNull('slug') ->get(); $curr_host = parse_url(url('/')); $curr_host = $curr_host['host']; $num_account = 0; foreach ($accounts as $account) { $is_selected = $account->hostname === $curr_host; $tutorial_themes[] = [ 'name' => $account->company_name, 'url' => $is_selected ? 'javascript:void(0);' : route('change_business_account', ['business_account' => $account->id, 'type' => 'home']), 'selected' => $is_selected, ]; ++$num_account; } $tutorial_projects = [ ]; $tutorial_steps = [ 'home'=> [ 'name' => __('tutorial_stampcard.toolbar_heading_home_page'), 'path' => '/', 'content' => [ 'masthead' => [ 'name' => __('tutorial_stampcard.toolbar_menu_masthead'), 'popup_id' => 'tutorial_2_masthead', ], 'referral' => [ 'name' => __('tutorial_stampcard.toolbar_menu_referral'), 'popup_id' => 'tutorial_3_referral', ], 'customizable_grid' => [ 'name' => __('tutorial_stampcard.toolbar_menu_customizable_grid'), 'popup_id' => 'tutorial_4_card_grid', ], 'upload_receipt' => [ 'name' => __('tutorial_stampcard.toolbar_menu_upload_receipt'), 'popup_id' => 'tutorial_5_btn_upload_receipt', ], 'receipt_picker' => [ 'name' => __('tutorial_stampcard.toolbar_menu_receipt_picker'), 'popup_id' => 'tutorial_6_receipt_picker', ], 'receipt_cropper' => [ 'name' => __('tutorial_stampcard.toolbar_menu_receipt_cropper'), 'popup_id' => 'tutorial_6_1_receipt_cropper', ], 'merchant_product_confirmation' => [ 'name' => __('tutorial_stampcard.toolbar_menu_merchant_product_confirmation'), 'popup_id' => 'tutorial_6_2_merchant_product_confirmation', ], 'point_award' => [ 'name' => __('tutorial_stampcard.toolbar_menu_point_award'), 'popup_id' => 'tutorial_7_point_award', ], 'reward_marketplace' => [ 'name' => __('tutorial_stampcard.toolbar_menu_reward_marketplace'), 'popup_id' => 'tutorial_8_btn_reward_marketplace', ], 'multiple_reward' => [ 'name' => __('tutorial_stampcard.toolbar_menu_multiple_reward'), 'popup_id' => 'tutorial_9_reward_marketplace', ], 'redemption_complete' => [ 'name' => __('tutorial_stampcard.toolbar_menu_redemption_complete'), 'popup_id' => 'tutorial_10_completion', ], 'get_in_touch' => [ 'name' => __('tutorials_common.toolbar_menu_get_in_touch'), 'popup_id' => 'tutorial_get_in_touch', ], ], ], ]; $tutorial_data = [ [ 'id' => 'tutorial_theme_selection', 'text' => 'tutorials_common.tutorial_theme_selection', ], [ 'id' => 'tutorial_tut_progress_panel', 'text' => 'tutorials_common.tutorial_tut_progress_panel', ], ]; @endphp {{ __('tutorial_stampcard.heading_stampcard_demo') }} {{ __('tutorials_common.label_guided_tutorial') }} @if($tutorial_video) {{ __('tutorials_common.label_watch_a_video_tutorial') }} @endif @if($tutorial_steps) {{ __('tutorials_common.btn_resume_tutorial') }} @foreach($tutorial_steps as $slug => $step) @php $curr_page = $step['path'] == Request::path(); @endphp {{$step['name']}} @if($step['content']) @endif @if($step['content']) @foreach($step['content'] as $inner_slug =>$inner_step) {{$inner_step['name']}} @endforeach @endif @endforeach @endif @if($tutorial_admin) {{-- --}} {{ __('tutorials_common.label_learn_about_admin_dashboard') }} @endif @if($num_account > 1) {{ __('tutorials_common.label_select_thems_for_this_demo') }} @foreach($tutorial_themes as $theme) @if($theme['selected']) {{ $theme['name']}} @endif @endforeach @foreach($tutorial_themes as $theme) {{$theme['name']}} @endforeach @endif @if($tutorial_projects) {{ __('tutorials_common.label_preview_other_demo_projects') }} @foreach($tutorial_projects as $proj) @endforeach @endif {!! __( htmlentities(__('tutorials_common.label_contact_enquiry')), [ 'contact_email' => 'help@skale.today', ]) !!} @foreach($tutorial_data as $tutorial) @component('components.utility.template_floating_container', ['id' => $tutorial['id']]) {{ __($tutorial['text']) }} @endcomponent @endforeach