From c2c939af76b6e399b15a7274c86b283d66793ace Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Benjamin=20Beganovi=C4=87?= Date: Wed, 14 Feb 2024 18:30:02 +0100 Subject: [PATCH] Add conditional rendering for items with quantity greater than 0 in summary.blade.php --- resources/views/billing-portal/v3/summary.blade.php | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/resources/views/billing-portal/v3/summary.blade.php b/resources/views/billing-portal/v3/summary.blade.php index ad9c3aeb3171..413571bc47a9 100644 --- a/resources/views/billing-portal/v3/summary.blade.php +++ b/resources/views/billing-portal/v3/summary.blade.php @@ -4,10 +4,12 @@ @isset($this->context['bundle'])
@foreach($this->items() as $item) -
- {{ $item['quantity'] }}x {{ $item['product_key'] }} - {{ $item['total'] }} -
+ @if($item['quantity'] > 0) +
+ {{ $item['quantity'] }}x {{ $item['product_key'] }} + {{ $item['total'] }} +
+ @endif @endforeach