From 05ca584016cfc327073dea835059f989b1c0c39d Mon Sep 17 00:00:00 2001 From: isaacclad Date: Sun, 7 Jun 2026 20:02:42 +0000 Subject: [PATCH] Move payment QR download and share actions back to the page header. Remove the till/counter helper copy and drop duplicate download buttons from the preview card. Co-authored-by: Cursor --- .../partials/header-actions.blade.php | 37 ++++++++++++++++++ .../views/mini/payment-qrs/show.blade.php | 39 +++++++++++-------- 2 files changed, 59 insertions(+), 17 deletions(-) create mode 100644 resources/views/mini/payment-qrs/partials/header-actions.blade.php diff --git a/resources/views/mini/payment-qrs/partials/header-actions.blade.php b/resources/views/mini/payment-qrs/partials/header-actions.blade.php new file mode 100644 index 0000000..d03c0a8 --- /dev/null +++ b/resources/views/mini/payment-qrs/partials/header-actions.blade.php @@ -0,0 +1,37 @@ +@php + $shareUrl = $qrCode->publicUrl(); + $shareEnc = urlencode($shareUrl); + $shareText = urlencode($qrCode->label . ' — pay with QR'); +@endphp +
+ PNG + SVG + PDF +
+ +
+ + WhatsApp + + +
+
+
diff --git a/resources/views/mini/payment-qrs/show.blade.php b/resources/views/mini/payment-qrs/show.blade.php index 5eb5d5a..b7447fd 100644 --- a/resources/views/mini/payment-qrs/show.blade.php +++ b/resources/views/mini/payment-qrs/show.blade.php @@ -2,22 +2,28 @@ {{ $qrCode->label }} @php $c = $qrCode->content(); @endphp
-
- - - - - - Ladill Mini - {{ $qrCode->label }} -
+
+
+
+ + + + + + Ladill Mini + {{ $qrCode->label }} +
- + + @include('mini.payment-qrs.partials.header-actions', ['qrCode' => $qrCode])
@if(session('success')) @@ -29,10 +35,9 @@ @include('mini.payment-qrs.partials.preview-card', [ 'qrCode' => $qrCode, 'previewDataUri' => $previewDataUri, - 'showDownloads' => true, + 'showDownloads' => false, ])

{{ $qrCode->publicUrl() }}

-

Standard black-and-white QR — ready to print at your till or counter.