fix(surveyor dan penilai): perbaikan upload foto dan print out

This commit is contained in:
majid
2025-02-07 07:29:49 +07:00
parent 8fc5f6ec0b
commit 7c6059d479
21 changed files with 2941 additions and 3867 deletions

View File

@@ -0,0 +1,34 @@
<footer id="footer">
Cabang : {{ $permohonan->debiture->branch->name ?? '' }}
</footer>
<script>
const datas = @json($forminspeksi);
console.log(datas);
const lpjData = @json($lpjData);
console.log(lpjData);
document.addEventListener('DOMContentLoaded', function() {
const checkboxes = document.querySelectorAll('.checkbox-lainnya');
checkboxes.forEach(checkbox => {
checkbox.addEventListener('change', function() {
const textLainnya = this.closest('label').querySelector('.text-lainnya');
if (this.checked && this.value === 'Lainnya') {
textLainnya.style.display = 'inline';
} else if (this.value === 'Lainnya') {
textLainnya.style.display = 'none';
}
});
// Atur visibilitas awal
if (checkbox.checked && checkbox.value === 'Lainnya') {
const textLainnya = checkbox.closest('label').querySelector('.text-lainnya');
textLainnya.style.display = 'inline';
}
});
});
</script>
</body>
</html>