From 8a93cda5ff174261e07da434107582ee0a79112a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Benjamin=20Beganovi=C4=87?= Date: Sat, 10 Apr 2021 14:01:09 +0200 Subject: [PATCH 1/5] wip --- .../Livewire/SubscriptionInvoicesTable.php | 40 --------- .../subscriptions-invoices-table.blade.php | 83 ------------------- .../ninja2020/subscriptions/index.blade.php | 1 - 3 files changed, 124 deletions(-) delete mode 100644 app/Http/Livewire/SubscriptionInvoicesTable.php delete mode 100644 resources/views/portal/ninja2020/components/livewire/subscriptions-invoices-table.blade.php diff --git a/app/Http/Livewire/SubscriptionInvoicesTable.php b/app/Http/Livewire/SubscriptionInvoicesTable.php deleted file mode 100644 index 4c5a56355fca..000000000000 --- a/app/Http/Livewire/SubscriptionInvoicesTable.php +++ /dev/null @@ -1,40 +0,0 @@ -where('client_id', auth('contact')->user()->client->id) - ->whereNotNull('subscription_id') - ->orderBy($this->sort_field, $this->sort_asc ? 'asc' : 'desc') - ->where('balance', '=', 0) - ->paginate($this->per_page); - - return render('components.livewire.subscriptions-invoices-table', [ - 'invoices' => $query, - ]); - } -} diff --git a/resources/views/portal/ninja2020/components/livewire/subscriptions-invoices-table.blade.php b/resources/views/portal/ninja2020/components/livewire/subscriptions-invoices-table.blade.php deleted file mode 100644 index 5e821756fea7..000000000000 --- a/resources/views/portal/ninja2020/components/livewire/subscriptions-invoices-table.blade.php +++ /dev/null @@ -1,83 +0,0 @@ -
-

- One-time payments -

- -
-
- - -
-
-
-
- - - - - - - - - - - @forelse($invoices as $invoice) - - - - - - - @empty - - - - @endforelse - -
-

- {{ ctrans('texts.subscription') }} -

-
-

- {{ ctrans('texts.invoice') }} -

-
-

- {{ ctrans('texts.amount') }} -

-
-

- {{ ctrans('texts.date') }} -

-
- {{ $invoice->subscription->name }} - - - {{ $invoice->number }} - - - {{ App\Utils\Number::formatMoney($invoice->amount, $invoice->client) }} - - {{ $invoice->formatDate($invoice->date, $invoice->client->date_format()) }} -
- {{ ctrans('texts.no_results') }} -
-
-
- -
- @if($invoices->total() > 0) - - @endif - {{ $invoices->links('portal/ninja2020/vendor/pagination') }} -
-
diff --git a/resources/views/portal/ninja2020/subscriptions/index.blade.php b/resources/views/portal/ninja2020/subscriptions/index.blade.php index 648873012fae..d48f659860f9 100644 --- a/resources/views/portal/ninja2020/subscriptions/index.blade.php +++ b/resources/views/portal/ninja2020/subscriptions/index.blade.php @@ -3,7 +3,6 @@ @section('body')
- @livewire('subscription-invoices-table') @livewire('subscription-recurring-invoices-table')
@endsection From 18b534881520e1909024a3a79f0bcd6ae07a4797 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Benjamin=20Beganovi=C4=87?= Date: Sat, 10 Apr 2021 14:01:25 +0200 Subject: [PATCH 2/5] wip --- .../livewire/subscriptions-recurring-invoices-table.blade.php | 4 ---- 1 file changed, 4 deletions(-) diff --git a/resources/views/portal/ninja2020/components/livewire/subscriptions-recurring-invoices-table.blade.php b/resources/views/portal/ninja2020/components/livewire/subscriptions-recurring-invoices-table.blade.php index a34534abd86e..a44cb577e571 100644 --- a/resources/views/portal/ninja2020/components/livewire/subscriptions-recurring-invoices-table.blade.php +++ b/resources/views/portal/ninja2020/components/livewire/subscriptions-recurring-invoices-table.blade.php @@ -1,8 +1,4 @@
-

- Subscriptions -

-
From 7bf33e64b493b276963cd9fca796586a54bf8804 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Benjamin=20Beganovi=C4=87?= Date: Sat, 10 Apr 2021 14:01:32 +0200 Subject: [PATCH 3/5] wip --- .../livewire/subscriptions-recurring-invoices-table.blade.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/resources/views/portal/ninja2020/components/livewire/subscriptions-recurring-invoices-table.blade.php b/resources/views/portal/ninja2020/components/livewire/subscriptions-recurring-invoices-table.blade.php index a44cb577e571..61b699ad3ed9 100644 --- a/resources/views/portal/ninja2020/components/livewire/subscriptions-recurring-invoices-table.blade.php +++ b/resources/views/portal/ninja2020/components/livewire/subscriptions-recurring-invoices-table.blade.php @@ -1,5 +1,5 @@
-
+