@if($group_id != null)

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

@else

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

@endif
@if(session()->has('message'))
{{ session()->get('message') }}
@endif
{{ csrf_field() }}
{{ Form::label('type', trans('common.type'), ['class' => 'control-label']) }} {{ Form::select('type', array('' => trans('admin.please_select'), 'private' => trans('common.private'), 'public' => trans('common.public')), null ,array('class' => 'form-control')) }} @if ($errors->has('type')) {{ $errors->first('type') }} @endif
{{ Form::label('name', trans('auth.name'), ['class' => 'control-label']) }} {{ Form::text('name', old('name'), ['class' => 'form-control', 'placeholder' => trans('common.name_of_your_event')]) }} @if ($errors->has('name')) {{ $errors->first('name') }} @endif
{{ Form::label('location', trans('common.location')) }} {{ Form::text('location', old('location'), ['class' => 'form-control', 'id' => 'location-input', 'autocomplete' => 'off','placeholder' => trans('common.enter_location'), 'onKeyPress' => "return initMap(event)" ]) }} @if ($errors->has('location')) {{ $errors->first('location') }} @endif
{{ Form::label('start_date', trans('admin.start_date'), ['class' => 'control-label']) }}
{{-- --}}
@if ($errors->has('start_date')) {{ $errors->first('start_date') }} @endif
{{ Form::label('end_date', trans('admin.end_date'), ['class' => 'control-label']) }}
{{-- --}}
@if ($errors->has('end_date')) {{ $errors->first('end_date') }} @endif
{{ Form::label('about', trans('common.about'), ['class' => 'control-label']) }} {{ Form::textarea('about', old('about'), ['class' => 'form-control','placeholder' => trans('common.about')]) }}
{!! Form::hidden('group_id', $group_id) !!}
@if($group_id != null) Cancel @else Cancel @endif {{ Form::submit(trans('common.create_event'), ['class' => 'btn btn-success']) }}