{!! 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]', emoji2unicode(html((isset($data->Event->description) ? $data->Event->description : null))), [ 'placeholder' => t('Description'), 'data-error' => t('This field is required'), 'class' => 'form-control description-field wysiwyg', ] ) !!}
@if (isset($errors->Event->description)) {{ $errors->Event->description[0] }} @endif
{!! Form::label('data[Event][genre]', t('Genre')) !!} {!! Form::text( 'data[Event][genre]', (isset($data->Event->genre) ? $data->Event->genre : null), [ 'class' => 'form-control', ] ) !!}
@if (isset($errors->Event->genre)) {{ $errors->Event->genre[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][type_of_night]', t('Type of event')) !!} @if (isset($settings->content->event_categories) && $settings->content->event_categories)
@foreach (array_filter(explode("\n", $settings->content->event_categories)) as $category)
@endforeach
@else {!! Form::text( 'data[Event][type_of_night]', (isset($data->Event->type_of_night) ? $data->Event->type_of_night : null), [ 'class' => 'form-control', ] ) !!}
@if (isset($errors->Event->type_of_night)) {{ $errors->Event->type_of_night[0] }} @endif
@endif
@if (isset($zones) && $zones)
{!! Form::label('data[Event][zone_id]', t('Zone')) !!} {!! Form::select( 'data[Event][zone_id]', $zones, (isset($data->Event->zone_id) ? $data->Event->zone_id : null), [ 'class' => 'form-control', 'empty' => true ] ) !!}
@endif
{!! Form::label('data[Event][external_event_id]', t('External ID')) !!} {!! Form::text( 'data[Event][external_event_id]', (isset($data->Event->external_event_id) ? $data->Event->external_event_id : null), [ 'class' => 'form-control', ] ) !!}
@if (isset($errors->Event->external_event_id)) {{ $errors->Event->external_event_id[0] }} @endif
{!! Form::label('data[Event][Photo]', t('Event\'s Photo')) !!}
{!! Form::file( 'data[Event][Photo]', [ 'class'=>'btn btn-default image-uploader background', 'data-button'=>__('Upload an image'), 'value' => (isset($data->Event->Photo) ? oa($data->Event->Photo) : null) ] ) !!}
{!! Form::label('data[Event][Cover]', t('Event\'s Cover')) !!}
{!! Form::file( 'data[Event][Cover]', [ 'class'=>'btn btn-default image-uploader background', 'data-button'=>__('Upload an image'), 'value' => (isset($data->Event->Cover) ? oa($data->Event->Cover) : null) ] ) !!}
@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
{!! Form::label('data[Event][end_date]', t('End Date')) !!} {!! Form::text( 'data[Event][end_date]', (isset($data->Event->end_date) ? $data->Event->end_date : null), [ 'placeholder' => t('End Date'), 'class' => 'form-control datepicker', ] ) !!}
@if (isset($errors->Event->end_date)) {{ $errors->Event->end_date[0] }} @endif
{!! Form::label('data[Event][start_time]', t('Start Time')) !!} {!! Form::select( 'data[Event][start_time]', array_merge(['' => t('Event Start time')], times(['step' => 5])), (isset($data->Event->start_time) ? $data->Event->start_time : null), [ 'data-error' => t('This field is required'), 'class' => 'form-control', ] ) !!}
@if (isset($errors->Event->start_time)) {{ $errors->Event->start_time[0] }} @endif
{!! Form::label('data[Event][end_time]', t('Finish Time')) !!} {!! Form::select( 'data[Event][end_time]', array_merge(['' => t('Event Finish time')], times(['step' => 5])), (isset($data->Event->end_time) ? $data->Event->end_time : null), [ 'class' => 'form-control', ] ) !!}
@if (isset($errors->Event->start_time)) {{ $errors->Event->start_time[0] }} @endif
{!! Form::label('data[Event][sales_deadline]', t('Sales Deadline Date')) !!} {!! Form::text( 'data[Event][sales_deadline]', (isset($data->Event->sales_deadline) ? $data->Event->sales_deadline : null), [ 'placeholder' => t('Deadline'), 'data-error' => t('This field is required'), 'class' => 'form-control datepicker' ] ) !!}
@if (isset($errors->Event->sales_deadline)) {{ $errors->Event->sales_deadline[0] }} @endif
{!! Form::label('data[Event][deadline]', t('Sales Deadline Time')) !!} {!! Form::select( 'data[Event][deadline]', times(['step' => 5]), (isset($data->Event->deadline) ? $data->Event->deadline : null), [ 'class' => 'form-control', 'empty' => true ] ) !!}
@if (isset($errors->Event->deadline)) {{ $errors->Event->deadline[0] }} @endif
{!! Form::label('data[Event][color]', t('Calendar Colour')) !!} {!! Form::colorSelect( 'data[Event][color]', [], (isset($data->Event->color) ? $data->Event->color : null), [ 'class' => 'form-control color-picker', 'empty' => __('Please select') ] ) !!}
{!! 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
{!! Form::label('data[Event][email_template_id]', t('Confirmation Email Template')) !!} {!! Form::select( 'data[Event][email_template_id]', $email_templates, (isset($data->Event->email_template_id) ? $data->Event->email_template_id : null), ['class' => 'form-control', 'empty' => true] ) !!}
{!! Form::label('data[Event][remainder_email_template_id]', t('Reminder Email Template')) !!} {!! Form::select( 'data[Event][remainder_email_template_id]', $remainder_templates, (isset($data->Event->remainder_email_template_id) ? $data->Event->remainder_email_template_id : null), ['class' => 'form-control', 'empty' => true] ) !!}
@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
{!! Form::label('data[Event][active]', t('Visibility')) !!} {!! Form::select( 'data[Event][active]', [ 1 => t('Visible to the Licklist network'), 0 => t('Private') ], (isset($data->Event->active) ? $data->Event->active : 1), [ 'class' => 'form-control', ] ) !!}
@if (isset($errors->Event->active)) {{ $errors->Event->active[0] }} @endif
@if (isset($data->Event->Owner->VenueMenu) && $data->Event->Owner->VenueMenu)
{!! Form::label('data[Event][extra][show_menu]', t('Show menu on the details')) !!} {!! Form::select( 'data[Event][extra][show_menu]', [ 0 => t('No'), 1 => t('Yes') ], (isset($data->Event->extra->show_menu) ? $data->Event->extra->show_menu : 0), [ 'class' => 'form-control', ] ) !!}
@endif @if (isset($settings->content->allow_min_event_total) && $settings->content->allow_min_event_total)
{!! Form::label('data[Event][extra][min_total]', t('Show menu on the details in %s', $currency->symbol)) !!} {!! Form::number( 'data[Event][extra][min_total]', (isset($data->Event->extra->min_total) && $data->Event->extra->min_total ? $data->Event->extra->min_total : null), [ 'class' => 'form-control', ] ) !!}
@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
{!! Form::label('data[Event][extra][disable_coupons]', t('Disable coupons')) !!} {!! Form::select( 'data[Event][extra][disable_coupons]', [ 0 => t('No'), 1 => t('Yes') ], (isset($data->Event->extra->disable_coupons) ? $data->Event->extra->disable_coupons : null), ['class' => 'form-control'] ) !!}
@endif