@props(['form' => null])
@if ($form) @foreach ($form->form_data as $formData)
@php $jsonData = json_encode([ 'type' => $formData->type, 'is_required' => $formData->is_required, 'instruction' => @$formData->instruction, 'label' => $formData->name, 'extensions' => explode(',', $formData->extensions) ?? 'null', 'options' => $formData->options, 'width' => @$formData->width, 'old_id' => '', ]); @endphp

@lang('Name')

{{ __(@$formData->name) }}

@lang('Type')

{{ __(ucfirst($formData->type)) }}

@lang('Width')

@if (@$formData->width == '12') @lang('100%') @elseif(@$formData->width == '6') @lang('50%') @elseif(@$formData->width == '4') @lang('33%') @elseif(@$formData->width == '3') @lang('25%') @else - @endif

@if ($formData->is_required == 'required') @lang('Required') @else @lang('Optional') @endif

@endforeach @endif
@push('style') @endpush @push('script-lib') @endpush @push('script') @endpush