This commit is contained in:
2025-08-20 16:41:52 +05:45
parent 74a1ec0c6d
commit adf293bd15

View File

@@ -13,29 +13,29 @@
<div class="col-lg-12 clone-container">
@for ($i = 0; $i < $loopCount; $i++)
<div class="row clone-section mt-2">
<div class="col-lg-2">
@if ($i == 0)
{{ html()->label('Icon')->class('form-label')->for('icon[]') }}
<div class="col-lg-8">
@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') }}
</div>
<div class="col-lg-4">
@if ($i == 0)
{{ html()->label('Title')->class('form-label')->for('key[]') }}
<div class="col-lg-8">
@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') }}
</div>
<div class="col-lg-4">
@if ($i == 0)
<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 class="col-lg-2">
@if ($i == 0)
@if ($i == 0)
<label class="form-label">Action</label>
@endif
<div class="d-flex gap-2">