@if($group_id != null)

{{ trans('socialite::common.create_event_in') }} {!! $timeline_name !!}

@else

{{ trans('socialite::common.create_event') }}

@endif
@if((env('GOOGLE_MAPS_API_KEY') == NULL))
Please add Google maps API key in "Environment settings" available in admin panel to create an event as it needs location to be added.
@else
@if(session()->has('message'))
{{ session()->get('message') }}
@endif
{{ csrf_field() }}
{{ Form::label('type', trans('socialite::common.type'), ['class' => 'control-label']) }} {{ Form::select('type', array('' => trans('socialite::admin.please_select'), 'private' => trans('socialite::common.private'), 'public' => trans('socialite::common.public')), null ,array('class' => 'form-control')) }} @if ($errors->has('type')) {{ $errors->first('type') }} @endif
{{ Form::label('name', trans('socialite::auth.name'), ['class' => 'control-label']) }} {{ Form::text('name', old('name'), ['class' => 'form-control', 'placeholder' => trans('socialite::common.name_of_your_event')]) }} @if ($errors->has('name')) {{ $errors->first('name') }} @endif
{{ Form::label('location', trans('socialite::common.location')) }} {{ Form::text('location', old('location'), ['class' => 'form-control', 'id' => 'location-input', 'autocomplete' => 'off','placeholder' => trans('socialite::common.enter_location'), 'onKeyPress' => "return initMap(event)" ]) }} {{ Form::hidden('latitude', '', array('id' => 'latitude')) }} {{ Form::hidden('longitude', '', array('id' => 'longitude')) }} @if ($errors->has('location')) {{ $errors->first('location') }} @endif
{{ Form::label('start_date', trans('socialite::admin.start_date'), ['class' => 'control-label']) }}
{{-- --}}
@if ($errors->has('start_date')) {{ $errors->first('start_date') }} @endif
{{ Form::label('end_date', trans('socialite::admin.end_date'), ['class' => 'control-label']) }}
{{-- --}}
@if ($errors->has('end_date')) {{ $errors->first('end_date') }} @endif
{{ Form::label('about', trans('socialite::common.about'), ['class' => 'control-label']) }} {{ Form::textarea('about', old('about'), ['class' => 'form-control','placeholder' => trans('socialite::common.about')]) }}
{!! Form::hidden('group_id', $group_id) !!}
@if($group_id != null) Cancel @else Cancel @endif {{ Form::submit(trans('socialite::common.create_event'), ['class' => 'btn btn-success']) }}
@endif