@if(count($combinations) > 0)
<table class="table physical_product_show table-borderless">
<thead class="thead-light thead-50 text-capitalize">
<tr>
<th class="text-center">
<label for="" class="control-label">
{{ translate('SL') }}
</label>
</th>
<th class="text-center">
<label for="" class="control-label">
{{ translate('attribute_Variation') }}
</label>
</th>
<th class="text-center">
<label for="" class="control-label">
{{ translate('variation_Wise_Price') }}
({{ getCurrencySymbol() }})
</label>
</th>
<th class="text-center">
<label for="" class="control-label">
{{ translate('SKU') }}
</label>
</th>
<th class="text-center">
<label for="" class="control-label">
{{ translate('Variation_Wise_Stock') }}
</label>
</th>
</tr>
</thead>
<tbody>
@php
$serial = 1;
@endphp
@foreach ($combinations as $key => $combination)
<tr>
<td class="text-center">
{{ $serial++ }}
</td>
<td>
<label for="" class="control-label">{{ $combination['type'] }}</label>
<input value="{{ $combination['type'] }}" name="type[]" class="d-none">
</td>
<td>
<input type="number" name="price_{{ $combination['type'] }}"
value="{{ usdToDefaultCurrency(amount: $combination['price']) }}" min="0"
step="0.01"
class="form-control" required placeholder="{{ translate('ex').': 100'}}">
</td>
<td>
<input type="text" name="sku_{{ $combination['type'] }}" value="{{ $combination['sku'] }}"
class="form-control" placeholder="{{ translate('ex').':'.'MCU-47-V593-M'}}">
</td>
<td>
<input type="number" name="qty_{{ $combination['type'] }}"
value="{{ $combination['qty'] }}" min="1" max="100000" step="1"
class="form-control" placeholder="{{ translate('ex') }}: {{ translate('5') }}"
required>
</td>
</tr>
@endforeach
</tbody>
</table>
@endif