@section('style') @endsection @section('script') @php $default_themes = config('admin.default_campaign_themes'); $default_mastheads = config('admin.default_campaign_mastheads'); $inner_class = 'w-100 bg-gray-light shadow-none border'; @endphp @endsection
@csrf @php $form = config('admin.settings.campaign')@endphp @component('admin.components.card', ['header'=>'Customize Registration Page'])
@php $id = 'reg_name_active'; $hasError = $errors->has($id); @endphp @component('admin.components.form_field_100', ['label'=>'', 'required'=>$form[$id]['req'], 'description'=>$form[$id]['descr'], 'hasError'=>$hasError ])
@component('admin.components.form_error_msg', ['hasError'=>$hasError]){{ $errors->first($id) }}@endcomponent @endcomponent @php $id = 'reg_email_active'; $hasError = $errors->has($id); @endphp @component('admin.components.form_field_100', ['label'=>'', 'required'=>$form[$id]['req'], 'description'=>$form[$id]['descr'], 'hasError'=>$hasError ])
@component('admin.components.form_error_msg', ['hasError'=>$hasError]){{ $errors->first($id) }}@endcomponent @endcomponent @php $id = 'reg_mobile_active'; $hasError = $errors->has($id); @endphp @component('admin.components.form_field_100', ['label'=>'', 'required'=>$form[$id]['req'], 'description'=>$form[$id]['descr'], 'hasError'=>$hasError ])
@component('admin.components.form_error_msg', ['hasError'=>$hasError]){{ $errors->first($id) }}@endcomponent @endcomponent @php $id = 'reg_dob_active'; $hasError = $errors->has($id); @endphp @component('admin.components.form_field_100', ['label'=>'', 'required'=>$form[$id]['req'], 'description'=>$form[$id]['descr'], 'hasError'=>$hasError ])
@component('admin.components.form_error_msg', ['hasError'=>$hasError]){{ $errors->first($id) }}@endcomponent @endcomponent {{-- @php--}} {{-- $id = 'reg_year_active';--}} {{-- $hasError = $errors->has($id);--}} {{-- @endphp--}} {{-- @component('admin.components.form_field_100', ['label'=>'', 'required'=>$form[$id]['req'], 'description'=>$form[$id]['descr'], 'hasError'=>$hasError ])--}} {{--
--}} {{--
--}} {{-- --}} {{-- --}} {{--
--}} {{--
--}} {{-- @component('admin.components.form_error_msg', ['hasError'=>$hasError]){{ $errors->first($id) }}@endcomponent--}} {{-- @endcomponent--}} @php $id = 'reg_address_active'; $hasError = $errors->has($id); @endphp @component('admin.components.form_field_100', ['label'=>'', 'required'=>$form[$id]['req'], 'description'=>$form[$id]['descr'], 'hasError'=>$hasError ])
@component('admin.components.form_error_msg', ['hasError'=>$hasError]){{ $errors->first($id) }}@endcomponent @endcomponent @php $id = 'reg_address_state_active'; $hasError = $errors->has($id); @endphp @component('admin.components.form_field_100', ['label'=>'', 'required'=>$form[$id]['req'], 'description'=>$form[$id]['descr'], 'hasError'=>$hasError ])
@component('admin.components.form_error_msg', ['hasError'=>$hasError]){{ $errors->first($id) }}@endcomponent @endcomponent
@php $id = 'otp_sms_active'; $hasError = $errors->has($id); @endphp @component('admin.components.form_field_100', ['label'=>'', 'required'=>$form[$id]['req'], 'description'=>$form[$id]['descr'], 'hasError'=>$hasError ])
@component('admin.components.form_error_msg', ['hasError'=>$hasError]){{ $errors->first($id) }}@endcomponent @endcomponent @php $id = 'login_url_sms_active'; $hasError = $errors->has($id); @endphp @component('admin.components.form_field_100', ['label'=>'', 'required'=>$form[$id]['req'], 'description'=>$form[$id]['descr'], 'hasError'=>$hasError ])
@component('admin.components.form_error_msg', ['hasError'=>$hasError]){{ $errors->first($id) }}@endcomponent @endcomponent @php $id = 'otp_whatsapp_active'; $hasError = $errors->has($id); @endphp @component('admin.components.form_field_100', ['label'=>'', 'required'=>$form[$id]['req'], 'description'=>$form[$id]['descr'], 'hasError'=>$hasError ])
@component('admin.components.form_error_msg', ['hasError'=>$hasError]){{ $errors->first($id) }}@endcomponent @endcomponent
@endcomponent @component('admin.components.card', ['header'=>'Campaign Setup', 'help'=>'campaign_setup']) @php $id = 'campaign_name'; $hasError = $errors->has($id) @endphp @component('admin.components.form_field_50', ['label'=>$form[$id]['label'], 'required'=>$form[$id]['req'], 'description'=>$form[$id]['descr'], 'hasError'=>$hasError ]) @component('admin.components.form_error_msg', ['hasError'=>$hasError]){{ $errors->first($id) }}@endcomponent @endcomponent @php $id = 'campaign_name_short'; $hasError = $errors->has($id) @endphp @component('admin.components.form_field_50', ['label'=>$form[$id]['label'], 'required'=>$form[$id]['req'], 'description'=>$form[$id]['descr'], 'hasError'=>$hasError ]) @component('admin.components.form_error_msg', ['hasError'=>$hasError]){{ $errors->first($id) }}@endcomponent @endcomponent @php $id = 'campaign_desc'; $hasError = $errors->has($id) @endphp @component('admin.components.form_field_50', ['label'=>$form[$id]['label'], 'required'=>$form[$id]['req'], 'description'=>$form[$id]['descr'], 'hasError'=>$hasError ]) @component('admin.components.form_error_msg', ['hasError'=>$hasError]){{ $errors->first($id) }}@endcomponent @endcomponent @php $id = 'campaign_keywords'; $hasError = $errors->has($id) @endphp @component('admin.components.form_field_50', ['label'=>$form[$id]['label'], 'required'=>$form[$id]['req'], 'description'=>$form[$id]['descr'], 'hasError'=>$hasError ]) @component('admin.components.form_error_msg', ['hasError'=>$hasError]){{ $errors->first($id) }}@endcomponent @endcomponent
@php $id = 'client_tnc'; $hasError = $errors->has($id) @endphp @component('admin.components.form_field_50', ['label'=>$form[$id]['label'], 'required'=>$form[$id]['req'], 'description'=>$form[$id]['descr'], 'hasError'=>$hasError ]) @component('admin.components.form_error_msg', ['hasError'=>$hasError]){{ $errors->first($id) }}@endcomponent @endcomponent @php $id = 'client_privacy'; $hasError = $errors->has($id) @endphp @component('admin.components.form_field_50', ['label'=>$form[$id]['label'], 'required'=>$form[$id]['req'], 'description'=>$form[$id]['descr'], 'hasError'=>$hasError ]) @component('admin.components.form_error_msg', ['hasError'=>$hasError]){{ $errors->first($id) }}@endcomponent @endcomponent
@php $id = 'campaign_duration'; $hasError = $errors->has($id) @endphp @component('admin.components.form_field_100', ['label'=>$form[$id]['label'], 'required'=>$form[$id]['req'], 'description'=>$form[$id]['descr'], 'description_alt' =>$form[$id]['descr_alt'], 'hasError'=>$hasError ])
to
@component('admin.components.form_error_msg', ['hasError'=>$hasError]){{ $errors->first($id) }}@endcomponent @endcomponent @php $id = 'campaign_end_msg'; $hasError = $errors->has($id) @endphp @component('admin.components.form_field_100', ['label'=>$form[$id]['label'], 'required'=>$form[$id]['req'], 'description'=>$form[$id]['descr'], 'hasError'=>$hasError ]) @component('admin.components.form_error_msg', ['hasError'=>$hasError]){{ $errors->first($id) }}@endcomponent @endcomponent
@php $id = 'reward_marketplace_validity'; $hasError = $errors->has($id); $special_space = '
'.str_repeat("  ", 250).'
'.str_repeat("  ", 100).'
'; @endphp @component('admin.components.form_field_100', ['label'=>$form[$id]['label'], 'required'=>$form[$id]['req'], 'description'=>$form[$id]['descr'], 'description_alt' =>$form[$id]['descr_alt'].$special_space, 'hasError'=>$hasError ])
to
@component('admin.components.form_error_msg', ['hasError'=>$hasError]){{ $errors->first($id) }}@endcomponent @endcomponent @php $id = 'campaign_redeem_end_msg'; $hasError = $errors->has($id) @endphp @component('admin.components.form_field_100', ['label'=>$form[$id]['label'], 'required'=>$form[$id]['req'], 'description'=>$form[$id]['descr'], 'hasError'=>$hasError ]) @component('admin.components.form_error_msg', ['hasError'=>$hasError]){{ $errors->first($id) }}@endcomponent @endcomponent

