@if (isset($field['wrapperAttributes']))
@foreach ($field['wrapperAttributes'] as $attribute => $value)
@if (is_string($attribute))
@if ($attribute == 'class')
@if (isset($field['type']) && $field['type'] == 'image')
{{ $attribute }}="mb-3 {{ $value }} image"
@else
{{ $attribute }}="mb-3 {{ $value }}"
@endif
@else
{{ $attribute }}="{{ $value }}"
@endif
@endif
@endforeach
@if (!isset($field['wrapperAttributes']['class']))
@if (isset($field['type']) && $field['type'] == 'image')
class="mb-3 col-md-12 image"
@else
class="mb-3 col-md-12"
@endif
@endif
@else
@if (isset($field['type']) && $field['type'] == 'image')
class="mb-3 col-md-12 image"
@else
class="mb-3 col-md-12"
@endif
@endif