18
18
label =" Range To" />
19
19
</div >
20
20
<div class =" col-md-2" >
21
- <x-backend .form.text-input type =" text " name =" slot_percentage[]" placeholder =" Percentage"
21
+ <x-backend .form.text-input type =" number " step = " any " name =" slot_percentage[]" placeholder =" Percentage"
22
22
label =" Percentage(%)" />
23
23
</div >
24
24
<div class =" col-md-4" >
@@ -156,12 +156,12 @@ class="row only-company only-tax {{ $taxSetting->for !== 'company' && $taxSettin
156
156
<div class =" col-12 mb-2 slots-container" >
157
157
<h4 class =" text-center fw-bold" >Slots</h4 >
158
158
<div id =" slot-wrapper" class =" mb-2" >
159
- @foreach ($taxSetting -> slots as $slot )
159
+ @foreach ($taxSetting -> slots as $key => $ slot )
160
160
<div class =" row border rounded p-1 mb-2"
161
161
data-url =" {{ route (' ajax.slot.destroy' , $slot -> id ) } }" >
162
162
<input type =" hidden" name =" slot_ids[]" value =" {{ $slot -> id } }" >
163
- <div class =" d-none slot-count" >1 </div >
164
- <h5 class =" fw-medium mb-1" >Slot 1 </h5 >
163
+ <div class =" d-none slot-count" >{{ ++ $key } } </div >
164
+ <h5 class =" fw-medium mb-1" >Slot {{ ++ $key } } </h5 >
165
165
<div class =" row only-tax" >
166
166
<div class =" col-md-3" >
167
167
<x-backend .form.text-input type =" number" name =" tax_slot_from[]"
@@ -172,7 +172,7 @@ class="row only-company only-tax {{ $taxSetting->for !== 'company' && $taxSettin
172
172
placeholder =" Range To" label =" Range To" :value =" $slot->to" />
173
173
</div >
174
174
<div class =" col-md-2" >
175
- <x-backend .form.text-input type =" text " name =" slot_percentage[]"
175
+ <x-backend .form.text-input type =" number " step = " any " name =" slot_percentage[]"
176
176
placeholder =" Percentage" label =" Percentage(%)" :value =" $slot->tax_percentage" />
177
177
</div >
178
178
<div class =" col-md-4" >
0 commit comments