<?php if($errors->any()): ?>
<script>
document.addEventListener('DOMContentLoaded', function() {
    new bootstrap.Modal(document.getElementById('addHolidayModal')).show();
});
</script>
<?php endif; ?>

<script>
function editHoliday(id, date, description) {
    document.getElementById('edit_date').value = date;
    document.getElementById('edit_description').value = description;
    document.getElementById('editHolidayForm').action = `<?php echo e(url('admin/holiday')); ?>/${id}/update`;
    new bootstrap.Modal(document.getElementById('editHolidayModal')).show();
}

function confirmDelete(id, description) {
    document.getElementById('deleteName').textContent = description;
    document.getElementById('deleteForm').action = `<?php echo e(url('admin/holiday')); ?>/${id}/delete`;
    new bootstrap.Modal(document.getElementById('deleteModal')).show();
}
</script><?php /**PATH C:\laragon\www\presensi-magang\resources\views/admin/libur/script.blade.php ENDPATH**/ ?>