<!-- Delete Confirmation Modal -->
<div class="modal fade" id="deleteModal" tabindex="-1">
    <div class="modal-dialog">
        <div class="modal-content">
            <div class="modal-header bg-danger text-white">
                <h5 class="modal-title">
                    <i class="fas fa-exclamation-triangle me-2"></i>Konfirmasi Hapus
                </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="text-center mb-3">
                    <i class="fas fa-trash-alt fa-3x text-danger mb-3"></i>
                    <h6>Apakah Anda yakin ingin menghapus sekolah:</h6>
                    <strong class="text-danger" id="deleteName"></strong>
                </div>
                
                <div class="alert alert-warning" id="deleteWarning" style="display: none;">
                    <i class="fas fa-info-circle me-2"></i>
                    <strong>Peringatan:</strong> Sekolah ini masih memiliki <span id="siswaCount" class="fw-bold"></span> siswa dan tidak dapat dihapus.
                    <br><small class="text-muted">Silahkan hapus atau pindahkan semua siswa terlebih dahulu.</small>
                </div>
                
                <div class="alert alert-info" id="deleteInfo" style="display: block;">
                    <i class="fas fa-info-circle me-2"></i>
                    <small>Data yang sudah dihapus tidak dapat dikembalikan. Pastikan Anda yakin dengan tindakan ini.</small>
                </div>
            </div>
            
            <div class="modal-footer">
                <button type="button" class="btn btn-secondary" data-bs-dismiss="modal">
                    <i class="fas fa-times me-2"></i>Batal
                </button>
                <form id="deleteForm" method="POST" class="d-inline">
                    <?php echo csrf_field(); ?> 
                    <?php echo method_field('DELETE'); ?>
                    <button type="submit" class="btn btn-danger" id="deleteButton">
                        <i class="fas fa-trash me-2"></i>Hapus Sekolah
                    </button>
                </form>
            </div>
        </div>
    </div>
</div><?php /**PATH C:\laragon\www\presensi-magang\resources\views/admin/sekolah/hapus.blade.php ENDPATH**/ ?>