@extends(isset($event_info) ? (is_null($event_info['is_draft']) ? 'index' : ($event_info['is_draft'] == 0 ? 'index-left-sidebar' : 'index')) : 'index') @section('content') @if(isset($event_info)) @if($event_info['is_draft'] == 0)
@endif @endif

@if(isset($event_info)) @if($event_info['name']) {{ $event_info['name'] }} @endif @else Create Event @endif

@if(!empty($event_code)) {{ Form::open(array('url' => getenv('APP_URL') . '/events/'. $event_code .'/create/registration' , 'class' => 'tab-content form-horizontal form-bordered krik-event-info', 'id' => 'main')) }} @else {{ Form::open(array('url' => getenv('APP_URL') . '/events/create/registration' , 'class' => 'tab-content form-horizontal form-bordered krik-event-info', 'id' => 'main')) }} @endif {{ Form::hidden('hash', $hash, array('id' => 'hash')) }}

1. Name

{{ Form::label('event_name', 'Event Name', array('class' => 'control-label')) }} @if(isset($event_info)) {{ Form::text('event_name',$event_info['name'], array('class' => 'form-control')) }} @else {{ Form::text('event_name',null, array('class' => 'form-control')) }} @endif

2. Dates

{{ Form::label('Time zone of event',null, array('class' => 'control-label')) }} {{ Form::label('event_date','Event time', array('class' => 'control-label')) }} @if(isset($event_info)) {{ Form::text('event_date',$event_info['start_ts'].' - '.$event_info['end_ts'], array('id'=>'date','class' => 'form-control input-sm','placeholder' => 'MM/DD/YYYY')) }} @else {{ Form::text('event_date',null, array('id'=>'date','class' => 'form-control input-sm','placeholder' => 'MM/DD/YYYY')) }} @endif

3. Description

{{ Form::label('Description',null, array('class' => 'control-label')) }} @if(isset($event_info)) {{ Form::textarea('event_description',$event_info['description'], array('class' => 'form-control','placeholder' => 'Here goes description of Your event', 'size'=>'30x5')) }} @else {{ Form::textarea('event_description',null, array('class' => 'form-control','placeholder' => 'Here goes description of Your event', 'size'=>'30x5')) }} @endif

4. Type

@if(isset($event_info)) @if($event_info['type'] == 'physical') {{ Form::radio('event_type','physical',true,['id' => 'event_type_physical']) }} @else {{ Form::radio('event_type','physical',false,['id' => 'event_type_physical']) }} @endif @else {{ Form::radio('event_type','physical',false,['id' => 'event_type_physical']) }} @endif {{ Form::label('event_type_physical','Event on a physical venue',null) }}
@if(isset($event_info)) @if($event_info['type'] == 'online') {{ Form::radio('event_type','online',true,['id' => 'event_type_online']) }} @else {{ Form::radio('event_type','online',false,['id' => 'event_type_online']) }} @endif @else {{ Form::radio('event_type','online',false,['id' => 'event_type_online']) }} @endif {{ Form::label('event_type_online','Online event',null) }}
Webinar, Online Meeting, Online Training...

5. Access

@if(isset($event_info)) @if($event_info['access'] == 'public') {{ Form::radio('access','public',true,['id' => 'access-public']) }} @else {{ Form::radio('access','public',false,['id' => 'access-public']) }} @endif @else {{ Form::radio('access','public',false,['id' => 'access-public']) }} @endif {{ Form::label('access-public','Public Event',null) }}
Everyone with a link can register.
@if(isset($event_info)) @if($event_info['access'] == 'private') {{ Form::radio('access','private',true,['id' => 'access-private']) }} @else {{ Form::radio('access','private',false,['id' => 'access-private']) }} @endif @else {{ Form::radio('access','private',false,['id' => 'access-private']) }} @endif {{ Form::label('access-private','Private/Invite Only Event',null) }}
Only Person with direct invitation can register.

6. Language

@if(isset($event_info)) @if($event_info['lang'] == 'en') {{ Form::radio('lang','en',true,['id' => 'lang-en']) }} @else {{ Form::radio('lang','en',false,['id' => 'lang-en']) }} @endif @else {{ Form::radio('lang','en',true,['id' => 'lang-en']) }} @endif {{ Form::label('lang-en','English',null) }}
@if(isset($event_info)) @if($event_info['lang'] == 'hr') {{ Form::radio('lang','hr',true,['id' => 'lang-hr']) }} @else {{ Form::radio('lang','hr',false,['id' => 'lang-hr']) }} @endif @else {{ Form::radio('lang','hr',false,['id' => 'lang-hr']) }} @endif {{ Form::label('lang-hr','Croatian',null) }}
@if(WSPAY)

7. Payment

@if(isset($event_info)) @if($event_info['wspay']) @else @endif @else @endif {{ Form::label('wspay', 'WSPay', null) }}
@endif
{{Form::close()}}
@if(isset($event_info)) @if($event_info['is_draft'] == 0) @endif @endif {!! JsValidator::formRequest('App\Http\Requests\Events\Create\EventInfo') !!} @endsection