@php $is_pre_campaign_game = config('sys.IS_PRE_CAMPAIGN_GAME'); @endphp @component('admin.components.card', ['collapse' => true, 'collapse_expand'=> $is_pre_campaign_game, 'header'=> 'Additional Settings', 'class'=>$inner_class]) @php $id = 'is_pre_campaign_game'; $hasError = $errors->has($id) @endphp @component('admin.components.form_field_100', ['label'=>'', 'required'=>$form[$id]['req'], 'hasError'=>$hasError ])

{!! $form[$id]['descr'] !!}
@component('admin.components.form_error_msg', ['hasError'=>$hasError]){{ $errors->first($id) }}@endcomponent @endcomponent @php $id = 'campaign_start_msg'; $hasError = $errors->has($id) @endphp @component('admin.components.form_field_50', ['label'=>$form[$id]['label'], 'required'=>$form[$id]['req'], 'description'=>$form[$id]['descr'], 'hasError'=>$hasError, 'class'=> $is_pre_campaign_game ? '' : 'd-none' ]) @component('admin.components.form_error_msg', ['hasError'=>$hasError]){{ $errors->first($id) }}@endcomponent @endcomponent @endcomponent @endcomponent @component('admin.components.card', ['header'=>'Site Images']) @php $id = 'social_share'; $hasError = $errors->has($id) @endphp @component('admin.components.form_field_50', ['help'=>'campaign_social_share','label'=>$form[$id]['label'], 'required'=>$form[$id]['req'], 'description'=>$form[$id]['descr'], 'hasError'=>$hasError ])
@component('admin.components.form_error_msg', ['hasError'=>$hasError]){{ $errors->first($id) }}@endcomponent @endcomponent @php $id = 'site_icon'; $hasError = $errors->has($id) @endphp @component('admin.components.form_field_50', ['help'=>'campaign_site_icon', 'label'=>$form[$id]['label'], 'required'=>$form[$id]['req'], 'description'=>$form[$id]['descr'], 'hasError'=>$hasError ])
@php $sizes = [ //16, 32, 128, 144,]; $sizes = array_reverse($sizes); @endphp @foreach($sizes as $size) @endforeach
@component('admin.components.form_error_msg', ['hasError'=>$hasError]){{ $errors->first($id) }}@endcomponent @endcomponent @endcomponent @component('admin.components.card',['header'=>'Campaign Styling', 'help'=>'campaign_style']) {{-- PREVIEW --}}
{{-- --}}
Campaign Name
Sign up now
@php $id = 'logo_type'; $hasError = $errors->has($id) @endphp @component('admin.components.form_field', ['class'=>'col-sm-12','label'=>$form[$id]['label'], 'required'=>$form[$id]['req'], 'description'=>$form[$id]['descr'], 'hasError'=>$hasError ])
@foreach( $form[$id]['input'] as $gid => $name)
first? 'checked':''}}>
@endforeach
@component('admin.components.form_error_msg', ['hasError'=>$hasError]){{ $errors->first($id) }}@endcomponent @endcomponent
@php $id = 'theme_color'; $hasError = $errors->has($id) @endphp @component('admin.components.form_field', ['class'=>'col-sm-12','label'=>$form[$id]['label'], 'required'=>$form[$id]['req'], 'description'=>$form[$id]['descr'], 'hasError'=>$hasError ])
@component('admin.components.form_error_msg', ['hasError'=>$hasError]){{ $errors->first($id) }}@endcomponent @endcomponent @php $id = 'text_color'; $hasError = $errors->has($id) @endphp @component('admin.components.form_field', ['class'=>'col-sm-12','label'=>$form[$id]['label'], 'required'=>$form[$id]['req'], 'description'=>$form[$id]['descr'], 'hasError'=>$hasError ])
@component('admin.components.form_error_msg', ['hasError'=>$hasError]){{ $errors->first($id) }}@endcomponent @endcomponent

