@extends('layouts.app') @section('title', ($popup->id > 0 ? 'Edit Popup' : 'Add Popup').' | Popup') @section('extrastyles') @endsection @section('content')
{!! Form::open(['novalidate' => 'novalidate', 'onsubmit' => 'return savePopup(this);']) !!}
{{ $popup->id > 0 ? 'Edit Popup' : 'Add Popup' }}
{{--
--}} {{-- --}} {{-- --}} {{-- --}} {{--
--}}
@include('flash::message')
@if(isset($popup->id)) {!! Form::label('shop_referral_link','Trigger URL') !!}
{!! Form::text('custom_popup_link' , '/custom-popup/'.$popup->id , ['class' => 'form-control custom_popup_url' ,'readonly' => true]) !!}
@endif
{!! Form::label('title','Title') !!} {!! Form::text('title' , $popup->title , ['class' => 'form-control','placeholder' => 'Title','required'=>'true']) !!}
{!! Form::label('description','Description') !!} {!! RTEForm::rte('content', $popup->content) !!}
{!! Form::label('pop_up_show_time', 'Popup Show Time') !!} {!! Form::select('pop_up_show_time', ['Select Time Popup','immediately'=>'Immediately','x_number'=>'After X number of seconds'], isset($extras->pop_up_show_time) ? $extras->pop_up_show_time : 'immediately' , ['class' => 'form-control automatic', 'style' => 'width:100%;']) !!}
{!! Form::number('number_of_second' , isset($extras->number_of_second) ? $extras->number_of_second : '' , ['class' => 'form-control number_of_second','placeholder' => 'No Of Seconds', 'style' => 'display:none;']) !!}
{!! Form::label('role', 'Role') !!} {!! Form::select('role[]', $bRoles, isset($extras->roles) ? $extras->roles : ['all'] , ['class' => 'form-control select_roles', 'id' => 'select_roles', 'multiple', 'style' => 'width:100%;']) !!}
{!! Form::label('country', 'Country') !!} {!! Form::select('country[]', $bCountries, isset($extras->countries) ? $extras->countries : ['all'] , ['class' => 'form-control select_select2', 'id' => 'select_select2', 'multiple', 'style' => 'width:100%;']) !!}
{!! Form::label('language', 'Language') !!} {!! Form::select('language[]', $bLanguages, isset($extras->languages) ? $extras->languages : ['all'], ['class' => 'form-control select_language', 'multiple', 'style' => 'width:100%;']) !!}
{!! Form::label('show_popup', 'Show PopUp') !!} {!! Form::select('show_popup', ['Select Show popup','main'=>'Main Site','replicated'=>'Replicated','both' => 'Both'], isset($extras->show_popup) ? $extras->show_popup : 'both' , ['class' => 'form-control automatic', 'style' => 'width:100%;']) !!}
{!! Form::label('pages', 'Page') !!} {!! Form::select('pages[]', $pages, isset($bPages) != '' ? $bPages : ['all'], ['class' => 'form-control select_page', 'multiple', 'style' => 'width:100%;']) !!}
{!! Form::close() !!}
@endsection @section('footer') @endsection