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">
@for ($i = 0; $i < $loopCount; $i++)
<div class="row clone-section mt-2">
<div class="col-lg-8">
@if ($i == 0)
<div class="col-lg-10 mb-2">
{{-- @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') }}
</div>
<div class="col-lg-8">
@if ($i == 0)
<div class="col-lg-10">
{{-- @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') }}
</div>
<div class="col-lg-2">
{{-- <div class="col-lg-2">
@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) }}
</div>
</div> --}}
<div class="col-lg-2">
@if ($i == 0)
<label class="form-label">Action</label>
@endif
<div class="col-lg-2 mt-0">
<div class="d-flex gap-2">
<a href="javascript:void(0)" class="btn btn-secondary btn-sm fs-6 clone">
<i class="ri-add-line align-middle"></i>
@@ -47,6 +44,10 @@
</a>
</div>
</div>
<div class="col-lg-12">
<hr>
</div>
</div>
@endfor
</div>