@extends('socialite::layouts.default') @section('content')
{{ $timeline->name }}
{{ date("d", strtotime($event_details->start_date)) }}
{{ date("M", strtotime($event_details->start_date)) }}
@include('flash::message')

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

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