From b736bab143ee6da84327af72335debab5bf7d2e2 Mon Sep 17 00:00:00 2001 From: Burak Civan Date: Wed, 16 Nov 2022 18:16:15 +0300 Subject: [PATCH 1/2] payment method problem --- .../views/portal/invoices/preview.blade.php | 44 ++++++++++++------- .../views/portal/invoices/show.blade.php | 44 ++++++++++++------- .../views/portal/invoices/signed.blade.php | 44 ++++++++++++------- 3 files changed, 84 insertions(+), 48 deletions(-) diff --git a/resources/views/portal/invoices/preview.blade.php b/resources/views/portal/invoices/preview.blade.php index 86c14a20b..c65867582 100644 --- a/resources/views/portal/invoices/preview.blade.php +++ b/resources/views/portal/invoices/preview.blade.php @@ -28,23 +28,35 @@ @php $is_active = true; @endphp -
- @foreach ($payment_methods as $key => $name) - @stack('invoice_{{ $key }}_tab_start') -
- -
- {{ $name }} -
-
-
- @stack('invoice_{{ $key }}_tab_end') +
+
+ @foreach ($payment_methods as $key => $name) + @stack('invoice_{{ $key }}_tab_start') +
+ +
+ {{ $name }} +
+
+
+ @stack('invoice_{{ $key }}_tab_end') - @php $is_active = false; @endphp - @endforeach + @php $is_active = false; @endphp + @endforeach +
+ + @if (count($payment_methods) > 3) +
+ chevron_right +
+ +
+ chevron_left +
+ @endif
diff --git a/resources/views/portal/invoices/show.blade.php b/resources/views/portal/invoices/show.blade.php index 33736c241..bb1ae6fe6 100644 --- a/resources/views/portal/invoices/show.blade.php +++ b/resources/views/portal/invoices/show.blade.php @@ -26,23 +26,35 @@ @php $is_active = true; @endphp -
- @foreach ($payment_methods as $key => $name) - @stack('invoice_{{ $key }}_tab_start') -
- -
- {{ $name }} -
-
-
- @stack('invoice_{{ $key }}_tab_end') +
+
+ @foreach ($payment_methods as $key => $name) + @stack('invoice_{{ $key }}_tab_start') +
+ +
+ {{ $name }} +
+
+
+ @stack('invoice_{{ $key }}_tab_end') - @php $is_active = false; @endphp - @endforeach + @php $is_active = false; @endphp + @endforeach +
+ + @if (count($payment_methods) > 3) +
+ chevron_right +
+ +
+ chevron_left +
+ @endif
diff --git a/resources/views/portal/invoices/signed.blade.php b/resources/views/portal/invoices/signed.blade.php index c3e00e454..86bed3ae3 100644 --- a/resources/views/portal/invoices/signed.blade.php +++ b/resources/views/portal/invoices/signed.blade.php @@ -35,23 +35,35 @@ @php $is_active = true; @endphp -
- @foreach ($payment_methods as $key => $name) - @stack('invoice_{{ $key }}_tab_start') -
- -
- {{ $name }} -
-
-
- @stack('invoice_{{ $key }}_tab_end') +
+
+ @foreach ($payment_methods as $key => $name) + @stack('invoice_{{ $key }}_tab_start') +
+ +
+ {{ $name }} +
+
+
+ @stack('invoice_{{ $key }}_tab_end') - @php $is_active = false; @endphp - @endforeach + @php $is_active = false; @endphp + @endforeach +
+ + @if (count($payment_methods) > 3) +
+ chevron_right +
+ +
+ chevron_left +
+ @endif
From 8336ac996e4eb65f3b5b334e996b489ccf00c31d Mon Sep 17 00:00:00 2001 From: Burak Civan Date: Wed, 16 Nov 2022 18:16:46 +0300 Subject: [PATCH 2/2] js refactoring --- resources/assets/js/views/portal/apps.js | 27 ------------------------ 1 file changed, 27 deletions(-) diff --git a/resources/assets/js/views/portal/apps.js b/resources/assets/js/views/portal/apps.js index 308420c25..547c56aa4 100644 --- a/resources/assets/js/views/portal/apps.js +++ b/resources/assets/js/views/portal/apps.js @@ -66,33 +66,6 @@ const app = new Vue({ if (typeof this.form.password !== 'undefined') { this.form.password = ''; } - - - if (document.querySelector('[data-tabs-swiper]').childElementCount > 2) { - - document.querySelectorAll('[data-tabs-slide]').forEach((item) => { - item.classList.add('swiper-slide'); - }); - - document.querySelector('[data-tabs-swiper]').classList.add('swiper', 'swiper-links'); - - let html = ` -
- ${document.querySelector('[data-tabs-swiper]').innerHTML} -
- -
- chevron_right -
- -
- chevron_left -
- `; - - document.querySelector('[data-tabs-swiper]').innerHTML = html; - } - new Swiper(".swiper-links", { loop: false,