<div class="poultry-item p-4 border border-gray-200 rounded-lg relative">
    <button type="button" class="remove-poultry 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="poultries_<?php echo e($index); ?>_type" class="text-sm font-semibold text-gray-700">Jenis Unggas</label>
            <input type="text" name="poultries[<?php echo e($index); ?>][type]" id="poultries_<?php echo e($index); ?>_type" value="<?php echo e(old('poultries.' . $index . '.type', $poultry['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: Ayam, Bebek">
        </div>
        <div class="space-y-2">
            <label for="poultries_<?php echo e($index); ?>_quantity" class="text-sm font-semibold text-gray-700">Jumlah</label>
            <input type="number" name="poultries[<?php echo e($index); ?>][quantity]" id="poultries_<?php echo e($index); ?>_quantity" value="<?php echo e(old('poultries.' . $index . '.quantity', $poultry['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="Jumlah unggas">
        </div>
        <div class="space-y-2">
            <label for="poultries_<?php echo e($index); ?>_distribution_date" class="text-sm font-semibold text-gray-700">Tanggal Distribusi</label>
            <input type="date" name="poultries[<?php echo e($index); ?>][distribution_date]" id="poultries_<?php echo e($index); ?>_distribution_date" value="<?php echo e(old('poultries.' . $index . '.distribution_date', $poultry['distribution_date'] ?? '')); ?>"
                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">
        </div>
    </div>
    <?php if(isset($poultry->id)): ?>
        <input type="hidden" name="poultries[<?php echo e($index); ?>][id]" value="<?php echo e($poultry->id); ?>">
    <?php endif; ?>
</div><?php /**PATH /home/sumba001/public_html/pom500.sumbatengahkab.go.id/resources/views/beneficiaries/partials/poultry_input.blade.php ENDPATH**/ ?>