@include('ManageOrganiser.Partials.EventCreateAndEditJS') {!! Form::model($event, array('url' => route('postEditEvent', ['event_id' => $event->id]), 'class' => 'ajax gf')) !!}
{!! Form::label('is_live', 'Event Visibility', array('class'=>'control-label required')) !!} {!! Form::select('is_live', [ '1' => 'Make event visible to the public.', '0' => 'Hide event from the public.'],null, array( 'class'=>'form-control' )) !!}
{!! Form::label('title', 'Event Title', array('class'=>'control-label required')) !!} {!! Form::text('title', Input::old('title'), array( 'class'=>'form-control', 'placeholder'=>'E.g: '.Auth::user()->first_name.'\'s Interational Conference' )) !!}
{!! Form::label('description', 'Event Description', array('class'=>'control-label')) !!} {!! Form::textarea('description', Input::old('description'), array( 'class'=>'form-control editable', 'rows' => 5 )) !!}
{!! Form::label('name', 'Venue Name', array('class'=>'control-label required ')) !!} {!! Form::text('venue_name_full', Input::old('venue_name_full'), array( 'class'=>'form-control geocomplete location_field', 'placeholder'=>'E.g: The Crab Shack' )) !!}
{!! Form::hidden('formatted_address', $event->location_address, ['class' => 'location_field']) !!} {!! Form::hidden('street_number', $event->location_street_number, ['class' => 'location_field']) !!} {!! Form::hidden('country', $event->location_country, ['class' => 'location_field']) !!} {!! Form::hidden('country_short', $event->location_country_short, ['class' => 'location_field']) !!} {!! Form::hidden('place_id', $event->location_google_place_id, ['class' => 'location_field']) !!} {!! Form::hidden('name', $event->venue_name, ['class' => 'location_field']) !!} {!! Form::hidden('location', '', ['class' => 'location_field']) !!} {!! Form::hidden('postal_code', $event->location_post_code, ['class' => 'location_field']) !!} {!! Form::hidden('route', $event->location_address_line_1, ['class' => 'location_field']) !!} {!! Form::hidden('lat', $event->location_lat, ['class' => 'location_field']) !!} {!! Form::hidden('lng', $event->location_long, ['class' => 'location_field']) !!} {!! Form::hidden('administrative_area_level_1', $event->location_state, ['class' => 'location_field']) !!} {!! Form::hidden('sublocality', '', ['class' => 'location_field']) !!} {!! Form::hidden('locality', $event->location_address_line_1, ['class' => 'location_field']) !!}
{!! Form::label('location_venue_name', 'Venue Name', array('class'=>'control-label required ')) !!} {!! Form::text('location_venue_name', $event->venue_name, [ 'class'=>'form-control location_field', 'placeholder'=>'E.g: The Crab Shack' ]) !!}
{!! Form::label('location_address_line_1', 'Address Line 1', array('class'=>'control-label')) !!} {!! Form::text('location_address_line_1', $event->location_address_line_1, [ 'class'=>'form-control location_field', 'placeholder'=>'E.g: 45 Grafton St.' ]) !!}
{!! Form::label('location_address_line_2', 'Address Line 2', array('class'=>'control-label')) !!} {!! Form::text('location_address_line_2', $event->location_address_line_2, [ 'class'=>'form-control location_field', 'placeholder'=>'E.g: Dublin.' ]) !!}
{!! Form::label('location_state', 'City', array('class'=>'control-label')) !!} {!! Form::text('location_state', $event->location_state, [ 'class'=>'form-control location_field', 'placeholder'=>'E.g: Dublin.' ]) !!}
{!! Form::label('location_post_code', 'Post Code', array('class'=>'control-label')) !!} {!! Form::text('location_post_code', $event->location_post_code, [ 'class'=>'form-control location_field', 'placeholder'=>'E.g: 94568.' ]) !!}
{!! Form::label('start_date', 'Event Start Date', array('class'=>'required control-label')) !!} {!! Form::text('start_date', $event->getFormattedDate('start_date'), [ 'class'=>'form-control start hasDatepicker ', 'data-field'=>'datetime', 'data-startend'=>'start', 'data-startendelem'=>'.end', 'readonly'=>'' ]) !!}
{!! Form::label('end_date', 'Event End Date', [ 'class'=>'required control-label ' ]) !!} {!! Form::text('end_date', $event->getFormattedDate('end_date'), [ 'class'=>'form-control end hasDatepicker ', 'data-field'=>'datetime', 'data-startend'=>'end', 'data-startendelem'=>'.start', 'readonly'=>'' ]) !!}
{!! Form::label('event_image', 'Event Flyer', array('class'=>'control-label ')) !!} {!! Form::styledFile('event_image', 1) !!}
@if($event->images->count()) {!! Form::label('', 'Current Event Flyer', array('class'=>'control-label ')) !!}
{!! Form::label('remove_current_image', 'Delete?', array('class'=>'control-label ')) !!} {!! Form::checkbox('remove_current_image') !!}
{!!HTML::image('/'.$event->images->first()['image_path'])!!}
@endif
{!! Form::close() !!}