@extends('layouts.admin')
@php
$form = config('admin.create_popup');
$module_inputs = $form['modules']['input'];
@endphp
@section('style')
@parent
@endSection
@section('script')
@parent
@endSection
@section('content')
@component('admin.components.step_form_pages', [
'post_url'=>'',
'type'=>'popup',
'title'=> 'Popup Details',
'all_pages' =>['Popup Details', 'Display Conditions'],
'step'=> '1',
])
@php $id = 'name'; $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 = 'popup_to_show'; $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 ])
@endcomponent
@php $id = 'popup_target'; $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 ])
@endcomponent
@php $id = 'image_url'; $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 = 'title'; $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 = 'subtitle'; $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 = 'cta'; $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 = 'cta_popup'; $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 ])
@endcomponent
@php $id = 'cta_popup_target'; $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 ])
@endcomponent
@component('admin.components.dynamic_form_fields', [
'id'=>'automate_action',
'label'=>'Automated Actions',
'wrapperClass' =>'bg-light border rounded py-2',
'tdClass'=>'d-flex align-items-center flex-column p-0 pb-2',
'addCtaCopy'=> 'Add Action',
'addCtaClass'=>'ml-2', 'delCtaClass'=>'',
'minRows'=>0, 'maxRows'=>1, 'initRows'=>1,
])
@php $id = 'automate_action_type'; $hasError = $errors->has($id) @endphp
@component('admin.components.form_field', [ 'class'=> 'col-12 mb-0', '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 = 'automate_action_value'; $hasError = $errors->has($id) @endphp
@component('admin.components.form_field', [ 'class'=>'col-12 mb-0', '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
@slot('footer_back')@endslot
@slot('footer_next')
Next Step
@endslot
@endcomponent
@component('admin.components.step_form_pages',
[ //'post_url'=>$post_url,
'post_url'=>'',
'type'=>'popup',
'title'=> 'Display Conditions',
'all_pages' =>['Popup Details', 'Display Conditions'],
'step'=> '2',
])
@php $id = 'popup_destination'; $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 ])
@endcomponent
@php $id = 'popup_appear_times'; $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 ])
@endcomponent
@php $id = 'modules'; $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 ])
@endcomponent
@php $id = 'event_occurrence_opt'; $hasError = $errors->has($id) @endphp
@php $id = 'event_has_done'; $hasError = $errors->has($id) @endphp
@component('admin.components.form_field', ['class'=>'col-sm-4','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 = 'blast_trigger_event_is_category'; $hasError = $errors->has($id) @endphp
@component('admin.components.form_field', ['class'=>'col-sm-12 mb-0','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 = 'event_type_id'; $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 = 'event_category_id'; $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 = 'event_occurrence_opt'; $hasError = $errors->has($id) @endphp
@component('admin.components.form_field', ['class'=>'col-sm-4','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 = 'event_occurrence'; $hasError = $errors->has($i.'_'.$id) @endphp
@component('admin.components.form_field', ['class'=>'col-sm-8','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 = 'show_after_date'; $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
@component('admin.components.dynamic_form_fields', [
'id'=>'reward_mechanisms_table',
'label'=>'Reward Mechanisms',
'wrapperClass' =>'',
'tdClass'=> 'row align-items-center p-0 pb-2',
'addCtaCopy'=> 'Add Filter',
'addCtaClass'=>'ml-2', 'delCtaClass'=>'',
'minRows'=>1, 'maxRows'=>6, 'initRows'=>1,
])
@php $id = 'reward_mechanism_status'; $hasError = $errors->has($id) @endphp
@component('admin.components.form_field', [ 'class'=> 'col-6 col-md-3 mb-0', '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_mechanism_opt'; $hasError = $errors->has($id) @endphp
@component('admin.components.form_field', [ 'class'=> 'col-6 col-md-3 mb-0', '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_mechanism_count'; $hasError = $errors->has($id) @endphp
@component('admin.components.form_field', [ 'class'=>'col-6 col-md-3 mb-0', '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_mechanism_type'; $hasError = $errors->has($id) @endphp
@component('admin.components.form_field', [ 'class'=> 'col-6 col-md-3 mb-0', '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
@php $id = 'voucher_series'; $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 = 'voucher_status'; $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 = 'voucher_downloaded_opt'; $hasError = $errors->has($id) @endphp
@component('admin.components.form_field', ['class'=>'col-sm-4','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 = 'voucher_downloaded'; $hasError = $errors->has($i.'_'.$id) @endphp
@component('admin.components.form_field', ['class'=>'col-sm-8 pr-0','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 = 'voucher_series_exclusion'; $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
@slot('footer_back')
Back
@endslot
@slot('footer_next')
{{-- @if (!$account->is_agency && havePermissionByEntityKey('BLAST_BTN_CREATE_SCHEDULE'))--}}
Save
{{-- @endif--}}
@endslot
@endcomponent
@endsection