@define $_fields = \Fields::getFieldsWithLabelOnlyActive('contact-form', $data['val']) @foreach($_fields as $field_name => $field) {{ $field['label'] }}: @if($field['field_type'] == 'textarea') {{ nl2br($field[init_val]) }} @elseif($field['field_type'] == 'checkbox') @if(!empty($field[init_val]) && is_array($field[init_val])) {{ implode(', ', $field[init_val]) }} @endif @else {{ $field[init_val] }} @endif \n @endforeach