diff --git a/resources/views/care/admin/care-units/show.blade.php b/resources/views/care/admin/care-units/show.blade.php index b8d88df..c4ab2f1 100644 --- a/resources/views/care/admin/care-units/show.blade.php +++ b/resources/views/care/admin/care-units/show.blade.php @@ -114,7 +114,7 @@ MAR @endif @if ($canPlace && $visit->care_unit_id) -
+ @csrf @method('DELETE')
@@ -221,7 +221,7 @@ {{ $occupant?->patient?->fullName() ?? '—' }} @if ($canManageUnit ?? false) -
+ @csrf @method('DELETE')
diff --git a/resources/views/care/admin/practitioners/edit.blade.php b/resources/views/care/admin/practitioners/edit.blade.php index 66cf238..24d00f3 100644 --- a/resources/views/care/admin/practitioners/edit.blade.php +++ b/resources/views/care/admin/practitioners/edit.blade.php @@ -67,8 +67,7 @@ -
+ @csrf @method('DELETE') diff --git a/resources/views/care/admin/staff-assignments/create.blade.php b/resources/views/care/admin/staff-assignments/create.blade.php index 93efb83..d140d88 100644 --- a/resources/views/care/admin/staff-assignments/create.blade.php +++ b/resources/views/care/admin/staff-assignments/create.blade.php @@ -102,7 +102,7 @@
@if ($assignment) -
+ @csrf @method('DELETE')
diff --git a/resources/views/care/devices/edit.blade.php b/resources/views/care/devices/edit.blade.php index 815d9ee..b552519 100644 --- a/resources/views/care/devices/edit.blade.php +++ b/resources/views/care/devices/edit.blade.php @@ -158,7 +158,7 @@ @endif -
+ @csrf @method('DELETE')
diff --git a/resources/views/care/nursing/roster.blade.php b/resources/views/care/nursing/roster.blade.php index e55be42..11613b7 100644 --- a/resources/views/care/nursing/roster.blade.php +++ b/resources/views/care/nursing/roster.blade.php @@ -59,7 +59,7 @@ {{ $memberLabels[$entry->member_id] ?? ($entry->member?->user_ref ?? 'Staff') }} @if ($canManage) -
+ @csrf @method('DELETE') diff --git a/resources/views/care/specialty/dentistry/workspace-imaging.blade.php b/resources/views/care/specialty/dentistry/workspace-imaging.blade.php index 5f013c9..b21fef3 100644 --- a/resources/views/care/specialty/dentistry/workspace-imaging.blade.php +++ b/resources/views/care/specialty/dentistry/workspace-imaging.blade.php @@ -76,7 +76,7 @@ @endif @if ($canManage) - + @csrf
diff --git a/resources/views/care/specialty/dentistry/workspace-plan.blade.php b/resources/views/care/specialty/dentistry/workspace-plan.blade.php index e59c7f0..ada84f9 100644 --- a/resources/views/care/specialty/dentistry/workspace-plan.blade.php +++ b/resources/views/care/specialty/dentistry/workspace-plan.blade.php @@ -33,7 +33,7 @@ @endif @if ($plan->status !== 'completed') -
+ @csrf
@@ -55,7 +55,7 @@

Priority {{ $item->priority }} · {{ ucfirst($item->status) }} · {{ number_format($item->estimate_minor / 100, 2) }}

@if ($canManage && ! in_array($item->status, ['done', 'cancelled'], true)) -
+ @csrf
diff --git a/resources/views/components/app-layout.blade.php b/resources/views/components/app-layout.blade.php index 9433126..568c706 100644 --- a/resources/views/components/app-layout.blade.php +++ b/resources/views/components/app-layout.blade.php @@ -58,5 +58,6 @@ @include('partials.afia') @include('partials.wallet-topup-modal', ['openOnLoad' => (bool) session('topup_required')]) @include('partials.sso-keepalive') + @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. +--}} + + +