@include('flash::message')

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

{{ 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')), $event_details->type ,array('class' => 'form-control')) }} @if ($errors->has('type')) {{ $errors->first('type') }} @endif
{{ Form::label('name', trans('auth.name')) }} {{ Form::text('name', $timeline->name, ['class' => 'form-control', 'placeholder' => trans('common.name_of_your_event')]) }} @if ($errors->has('name')) {{ $errors->first('name') }} @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('location', trans('common.location')) }} {{ Form::text('location', $event_details->location, ['class' => 'form-control', 'id' => 'location-input', 'autocomplete' => 'off','placeholder' => trans('messages.enter_location'), 'onKeyPress' => "return initMap(event)" ]) }} @if ($errors->has('location')) {{ $errors->first('location') }} @endif
{{ Form::label('about', trans('common.about')) }} {{ Form::textarea('about', $timeline->about, ['class' => 'form-control', 'placeholder' => trans('common.about')])}}
{{ Form::label('invite_privacy', trans('common.label_event_invite_privacy')) }} {{ Form::select('invite_privacy', array('only_guests' => trans('common.only_guests'), 'only_admins' => trans('admin.only_admin')), $event_details->invite_privacy, array('class' => 'form-control col-sm-6')) }}
{{ Form::label('timeline_post_privacy', trans('common.label_event_timeline_post_privacy')) }} {{ Form::select('timeline_post_privacy', array('only_admins' => trans('admin.only_admin'), 'only_guests' => trans('common.only_guests')), $event_details->timeline_post_privacy, array('class' => 'form-control col-sm-6')) }}
{{ Form::submit(trans('common.update_event'), ['class' => 'btn btn-success']) }}