From 3248b18efeaf8e3253b9d632e94c46a509be17ac Mon Sep 17 00:00:00 2001 From: Subash Date: Wed, 20 Aug 2025 17:13:28 +0545 Subject: [PATCH] refactor: Adjust layout of custom form fields and update placeholder text for clarity --- .../components/custom-form-field.blade.php | 29 ++++++++++--------- 1 file changed, 15 insertions(+), 14 deletions(-) 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