@include('flash::message')
{!! Form::open(['novalidate' => 'novalidate' , 'onsubmit' => isset($isClone) ? 'return cloneNotification(this);' : 'return saveNotification(this);' , 'id' => 'notificationForm']) !!}
@if(isset($notification))
@endif
{!! Form::label('campaign_name','Campaign Name') !!}
{!! Form::text('campaign_name' , @$notification->campaign_name , ['class' => 'form-control','placeholder' => 'Campaign Name','required'=>'true']) !!}
{!! Form::label('title','Notification Title') !!}
{!! Form::text('title' , @$notification->title , ['class' => 'form-control','placeholder' => 'Notification Title','required'=>'true']) !!}
{!! Form::label('description','Notification Description') !!}
{!! Form::text('description' , @$notification->description , ['class' => 'form-control','placeholder' => 'Notification Description','required'=>'true']) !!}
{{--
--}}
{!! Form::label('action','Action') !!}
{!! Form::select('action', ['' => 'Select', 'product' => 'Product', 'product_group' => 'Product Group', 'category' => 'Category', 'coupon' => 'Coupon', 'cart' => 'Cart', 'url' => 'URL'] , @$notification->action , ['class' => 'form-control action','id' => 'action']) !!}
{!! Form::label('action_label','Action Label') !!}
{!! Form::text('action_label' , @$settings['action_text'] ?? 'View Product' , ['class' => 'form-control actionLabel','placeholder' => 'Action Label','required' => 'true']) !!}
{!! Form::label('action_value','Action') !!}
{!! Form::select('action_value', isset($actionData) ? $actionData : [] , @$settings['action_value'] , ['class' => 'form-control actionOptions','id' => 'actionOptions', 'style' => 'display:'.$showActionOptions.' width:100%' , 'multiple' => false]) !!}
{!! Form::text('action_value_text' , @$settings['action_value'] ?? '' , ['class' => 'form-control','required'=>'true', 'id' => 'actionText', 'style' => 'display: '.$showActionInput ]) !!}
| Type |
Action |
{{-- @if(!empty($notificationRules))--}}
@include('Website::mobile-setting.push-notifications.user-rule-listing')
{{-- @endif--}}
{{--
{!! Form::label('users','Users') !!}
{!! Form::select('users', $userList , @$notification->users , ['class' => 'form-control','id' => 'userList']) !!}
{!! Form::label('role_id','User Roles') !!}
{!! Form::select('role_id', isset($roles) ? $roles : [] , @$settings['role_id'] , ['class' => 'form-control','id' => 'userOptions', 'style' => 'display:'.@$notification && @$notification->users == 'user_roles' ? 'block' : 'none' ]) !!}
--}}
{!! Form::label('when','When') !!}
{!! Form::select('when', ['now' => 'Now', 'select_time' => 'Select Time'] , @$notification->when , ['class' => 'form-control','id' => 'schedule']) !!}
Try Notifiaction
{{--
--}}
{!! Form::close() !!}