From ff6294fabe4bd07222da8af4b32b2a324ccba0b7 Mon Sep 17 00:00:00 2001 From: isaacclad Date: Fri, 24 Jul 2026 20:56:48 +0000 Subject: [PATCH] Replace native confirms with Ladill custom dialogs. --- .../views/components/app-layout.blade.php | 1 + .../views/partials/confirm-prompt.blade.php | 213 ++++++++++++++++++ 2 files changed, 214 insertions(+) create mode 100644 resources/views/partials/confirm-prompt.blade.php diff --git a/resources/views/components/app-layout.blade.php b/resources/views/components/app-layout.blade.php index f8896c6..cf674e1 100644 --- a/resources/views/components/app-layout.blade.php +++ b/resources/views/components/app-layout.blade.php @@ -57,5 +57,6 @@ @endauth @include('partials.wallet-topup-modal', ['openOnLoad' => (bool) session('topup_required')]) @include('partials.afia') + @include('partials.confirm-prompt') diff --git a/resources/views/partials/confirm-prompt.blade.php b/resources/views/partials/confirm-prompt.blade.php new file mode 100644 index 0000000..2b0af65 --- /dev/null +++ b/resources/views/partials/confirm-prompt.blade.php @@ -0,0 +1,213 @@ +{{-- + Ladill custom confirm dialog (replaces native window.confirm for app UX). + + Usage: + 1) Forms:
+ 2) JS: const ok = await window.ladillConfirm({ title, message, confirmLabel, variant }) + + Bottom sheet on mobile, centered card on desktop — same pattern as x-modal. +--}} + + +