From 9c963dd4ad5a176b145c445faf32d809430a67b2 Mon Sep 17 00:00:00 2001 From: Camille Badique Date: Tue, 5 Dec 2023 16:41:47 +0100 Subject: [PATCH] Only display the tax line inside checkout summary if the lunar.pricing.stored_inclusive_of_tax configuration is set to false --- .../views/livewire/checkout-page.blade.php | 22 ++++++++++--------- 1 file changed, 12 insertions(+), 10 deletions(-) diff --git a/resources/views/livewire/checkout-page.blade.php b/resources/views/livewire/checkout-page.blade.php index fd7b7a9e..ebfe6f3a 100644 --- a/resources/views/livewire/checkout-page.blade.php +++ b/resources/views/livewire/checkout-page.blade.php @@ -52,17 +52,19 @@ @endif - @foreach ($cart->taxBreakdown->amounts as $tax) -
-
- {{ $tax->description }} -
+ @if(config('lunar.pricing.stored_inclusive_of_tax') === false) + @foreach ($cart->taxBreakdown->amounts as $tax) +
+
+ {{ $tax->description }} +
-
- {{ $tax->price->formatted() }} -
-
- @endforeach +
+ {{ $tax->price->formatted() }} +
+
+ @endforeach + @endif