@php $id = 'masthead_image'; $hasError = $errors->has($id) @endphp @component('admin.components.form_field', ['help'=>'campaign_masthead','class'=>'col-sm-6','label'=>$form[$id]['label'], 'required'=>$form[$id]['req'], 'description'=>$form[$id]['descr'], 'hasError'=>$hasError ])
{{--  --}}
@component('admin.components.form_error_msg', ['hasError'=>$hasError]){{ $errors->first($id) }}@endcomponent @endcomponent @php $id = 'popup_masthead_image'; $hasError = $errors->has($id) @endphp @component('admin.components.form_field', ['help'=>'campaign_masthead','class'=>'col-sm-6','label'=>$form[$id]['label'], 'required'=>$form[$id]['req'], 'description'=>$form[$id]['descr'], 'hasError'=>$hasError ])
{{--  --}}
@component('admin.components.form_error_msg', ['hasError'=>$hasError]){{ $errors->first($id) }}@endcomponent @endcomponent
{{-- --}} @php $id = 'background_img'; $hasError = $errors->has($id) @endphp @component('admin.components.form_field_100', ['class'=>'px-0', 'label'=>$form[$id]['label'].' - Image', 'required'=>$form[$id]['req'], 'description'=>$form[$id]['descr'], 'hasError'=>$hasError ])
@component('admin.components.form_error_msg', ['hasError'=>$hasError]){{ $errors->first($id) }}@endcomponent @endcomponent @php $id = 'background_color'; $hasError = $errors->has($id) @endphp @component('admin.components.form_field_100', ['class'=>'px-0', 'label'=>$form[$id]['label'].' - Solid', 'required'=>$form[$id]['req'], 'description'=>$form[$id]['descr'], 'hasError'=>$hasError ])
@component('admin.components.form_error_msg', ['hasError'=>$hasError]){{ $errors->first($id) }}@endcomponent @endcomponent
{{-- --}} @php $id = 'popup_img'; $hasError = $errors->has($id) @endphp @component('admin.components.form_field_100', ['class'=>'px-0', 'label'=>$form[$id]['label'].' - Image', 'required'=>$form[$id]['req'], 'description'=>$form[$id]['descr'], 'hasError'=>$hasError ])
@component('admin.components.form_error_msg', ['hasError'=>$hasError]){{ $errors->first($id) }}@endcomponent @endcomponent @php $id = 'popup_background'; $hasError = $errors->has($id) @endphp @component('admin.components.form_field_100', ['class'=>'px-0', 'label'=>$form[$id]['label'].' - Solid', 'required'=>$form[$id]['req'], 'description'=>$form[$id]['descr'], 'hasError'=>$hasError ])
@component('admin.components.form_error_msg', ['hasError'=>$hasError]){{ $errors->first($id) }}@endcomponent @endcomponent

