{!! Form::open([ 'data-toggle' => 'validator', 'class' => 'event-form ' . ($readonly ? 'readonly' : '') ]) !!} {!! Form::token() !!}
@if ($venue->type == 'SubVenue')
{!! 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
@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 ($venue->type == 'SubVenue')
{!! Form::label('data[Event][ask_delivery]', t('Ask for address')) !!} {!! Form::select( 'data[Event][ask_delivery]', [ 0 => t('No'), 1 => t('Yes') ], (isset($data->Event->ask_delivery) && $data->Event->ask_delivery ? 1 : 0), [ 'class' => 'form-control', ] ) !!}
@if (isset($errors->Event->ask_delivery)) {{ $errors->Event->ask_delivery[0] }} @endif
@endif
@include('Plugins/Payment/Views/Elements/Event/notification') @include('Plugins/Payment/Views/Elements/Settings/times', [ 'start_name' => 'data[Event][times][]', 'end_name' => 'data[Event][end_times][]', 'start_value' => (isset($data->Event->times) ? $data->Event->times : []), 'end_value' => (isset($data->Event->end_times) ? $data->Event->end_times : []) ])
{!! Form::submit( t('Submit'), ['class' => 'btn btn-pink btn-wider'] ) !!}
{!! Form::close() !!}