@extends('socialite::layouts.admin') @section('content')

{{ trans('socialite::admin.edit_event') }} ({{ $timeline->name }})

@include('flash::message')
{{ 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->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->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->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->timeline_post_privacy, array('class' => 'form-control col-sm-6')) }}
@endsection