From 00b16448874c69855429dfc5686a00dfa2aa4261 Mon Sep 17 00:00:00 2001 From: isaacclad Date: Wed, 10 Jun 2026 19:16:48 +0000 Subject: [PATCH] Storefront polish + QR share + importer deactivate fix - Storefronts use Figtree as the default font (shop/menu, booking, book) - Remove "Powered by Ladill" branding from the storefront header - Fix storefront logo hiding behind the cover (logo row now relative z-10) - Add a Share button to storefront QR downloads using the Web Share API (native mobile share sheet for image+link; clipboard fallback) - storefronts:import-legacy: --deactivate-source now also retires the platform copy of already-imported (skipped) codes, no --refresh needed Co-Authored-By: Claude Opus 4.8 --- .../Commands/ImportLegacyStorefronts.php | 9 ++++- .../views/merchant/storefronts/show.blade.php | 38 ++++++++++++++++++- .../views/public/qr/book-landing.blade.php | 4 +- .../views/public/qr/booking-landing.blade.php | 4 +- .../views/public/qr/storefront.blade.php | 7 +++- 5 files changed, 56 insertions(+), 6 deletions(-) diff --git a/app/Console/Commands/ImportLegacyStorefronts.php b/app/Console/Commands/ImportLegacyStorefronts.php index 6dfce16..0975819 100644 --- a/app/Console/Commands/ImportLegacyStorefronts.php +++ b/app/Console/Commands/ImportLegacyStorefronts.php @@ -126,7 +126,14 @@ class ImportLegacyStorefronts extends Command if ($existing && ! $refresh) { $skipped++; - $this->line(" {$row->short_code}: already exists โ€” skipped."); + + if ($deactivateSource && ! $dry && $row->is_active) { + $platform->table('qr_codes')->where('id', $row->id)->update(['is_active' => 0]); + $deactivated++; + $this->line(" {$row->short_code}: already exists โ€” skipped (platform copy deactivated)."); + } else { + $this->line(" {$row->short_code}: already exists โ€” skipped."); + } continue; } diff --git a/resources/views/merchant/storefronts/show.blade.php b/resources/views/merchant/storefronts/show.blade.php index cde46a7..e06f10f 100644 --- a/resources/views/merchant/storefronts/show.blade.php +++ b/resources/views/merchant/storefronts/show.blade.php @@ -50,13 +50,49 @@ QR code @endif

{{ $publicUrl }}

-
+
@foreach(['png' => 'PNG', 'svg' => 'SVG', 'pdf' => 'PDF'] as $fmt => $flabel) {{ $flabel }} @endforeach +
+ @once + + @endonce
diff --git a/resources/views/public/qr/book-landing.blade.php b/resources/views/public/qr/book-landing.blade.php index c241b8e..d9b28c7 100644 --- a/resources/views/public/qr/book-landing.blade.php +++ b/resources/views/public/qr/book-landing.blade.php @@ -16,9 +16,11 @@ {{ $title }} @include('partials.favicon') + + - + diff --git a/resources/views/public/qr/booking-landing.blade.php b/resources/views/public/qr/booking-landing.blade.php index 3ec1370..f38d93b 100644 --- a/resources/views/public/qr/booking-landing.blade.php +++ b/resources/views/public/qr/booking-landing.blade.php @@ -16,9 +16,11 @@ {{ $title }} @include('partials.favicon') + + - +
{{ $title }} @include('partials.favicon') + + +
@if($coverUrl)@endif
-
+
@if($logoUrl) {{ $title }} @@ -50,7 +53,7 @@

{{ $title }}

-

{{ $isShop ? 'Shop' : 'Menu' }} ยท Powered by Ladill

+

{{ $isShop ? 'Shop' : 'Menu' }}