@if( !empty($value) && is_array($value) )
@foreach($value as $i=> $single )
@if( $field['type'] == 'switch'|| $field['type'] == 'checkbox' || $field['type'] == 'radio' || $field['type'] == 'file')
@endif
@if( $field['type'] == 'switch'|| $field['type'] == 'checkbox' || $field['type'] == 'radio' || $field['type'] == 'file')
@endif
@endforeach
@else
@if( $field['type'] == 'switch'|| $field['type'] == 'checkbox' || $field['type'] == 'radio' || $field['type'] == 'file')
@endif
@if( $field['type'] == 'switch'|| $field['type'] == 'checkbox' || $field['type'] == 'radio' || $field['type'] == 'file')
@endif
@endif
@if(!isset($edit) || !empty($edit))
@endif