diff --git a/app/Http/Controllers/Merchant/StorefrontController.php b/app/Http/Controllers/Merchant/StorefrontController.php index 58304e3..3fffe71 100644 --- a/app/Http/Controllers/Merchant/StorefrontController.php +++ b/app/Http/Controllers/Merchant/StorefrontController.php @@ -128,6 +128,7 @@ class StorefrontController extends Controller return view('merchant.storefronts.show', [ 'qrCode' => $storefront->fresh(), 'previewDataUri' => $this->imageGenerator->previewDataUri($storefront), + 'catalog' => $this->catalogProducts(), ]); } diff --git a/resources/views/merchant/storefronts/show.blade.php b/resources/views/merchant/storefronts/show.blade.php index e06f10f..37385bc 100644 --- a/resources/views/merchant/storefronts/show.blade.php +++ b/resources/views/merchant/storefronts/show.blade.php @@ -124,7 +124,7 @@ - @include('merchant.storefronts.partials.editor-fields', ['content' => $content]) + @include('merchant.storefronts.partials.editor-fields', ['content' => $content, 'catalog' => $catalog ?? []])