@php $id = 'cta_font_color'; $hasError = $errors->has($id) @endphp @component('admin.components.form_field_50', ['label'=>$form[$id]['label'], 'required'=>$form[$id]['req'], 'description'=>$form[$id]['descr'], 'hasError'=>$hasError ])
@component('admin.components.form_error_msg', ['hasError'=>$hasError]){{ $errors->first($id) }}@endcomponent @endcomponent
{{-- --}}
@php $id = 'cta_background'; $hasError = $errors->has($id) @endphp @component('admin.components.form_field_100', ['class'=>'px-0', 'label'=>$form[$id]['label'].' - Solid', 'required'=>$form[$id]['req'], 'description'=>$form[$id]['descr'], 'hasError'=>$hasError ]) {{-- --}}
@component('admin.components.form_error_msg', ['hasError'=>$hasError]){{ $errors->first($id) }}@endcomponent @endcomponent
@endcomponent @component('admin.components.card', ['header'=>'Footer'])
@php $id = 'footer_font_color'; $hasError = $errors->has($id) @endphp @component('admin.components.form_field', ['class'=>'col-sm-12','label'=>$form[$id]['label'], 'required'=>$form[$id]['req'], 'description'=>$form[$id]['descr'], 'hasError'=>$hasError ])
@component('admin.components.form_error_msg', ['hasError'=>$hasError]){{ $errors->first($id) }}@endcomponent @endcomponent
{{-- --}}
@php $id = 'footer_background'; $hasError = $errors->has($id) @endphp @component('admin.components.form_field_100', ['class'=>'px-0', 'label'=>$form[$id]['label'].' - Solid', 'required'=>$form[$id]['req'], 'description'=>$form[$id]['descr'], 'hasError'=>$hasError ]) {{-- --}}
@component('admin.components.form_error_msg', ['hasError'=>$hasError]){{ $errors->first($id) }}@endcomponent @endcomponent
@php $id = 'footer_campaign_license'; $hasError = $errors->has($id) @endphp @component('admin.components.form_field', ['class'=>'col-sm-12 mt-2','label'=>$form[$id]['label'], 'required'=>$form[$id]['req'], 'description'=>$form[$id]['descr'], 'hasError'=>$hasError ]) @component('admin.components.form_error_msg', ['hasError'=>$hasError]){{ $errors->first($id) }}@endcomponent @endcomponent
{{-- @php $id = 'footer_background'; $hasError = $errors->has($id) @endphp--}} {{-- @component('admin.components.form_field', ['class'=>'col-sm-6','label'=>$form[$id]['label'], 'required'=>$form[$id]['req'], 'description'=>$form[$id]['descr'], 'hasError'=>$hasError ])--}} {{--
--}} {{-- --}} {{--
--}} {{-- --}} {{--
--}} {{--
--}} {{-- @component('admin.components.form_error_msg', ['hasError'=>$hasError]){{ $errors->first($id) }}@endcomponent--}} {{-- @endcomponent--}} @php $id = 'footer_contact_email'; $hasError = $errors->has($id) @endphp @component('admin.components.form_field', ['class'=>'col-sm-12','label'=>$form[$id]['label'], 'required'=>$form[$id]['req'], 'description'=>$form[$id]['descr'], 'hasError'=>$hasError ]) @component('admin.components.form_error_msg', ['hasError'=>$hasError]){{ $errors->first($id) }}@endcomponent @endcomponent @php $id = 'footer_facebook_link'; $hasError = $errors->has($id) @endphp @component('admin.components.form_field', ['class'=>'col-sm-12','label'=>$form[$id]['label'], 'required'=>$form[$id]['req'], 'description'=>$form[$id]['descr'], 'hasError'=>$hasError ]) @component('admin.components.form_error_msg', ['hasError'=>$hasError]){{ $errors->first($id) }}@endcomponent @endcomponent @php $id = 'footer_instagram_link'; $hasError = $errors->has($id) @endphp @component('admin.components.form_field', ['class'=>'col-sm-12','label'=>$form[$id]['label'], 'required'=>$form[$id]['req'], 'description'=>$form[$id]['descr'], 'hasError'=>$hasError ]) @component('admin.components.form_error_msg', ['hasError'=>$hasError]){{ $errors->first($id) }}@endcomponent @endcomponent @php $id = 'footer_linkedin_link'; $hasError = $errors->has($id) @endphp @component('admin.components.form_field', ['class'=>'col-sm-12','label'=>$form[$id]['label'], 'required'=>$form[$id]['req'], 'description'=>$form[$id]['descr'], 'hasError'=>$hasError ]) @component('admin.components.form_error_msg', ['hasError'=>$hasError]){{ $errors->first($id) }}@endcomponent @endcomponent
@endcomponent