<div data-variant class="grid grid-cols-12 items-center gap-2">
<input type="hidden" name="variants[<?= $index ?>][id]" value="<?= e($variant['id']) ?>">
<input name="variants[<?= $index ?>][name]" value="<?= e($variant['name']) ?>" placeholder="Örn. M" class="input col-span-4 py-2.5 sm:col-span-3">
<input name="variants[<?= $index ?>][sku]" value="<?= e($variant['sku']) ?>" placeholder="Stok kodu" class="input col-span-8 py-2.5 sm:col-span-3">
<input name="variants[<?= $index ?>][price]" value="<?= e($variant['price']) ?>" inputmode="decimal" placeholder="Ürün fiyatı" class="input col-span-5 py-2.5 sm:col-span-3">
<input name="variants[<?= $index ?>][stock]" type="number" min="0" value="<?= (int) $variant['stock'] ?>" class="input col-span-5 py-2.5 sm:col-span-2">
<button type="button" data-remove-variant class="col-span-2 flex h-10 items-center justify-center rounded-lg text-zinc-400 transition hover:bg-rose-50 hover:text-rose-600 sm:col-span-1" aria-label="Sil"><?= icon('trash', 'size-4') ?></button>
</div>
Lisans bilgisi projenin LICENSE dosyasında.