<div class="fish-item p-4 border border-gray-200 rounded-lg relative">
    <button type="button" class="remove-fish 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="fish_{{ $index }}_type" class="text-sm font-semibold text-gray-700">Jenis Ikan</label>
            <input type="text" name="fish[{{ $index }}][type]" id="fish_{{ $index }}_type" value="{{ old('fish.' . $index . '.type', $fish_item['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: Lele, Nila">
        </div>
        <div class="space-y-2">
            <label for="fish_{{ $index }}_quantity" class="text-sm font-semibold text-gray-700">Jumlah</label>
            <input type="number" name="fish[{{ $index }}][quantity]" id="fish_{{ $index }}_quantity" value="{{ old('fish.' . $index . '.quantity', $fish_item['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 ikan">
        </div>
        <div class="space-y-2">
            <label for="fish_{{ $index }}_distribution_date" class="text-sm font-semibold text-gray-700">Tanggal Distribusi</label>
            <input type="date" name="fish[{{ $index }}][distribution_date]" id="fish_{{ $index }}_distribution_date" value="{{ old('fish.' . $index . '.distribution_date', $fish_item['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>
    @if(isset($fish_item->id))
        <input type="hidden" name="fish[{{ $index }}][id]" value="{{ $fish_item->id }}">
    @endif
</div>