<div class="horticulture-item p-4 border border-gray-200 rounded-lg relative">
    <button type="button" class="remove-horticulture absolute top-2 right-2 text-gray-400 hover:text-red-500">
        <i class="fas fa-times-circle"></i>
    </button>
    <div class="grid grid-cols-1 md:grid-cols-3 gap-4">
        <div class="space-y-2">
            <label for="horticultures_<?php echo e($index); ?>_type" class="text-sm font-semibold text-gray-700">Tipe Budidaya</label>
            <input type="text" name="horticultures[<?php echo e($index); ?>][type]" id="horticultures_<?php echo e($index); ?>_type" value="<?php echo e(old('horticultures.' . $index . '.type', $horticulture['type'] ?? '')); ?>"
                class="w-full px-4 py-2 border border-gray-200 rounded-lg focus:ring-2 focus:ring-primary/20 focus:border-primary outline-none transition"
                placeholder="Contoh: Sayuran, Buah">
        </div>
        <div class="space-y-2">
            <label for="horticultures_<?php echo e($index); ?>_commodity" class="text-sm font-semibold text-gray-700">Komoditas</label>
            <input type="text" name="horticultures[<?php echo e($index); ?>][commodity]" id="horticultures_<?php echo e($index); ?>_commodity" value="<?php echo e(old('horticultures.' . $index . '.commodity', $horticulture['commodity'] ?? '')); ?>"
                class="w-full px-4 py-2 border border-gray-200 rounded-lg focus:ring-2 focus:ring-primary/20 focus:border-primary outline-none transition"
                placeholder="Contoh: Cabe, Tomat">
        </div>
        <div class="space-y-2">
            <label for="horticultures_<?php echo e($index); ?>_quantity" class="text-sm font-semibold text-gray-700">Jumlah/Luas (Are)</label>
            <input type="number" step="any" name="horticultures[<?php echo e($index); ?>][quantity]" id="horticultures_<?php echo e($index); ?>_quantity" value="<?php echo e(old('horticultures.' . $index . '.quantity', $horticulture['quantity'] ?? '')); ?>"
                class="w-full px-4 py-2 border border-gray-200 rounded-lg focus:ring-2 focus:ring-primary/20 focus:border-primary outline-none transition"
                placeholder="Contoh: 50 (polybag), 0.5 (are)">
        </div>
    </div>
    <?php if(isset($horticulture->id)): ?>
        <input type="hidden" name="horticultures[<?php echo e($index); ?>][id]" value="<?php echo e($horticulture->id); ?>">
    <?php endif; ?>
</div><?php /**PATH /home/sumba001/public_html/pom500.sumbatengahkab.go.id/resources/views/beneficiaries/partials/horticulture_input.blade.php ENDPATH**/ ?>