@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 ])
preview
@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
@endsection