update layout control vm

This commit is contained in:
Pham Bao
2025-08-10 21:50:26 +07:00
parent dcac40e770
commit cb0e263f44
16 changed files with 514 additions and 47 deletions
@@ -26,7 +26,6 @@
</div>
</div>
@include('frontend.service.list-snapshot')
</div>
</div>
@endsection
@@ -54,5 +53,22 @@
</script>
<script src="{{ asset('js/service/service.min.js') }}"></script>
<script>
// Fallback: ensure showNotification is globally available for Alpine/Livewire inline handlers
window.showNotification = window.showNotification || function(message, type = 'success') {
try {
if (typeof FuiToast !== 'undefined') {
if (type === 'success') return FuiToast.success(message);
if (type === 'info' && typeof FuiToast.info === 'function') return FuiToast.info(message);
return FuiToast.error(message);
}
} catch (e) {}
if (window.console && console.log) {
console.log('[notify]', type, message);
} else {
alert(message);
}
};
</script>
<script src="{{ asset('lib/sweetalert/sweetalert.min.js') }}"></script>
@endpush