{{-- Add DU/DI Modal --}}
<div class="modal fade" id="addDudiModal" tabindex="-1" aria-labelledby="addDudiModalLabel" aria-hidden="true">
    <div class="modal-dialog">
        <div class="modal-content">
            <form action="{{ route('dudi.store') }}" method="POST">
                @csrf
                <div class="modal-header bg-primary text-white">
                    <h5 class="modal-title" id="addDudiModalLabel">
                        <i class="fas fa-plus me-2"></i>Tambah DU/DI Baru
                    </h5>
                    <button type="button" class="btn-close btn-close-white" data-bs-dismiss="modal" aria-label="Close"></button>
                </div>
                <div class="modal-body">
                    <div class="mb-3">
                        <label for="nama_dudi" class="form-label">Nama DU/DI <span class="text-danger">*</span></label>
                        <input type="text" 
                               class="form-control @error('nama_dudi') is-invalid @enderror" 
                               id="nama_dudi" 
                               name="nama_dudi" 
                               placeholder="Masukkan nama DU/DI"
                               value="{{ old('nama_dudi') }}"
                               required>
                        @error('nama_dudi')
                            <div class="invalid-feedback">{{ $message }}</div>
                        @enderror
                        <div class="form-text">
                            <i class="fas fa-info-circle me-1"></i>
                            Contoh: PT. Teknologi Maju, CV. Berkah Jaya, dll.
                        </div>
                    </div>
                </div>
                <div class="modal-footer">
                    <button type="button" class="btn btn-secondary" data-bs-dismiss="modal">
                        <i class="fas fa-times me-1"></i>Batal
                    </button>
                    <button type="submit" class="btn btn-primary">
                        <i class="fas fa-save me-1"></i>Simpan
                    </button>
                </div>
            </form>
        </div>
    </div>
</div>