{!! Form::label('name',trans('messages.title'),['class'=>'required']) !!}
{!! Form::input('text','name',isset($checklist_item->name) ? $checklist_item->name : '',['class'=>'form-control', 'placeholder'=>trans('messages.title')]) !!}
{!! Form::label('description',trans('messages.description'),[]) !!}
{!! Form::textarea('description',isset($checklist_item->description) ? $checklist_item->description : '',['size'=>'30x15', 'class'=>'form-control summernote', 'placeholder'=>trans('messages.description'), 'data-height'=>100]) !!}
@if($checklist->category == "Daily Checklist")
{!! Form::label('start_time',trans('messages.start').' '.trans('messages.time'),['class'=>'required']) !!}
{!! Form::input('text','start_time',isset($checklist_item) ? showTime($checklist_item->start_time) : '',['class'=>'form-control timepicker', 'placeholder'=>trans('messages.start').' '.trans('messages.time'), 'readonly'=>'true']) !!}
@endif
{!! Form::label('type',trans('messages.input').' '.trans('messages.type'),['class'=>'required']) !!}
{!! Form::select('type', $checklist->inputTypes(), isset($checklist_item) ? $checklist_item->type : 'checkbox',['id' => (!$is_edit) ? 'type' : 'edit_type', 'class' => 'form-control input-xlarge show-tick', 'title' => trans('messages.select_one'), 'onchange' => (!$is_edit) ? 'typeOnChange();' : 'typeOnChange(true);']) !!}
{!! Form::label('options',trans('messages.option'),[]) !!}
{!! Form::input('text','options',isset($checklist_item) ? $checklist_item->options : '',['class'=>'form-control', 'placeholder'=>'option_A,option_B', 'data-role'=>'tagsinput', 'id'=>(!$is_edit) ? 'options' : 'edit_options']) !!}
{!! Form::submit(isset($buttonText) ? $buttonText : trans('messages.add'),['class' => 'btn btn-primary pull-right']) !!}