@extends('layouts.master') @section('title') {{trans_choice('general.edit',1)}} {{trans_choice('general.event',1)}} @endsection @section('content')

{{trans_choice('general.edit',1)}} {{trans_choice('general.event',1)}}

{!! Form::open(array('url' => url('event/'.$event->id.'/update'), 'method' => 'post', 'name' => 'form','class'=>'form-horizontal',"enctype"=>"multipart/form-data")) !!}
{!! Form::label('branch_id',trans_choice('general.branch',1),array('class'=>' col-sm-4 control-label')) !!}
{!! Form::select('branch_id',$branches,$event->member_id, array('class' => 'form-control select2','placeholder'=>'','required'=>'required','id'=>'contribution_batch_id')) !!}
{!! Form::label('name',trans_choice('general.event',1).' '.trans_choice('general.name',1),array('class'=>'col-sm-4 control-label')) !!}
{!! Form::text('name',$event->name, array('class' => 'form-control', 'placeholder'=>"",'required'=>'required')) !!}
{!! Form::label('starts_on',trans_choice('general.starts_on',1),array('class'=>'col-sm-4 control-label')) !!}
{!! Form::text('start_date',$event->start_date, array('class' => 'form-control date-picker', 'id'=>"start_date",'required'=>'required')) !!}
{!! Form::text('start_time',$event->start_time, array('class' => 'form-control time-picker','id'=>'start_time')) !!}
{!! Form::label('end_date',trans_choice('general.ends_on',1),array('class'=>'col-sm-4 control-label')) !!}
{!! Form::text('end_date',$event->end_date, array('class' => 'form-control date-picker', 'id'=>"end_date",'required'=>'required')) !!}
{!! Form::text('end_time',$event->end_time, array('class' => 'form-control time-picker','id'=>'end_time')) !!}
{!! Form::label('recur_frequency',trans_choice('general.recur_frequency',1),array('class'=>'col-sm-4 control-label')) !!}
{!! Form::number('recur_frequency',$event->recur_frequency, array('class' => 'form-control', 'placeholder'=>"",'id'=>'recurF')) !!}
{!! Form::label('recur_type',trans_choice('general.recur_type',1),array('class'=>'col-sm-4 control-label')) !!}
{!! Form::select('recur_type', array('day'=>trans_choice('general.day',1).'(s)','week'=>trans_choice('general.week',1).'(s)','month'=>trans_choice('general.month',1).'(s)','year'=>trans_choice('general.year',1).'(s)'),$event->recur_type, array('class' => 'form-control','id'=>'recurT')) !!}
{!! Form::label('recur_start_date',trans_choice('general.recur_starts',1),array('class'=>'col-sm-4 control-label')) !!}
{!! Form::text('recur_start_date',$event->recur_start_date, array('class' => 'form-control date-picker','id'=>'recur_start_date')) !!}
{!! Form::label('recur_end_date',trans_choice('general.recur_ends',1),array('class'=>'col-sm-4 control-label')) !!}
{!! Form::text('recur_end_date',$event->recur_end_date, array('class' => 'form-control date-picker','id'=>'recur_end_date')) !!}
{!! Form::label('event_calendar_id',trans_choice('general.calendar',1),array('class'=>'col-sm-4 control-label')) !!}
{!! Form::select('event_calendar_id',$calendars,$event->event_calendar_id, array('class' => 'form-control select2', 'placeholder'=>"")) !!}
{!! Form::label('event_location_id',trans_choice('general.location',1),array('class'=>'col-sm-4 control-label')) !!}
{!! Form::select('event_location_id',$locations,$event->event_location_id, array('class' => 'form-control select2', 'placeholder'=>"")) !!}
{!! Form::label('featured_image',trans_choice('general.featured_image',1),array('class'=>'col-sm-4 control-label')) !!}
{!! Form::file('featured_image', array('class' => 'form-control')) !!}
{!! Form::label('cost',trans_choice('general.cost',1),array('class'=>'col-sm-4 control-label')) !!}
{!! Form::text('cost',$event->cost, array('class' => 'form-control', 'placeholder'=>"Leave blank if it's not charged")) !!}
{!! Form::label('latitude',trans_choice('general.latitude',1),array('class'=>'col-sm-4 control-label')) !!}
{!! Form::text('latitude',$event->latitude, array('class' => 'form-control', 'placeholder'=>"")) !!}
{!! Form::label('longitude',trans_choice('general.longitude',1),array('class'=>'col-sm-4 control-label')) !!}
{!! Form::text('longitude',$event->longitude, array('class' => 'form-control', 'placeholder'=>"")) !!}
{!! Form::label('notes',trans_choice('general.note',2),array('class'=>'col-sm-4 control-label')) !!}
{!! Form::textarea('notes',$event->notes, array('class' => 'form-control tinymce','rows'=>'3')) !!}
{!! Form::close() !!}
@endsection