refactor: Adjust layout of custom form fields and update placeholder text for clarity

This commit is contained in:
2025-08-20 17:13:28 +05:45
parent adf293bd15
commit 3248b18efe

View File

@@ -13,31 +13,28 @@
<div class="col-lg-12 clone-container"> <div class="col-lg-12 clone-container">
@for ($i = 0; $i < $loopCount; $i++) @for ($i = 0; $i < $loopCount; $i++)
<div class="row clone-section mt-2"> <div class="row clone-section mt-2">
<div class="col-lg-8"> <div class="col-lg-10 mb-2">
@if ($i == 0) {{-- @if ($i == 0)
{{ html()->label('Questions')->class('form-label')->for('icon[]') }} {{ html()->label('Questions')->class('form-label')->for('icon[]') }}
@endif @endif --}}
{{ html()->text('icon[]')->value($data[$i]['icon'] ?? old('icon[]'))->class('form-control')->placeholder('Icon class') }} {{ html()->text('icon[]')->value($data[$i]['icon'] ?? old('icon[]'))->class('form-control')->placeholder('Enter Question') }}
</div> </div>
<div class="col-lg-8"> <div class="col-lg-10">
@if ($i == 0) {{-- @if ($i == 0)
{{ html()->label('Answer')->class('form-label')->for('key[]') }} {{ html()->label('Answer')->class('form-label')->for('key[]') }}
@endif @endif --}}
{{ html()->text('key[]')->value($data[$i]['key'] ?? old('key[]'))->class('form-control')->placeholder('Enter Title') }} {{ html()->text('key[]')->value($data[$i]['key'] ?? old('key[]'))->class('form-control')->placeholder('Enter Answer') }}
</div> </div>
<div class="col-lg-2"> {{-- <div class="col-lg-2">
@if ($i == 0) @if ($i == 0)
{{ html()->label('Content')->class('form-label')->for('value[]') }} {{ html()->label('Content')->class('form-label')->for('value[]') }}
@endif @endif
{{ html()->textarea('value[]')->value($data[$i]['value'] ?? old('value[]'))->class('form-control')->placeholder('Enter Content')->rows(1) }} {{ html()->textarea('value[]')->value($data[$i]['value'] ?? old('value[]'))->class('form-control')->placeholder('Enter Content')->rows(1) }}
</div> </div> --}}
<div class="col-lg-2"> <div class="col-lg-2 mt-0">
@if ($i == 0)
<label class="form-label">Action</label>
@endif
<div class="d-flex gap-2"> <div class="d-flex gap-2">
<a href="javascript:void(0)" class="btn btn-secondary btn-sm fs-6 clone"> <a href="javascript:void(0)" class="btn btn-secondary btn-sm fs-6 clone">
<i class="ri-add-line align-middle"></i> <i class="ri-add-line align-middle"></i>
@@ -47,6 +44,10 @@
</a> </a>
</div> </div>
</div> </div>
<div class="col-lg-12">
<hr>
</div>
</div> </div>
@endfor @endfor
</div> </div>