From 36304d90d3771cd1d7d948c1afeb259414173e52 Mon Sep 17 00:00:00 2001 From: Burak Civan Date: Tue, 16 Aug 2022 10:48:18 +0300 Subject: [PATCH] portal payment methods slider convert to tab component --- .../views/portal/invoices/preview.blade.php | 106 ++++++++--------- .../views/portal/invoices/show.blade.php | 108 +++++++++--------- .../views/portal/invoices/signed.blade.php | 90 ++++++++------- 3 files changed, 160 insertions(+), 144 deletions(-) diff --git a/resources/views/portal/invoices/preview.blade.php b/resources/views/portal/invoices/preview.blade.php index b8555526baa..adab432ebea 100644 --- a/resources/views/portal/invoices/preview.blade.php +++ b/resources/views/portal/invoices/preview.blade.php @@ -23,68 +23,70 @@
@if (! empty($payment_methods) && ! in_array($invoice->status, ['paid', 'cancelled'])) -
+
@php $is_active = true; @endphp - - - - - - - + + @foreach ($payment_methods as $key => $name) + @stack('invoice_{{ $key }}_content_start') + +
+ +
+
+ @stack('invoice_{{ $key }}_content_end') + + @php $is_active = false; @endphp + @endforeach + + + + + + +
+ @endif @if ($invoice->transactions->count()) diff --git a/resources/views/portal/invoices/show.blade.php b/resources/views/portal/invoices/show.blade.php index b1bc4adebe7..239a04d1380 100644 --- a/resources/views/portal/invoices/show.blade.php +++ b/resources/views/portal/invoices/show.blade.php @@ -21,66 +21,70 @@
@if (! empty($payment_methods) && ! in_array($invoice->status, ['paid', 'cancelled'])) -
-
+ +
@php $is_active = true; @endphp - - @php $is_active = true; @endphp - @foreach ($payment_methods as $key => $name) - @stack('invoice_{{ $key }}_content_start') - -
- -
- - @stack('invoice_{{ $key }}_content_end') - - @php $is_active = false; @endphp - @endforeach -
- - - - - - + + @foreach ($payment_methods as $key => $name) + @stack('invoice_{{ $key }}_content_start') + +
+ +
+
+ @stack('invoice_{{ $key }}_content_end') + + @php $is_active = false; @endphp + @endforeach + + + + + + +
+
@endif @if ($invoice->transactions->count()) diff --git a/resources/views/portal/invoices/signed.blade.php b/resources/views/portal/invoices/signed.blade.php index 9f2e35cf957..a7af3a0f14d 100644 --- a/resources/views/portal/invoices/signed.blade.php +++ b/resources/views/portal/invoices/signed.blade.php @@ -30,60 +30,70 @@
@if (! empty($payment_methods) && ! in_array($invoice->status, ['paid', 'cancelled'])) -
+
@php $is_active = true; @endphp - - - - - - + + @foreach ($payment_methods as $key => $name) + @stack('invoice_{{ $key }}_content_start') + +
+ +
+
+ @stack('invoice_{{ $key }}_content_end') + + @php $is_active = false; @endphp + @endforeach + + + + + + +
+ @endif @if ($invoice->transactions->count())