@if ($field->element!='text')
-
+
@if ($field->element=='listbox')
+
{{ Form::select($field->db_column_name(), $field->formatFieldValuesAsArray(),
- old($field->db_column_name(),(isset($item) ? Helper::gracefulDecrypt($field, $item->{$field->db_column_name()}) : $field->defaultValue($model->id))), ['class'=>'format select2 form-control']) }}
+ old($field->db_column_name(),(isset($item) ? Helper::gracefulDecrypt($field, $item->{$field->db_column_name()}) : $field->defaultValue($model->id))), ['class' => 'format select2 form-control', ($field->pivot->required=='1' ? ' required' : '') ]) }}
@elseif ($field->element=='textarea')
-
+
+
@elseif ($field->element=='checkbox')
-
+
@foreach ($field->formatFieldValuesAsArray() as $key => $value)