@php
if (!$account) {
$account = app(\App\Models\BusinessAccounts::class);
}
$account_updated_at = strtotime($account['updated_at']);
$user_uid = '';
$account = app(\App\Models\BusinessAccounts::class);
$acc_country = $account['country'];
$facebook_pixel_id = config('sys.facebook_pixel_id');
$gtm_container_id = config('sys.gtm_container_id');
$skale_pixel_id = config('sys.skale_pixel_id');
$tiktok_pixel_id = config('sys.tiktok_pixel_id');
$account_updated_at = strtotime($account['updated_at']);
if(Auth::check()) {
$user = Auth::user();
$user_uid = $user->getDetail('app_user_uid');
}
// labels
$config_registration = [
'regtext' => __('label.registration_text'),
'login_link_processing' => __('label.login_link_processing'),
'login_link_sent' => __('label.login_link_sent'),
];
$config_error = [
'default' => __('enterprise.labelDefaultError'),
];
@endphp
@if ($account['apple_touch_icon'])
@endif
{{ __('label.loading') }}...
{{ __('label.loading') }}...
@section('menu')
@component('components.digital_voucher.page_header', [
'account' => $account,
'custom_class' => [
'logo' => 'm-lg-0 m-sm-0 m-auto p-0 m-0',
'right_menu_container' => 'justify-content-sm-around header-right-div',
'search_input_container' => 'search-input-div',
'navbar_dropdown_container' => '',
],
'custom_route' => [
'how_it_work' => config('digital_voucher.url.how_it_work'),
],
])
@endcomponent
{{-- @component('components.digital_voucher.page_navbar_menu', [--}}
{{-- 'custom_class' => [--}}
{{-- 'container' => 'row no-gutters text-right p-0 m-0',--}}
{{-- 'nav_container' => 'col-12 p-0',--}}
{{-- ],--}}
{{-- 'custom_style' => [--}}
{{-- 'nav_container' => [--}}
{{-- 'z-index' => '1',--}}
{{-- ],--}}
{{-- ],--}}
{{-- 'custom_route' => [--}}
{{-- ],--}}
{{-- 'id' => 'header-mob',--}}
{{-- ])--}}
{{-- @endcomponent--}}
@show
@include('components.digital_voucher.loading_content')
@include('components.digital_voucher.toastbox_success')
@include('components.digital_voucher.toastbox_warning')
@component('components.digital_voucher.alert_message', [
'isCondition' => $is_route = \Illuminate\Support\Facades\Route::currentRouteName() == 'my' && !config('app.IS_DEMO'),
])
@if($is_route)
@slot('change_password')
{{ __('label.change_password') }}
@endslot
@endif
@endcomponent
@php
switch ($footer_type = strtolower(config('digital_voucher.footer_type'))) {
case 'page_footer':
case 'page_footer_logo_center':
break;
default:
$footer_type = 'page_footer';
}
@endphp
@component('components.digital_voucher.' . $footer_type, [
'account' => $account,
])
@endcomponent
{{ __('label.msg_browser_not_supported') }}
{{ __('label.msg_switch_broswer', ['campaign_name' => config('sys.campaign_name')]) }}
{{ __('label.msg_download_google_chrome') }}
{{--
--}}
{{--@include('components.enterprise_voucher.script-app-voucher')--}}
{{-- --}}
{{-- @todo allow admin to edit the js and css thru admin dashboard, and domain specfic script--}}