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' }}