@extends('layouts.admin') @section('style') @parent @include('admin.components.create_voucher_series_style') @endsection @section('script') @include('admin.components.create_voucher_series_script', ['voucher_series',$voucher_series]) @endsection @section('content') @php $step = '2' @endphp @component('admin.components.step_form_pages', ['post_url'=>$post_url, 'type'=>'voucher', 'voucher_series'=>$voucher_series, 'title'=> config('admin.create_voucher')['step_2']['title'] , 'step'=>'2' ]) @php $form = config('admin.new_voucher')@endphp @php $id = 'tc_link'; $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 @if (config('sys.platform_type') == 'gamification' || isHybridVoucherPlatform()) @php $id = 'marketplace_voucher'; $hasError = $errors->has($id); $marketplace_voucher = session()->hasOldInput("{$id}_checkbox") ? ['token' => old('marketplace_voucher')] : ($errors->has('sms_template') ? null : $marketplace_voucher); @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 @endif @php $id = 'contact_details'; $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, 'class' => "row-{$id}"])
@foreach( [ 'req_name'=>'Name','req_email'=>'Email','req_mobile'=>'Mobile' ] as $id => $checkname)
@endforeach
@component('admin.components.form_error_msg', ['hasError'=>$hasError]){{ $errors->first($id) }}@endcomponent @endcomponent @php $id = 'notification'; $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, 'class' => "row-{$id}"]) @foreach( ['notif_sms'=>'SMS','notif_email'=>'Email (coming soon!)'] as $id => $checkname)
@endforeach @component('admin.components.form_error_msg', ['hasError'=>$hasError]){{ $errors->first($id) }}@endcomponent @endcomponent
@php $id = 'email_template'; $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 @component('admin.components.form_field_100', ['label'=>'', 'required'=>false , 'hasError'=>$errors->has('sms_template') ])
Cap at 1 Email per unique user daily (even if user downloads multiple vouchers per day) @endcomponent
@php $id = 'sms_template'; $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 ])
@isset($sms_variables) @foreach($sms_variables as $key => $variable) {{$variable}} @endforeach @endisset
@component('admin.components.form_error_msg', ['hasError'=>$hasError]){{ $errors->first($id) }}@endcomponent @endcomponent @component('admin.components.form_field_100', ['label'=>'', 'required'=>false , 'hasError'=>$errors->has('sms_template') ])
Cap at 1 SMS per unique user daily (even if user downloads multiple vouchers per day) @endcomponent
@slot('footer_back') url(), 0, -1).((int)$step-1) }} class="btn btn-default">Back @endslot @slot('footer_next') @if($voucher_series['series_id']) @else @endif @endslot @endcomponent @endsection