{!! Form::label('data[Event][name]', t('Name')) !!} {!! Form::text( 'data[Event][name]', (isset($data->Event->name) ? $data->Event->name : null), [ 'placeholder' => t('Event Name'), 'data-error' => t('This field is required'), 'class' => 'form-control', ] ) !!}
@if (isset($errors->Event->name)) {{ $errors->Event->name[0] }} @endif
{!! Form::label('data[Event][description]', t('Description')) !!} {!! Form::textarea( 'data[Event][description]', (isset($data->Event->description) ? $data->Event->description : null), [ 'placeholder' => t('Description'), 'data-error' => t('This field is required'), 'class' => 'form-control description-field emojieditor', ] ) !!}
@if (isset($errors->Event->description)) {{ $errors->Event->description[0] }} @endif
@if ($venue->type == 'Promoter')
{!! Form::label('data[Event][promoter_venue_id]', t('Venue')) !!} {!! Form::text( 'data[Event][promoter_venue_id]', (isset($data->Event->promoter_venue_id) ? $data->Event->promoter_venue_id : null), [ 'placeholder' => t('Type venue where the event will happen'), 'data-error' => t('This field is required'), 'class' => 'form-control autocomplete picker input-block', 'required', 'data-url' => action( 'SearchController@index.hson', ['query' => [ 'suggestions' => 0, 'template' => 'autocomplete.venues.short', 'limit' => 5, 'no-collections', 'filter[object]' => ['Venue'] ]] ), 'data-value' => (isset($data->Event->PromoterVenue->name) ? $data->Event->PromoterVenue->name . ( isset($data->Event->PromoterVenue->Location->name) ? ', ' . $data->Event->PromoterVenue->Location->name : null ) : null ) ] ) !!}
@if (isset($errors->Venue->location_id)) {{ $errors->Venue->location_id[0] }} @endif
@endif
{!! Form::label('data[Event][date]', t('Date')) !!} {!! Form::text( 'data[Event][date]', (isset($data->Event->date) ? $data->Event->date : null), [ 'placeholder' => t('Date'), 'data-error' => t('This field is required'), 'class' => 'form-control datepicker', 'required' ] ) !!}
@if (isset($errors->Event->date)) {{ $errors->Event->date[0] }} @endif
@if (isset($settings->content->tiers) && $settings->content->tiers)
{!! Form::label('data[Event][tier]', t('Tier')) !!} {!! Form::select( 'data[Event][tier]', numbers(['min' => 1, 'max' => 5]), (isset($data->Event->tier) ? $data->Event->tier : null) ) !!}
@endif
{!! Form::label('data[Event][deadline]', t('Sales Deadline')) !!} {!! Form::select( 'data[Event][deadline]', array_merge(['' => t('Sales Deadline')], times()), (isset($data->Event->deadline) ? $data->Event->deadline : null), [ 'class' => 'form-control' ] ) !!}
@if (isset($errors->Event->deadline)) {{ $errors->Event->deadline[0] }} @endif
{!! Form::label('data[Event][terms]', t('Event\'s terms and Conditions')) !!} {!! Form::textarea( 'data[Event][terms]', (isset($data->Event->terms) ? $data->Event->terms : null), [ 'placeholder' => t('Terms & Conditions'), 'class' => 'form-control description-field', ] ) !!}
@if (isset($errors->Event->terms)) {{ $errors->Event->terms[0] }} @endif
@if (isset($settings->content->external_payment_link) && $settings->content->external_payment_link)
{!! Form::label('data[Event][external_payment_link]', t('External Payment Link')) !!} {!! Form::text( 'data[Event][external_payment_link]', (isset($data->Event->external_payment_link) ? $data->Event->external_payment_link : null), [ 'placeholder' => t('URL'), 'class' => 'form-control' ] ) !!}
@if (isset($errors->Event->external_payment_link)) {{ $errors->Event->external_payment_link[0] }} @endif
@endif
{{-- @if (!isset($data->Event->id) || is_admin())
{!! Form::label('data[Event][recurring_weeks]', t('Recurring Event')) !!}
{!! Form::checkbox( 'data[Event][recuring]', 1, (isset($data->Event->recurring) ? $data->Event->recurring : false), [ 'class' => '' ] ) !!} {!! Form::number( 'data[Event][recurring_weeks]', (isset($data->Event->recurring_weeks) ? $data->Event->recurring_weeks : null), [ 'placeholder' => t('Weeks'), 'class' => 'form-control' ] ) !!}
@if (isset($errors->Event->recurring_weeks)) {{ $errors->Event->recurring_weeks[0] }} @endif
@endif --}}
@if (is_admin())

@t('Admin Options')

{!! Form::label('data[Event][popup_type]', t('Popup Style')) !!} {!! Form::select( 'data[Event][popup_type]', [ '' => t('Disabled'), 'warning' => t('Warning (Orange)'), 'danger' => t('Danger (Red)'), 'info' => t('Info (Blue)') ], (isset($data->Event->popup_type) ? $data->Event->popup_type : null), ['class' => 'form-control'] ) !!}
{!! Form::label('data[Event][popup]', t('Popup text')) !!} {!! Form::textarea( 'data[Event][popup]', (isset($data->Event->popup) ? $data->Event->popup : null), ['class' => 'form-control'] ) !!}
@if (isset($errors->Event->popup)) {{ $errors->Event->popup[0] }} @endif
@endif