diff --git a/Modules/CCMS/resources/views/components/custom-form-field.blade.php b/Modules/CCMS/resources/views/components/custom-form-field.blade.php index 903ca54..3e869aa 100644 --- a/Modules/CCMS/resources/views/components/custom-form-field.blade.php +++ b/Modules/CCMS/resources/views/components/custom-form-field.blade.php @@ -13,31 +13,28 @@
@for ($i = 0; $i < $loopCount; $i++)
-
- @if ($i == 0) +
+ {{-- @if ($i == 0) {{ html()->label('Questions')->class('form-label')->for('icon[]') }} - @endif - {{ html()->text('icon[]')->value($data[$i]['icon'] ?? old('icon[]'))->class('form-control')->placeholder('Icon class') }} + @endif --}} + {{ html()->text('icon[]')->value($data[$i]['icon'] ?? old('icon[]'))->class('form-control')->placeholder('Enter Question') }}
-
- @if ($i == 0) +
+ {{-- @if ($i == 0) {{ html()->label('Answer')->class('form-label')->for('key[]') }} - @endif - {{ html()->text('key[]')->value($data[$i]['key'] ?? old('key[]'))->class('form-control')->placeholder('Enter Title') }} + @endif --}} + {{ html()->text('key[]')->value($data[$i]['key'] ?? old('key[]'))->class('form-control')->placeholder('Enter Answer') }}
-
+ {{--
@if ($i == 0) {{ html()->label('Content')->class('form-label')->for('value[]') }} @endif {{ html()->textarea('value[]')->value($data[$i]['value'] ?? old('value[]'))->class('form-control')->placeholder('Enter Content')->rows(1) }} -
+
--}} -
- @if ($i == 0) - - @endif + + +
+
+
@endfor