diff --git a/resources/views/mini/payment-qrs/partials/delete-modal.blade.php b/resources/views/mini/payment-qrs/partials/delete-modal.blade.php new file mode 100644 index 0000000..2fdb3e5 --- /dev/null +++ b/resources/views/mini/payment-qrs/partials/delete-modal.blade.php @@ -0,0 +1,38 @@ +@php + $businessName = $qrCode->content()['business_name'] ?? $qrCode->label; +@endphp + + +
+
+
+ + + +
+

Delete payment QR?

+

+ {{ $qrCode->label }} + @if($businessName !== $qrCode->label) + ยท {{ $businessName }} + @endif + will be removed permanently. The payment link will stop working and printed codes for this till will no longer accept payments. +

+

{{ $qrCode->publicUrl() }}

+
+ +
+ @csrf + @method('DELETE') + + +
+
+
diff --git a/resources/views/mini/payment-qrs/show.blade.php b/resources/views/mini/payment-qrs/show.blade.php index 266bddc..f74d637 100644 --- a/resources/views/mini/payment-qrs/show.blade.php +++ b/resources/views/mini/payment-qrs/show.blade.php @@ -64,16 +64,17 @@ -
-

Delete payment QR

-

Removes this QR and its payment link. Scans will stop working. This cannot be undone.

-
- @csrf - @method('DELETE') - -
+
+

Danger zone

+

Remove this payment QR and deactivate its link.

+
+ + @include('mini.payment-qrs.partials.delete-modal', ['qrCode' => $qrCode])