From 8e572f579028c4bfdcc8b0a9092637d5ae7b22cb Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Benjamin=20Beganovi=C4=87?= Date: Mon, 12 Feb 2024 18:55:19 +0100 Subject: [PATCH] Add OneTimeProducts component and its corresponding view --- .../BillingPortal/Cart/OneTimeProducts.php | 28 ++++++++++++++++ .../v3/cart/one-time-products.blade.php | 32 +++++++++++++++++++ 2 files changed, 60 insertions(+) create mode 100644 app/Livewire/BillingPortal/Cart/OneTimeProducts.php create mode 100644 resources/views/billing-portal/v3/cart/one-time-products.blade.php diff --git a/app/Livewire/BillingPortal/Cart/OneTimeProducts.php b/app/Livewire/BillingPortal/Cart/OneTimeProducts.php new file mode 100644 index 000000000000..fce70271b33a --- /dev/null +++ b/app/Livewire/BillingPortal/Cart/OneTimeProducts.php @@ -0,0 +1,28 @@ + + @unless(empty($subscription->product_ids)) + @foreach($subscription->service()->products() as $index => $product) +
+
+
+ @if(filter_var($product->product_image, FILTER_VALIDATE_URL)) +
+ +
+ @endif + +
+

{{ $product->product_key }}

+

{{ \App\Utils\Number::formatMoney($product->price, $subscription->company) }}

+
+
+
+ +
+ {!! $product->markdownNotes() !!} +
+
+ @endforeach + @endunless +