From 2621c6af0cac302fbc1bea243395b0065035ad3b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Benjamin=20Beganovi=C4=87?= Date: Tue, 21 Sep 2021 14:10:02 +0200 Subject: [PATCH] Remove Statement component --- app/Http/Livewire/Statement.php | 49 ------------------- .../ninja2020/components/statement.blade.php | 39 --------------- 2 files changed, 88 deletions(-) delete mode 100644 app/Http/Livewire/Statement.php delete mode 100644 resources/views/portal/ninja2020/components/statement.blade.php diff --git a/app/Http/Livewire/Statement.php b/app/Http/Livewire/Statement.php deleted file mode 100644 index 42f5a7527d19..000000000000 --- a/app/Http/Livewire/Statement.php +++ /dev/null @@ -1,49 +0,0 @@ - 0, - 'show_aging_table' => 0, - ]; - - public function mount(): void - { - $this->options['start_date'] = now()->startOfYear()->format('Y-m-d'); - $this->options['end_date'] = now()->format('Y-m-d'); - } - - protected function getCurrentUrl(): string - { - return route('client.statement.raw', $this->options); - } - - public function download() - { - return redirect()->route('client.statement.raw', \array_merge($this->options, ['download' => 1])); - } - - public function render(): View - { - $this->url = route('client.statement.raw', $this->options); - - return render('components.statement'); - } -} diff --git a/resources/views/portal/ninja2020/components/statement.blade.php b/resources/views/portal/ninja2020/components/statement.blade.php deleted file mode 100644 index be4713a57c72..000000000000 --- a/resources/views/portal/ninja2020/components/statement.blade.php +++ /dev/null @@ -1,39 +0,0 @@ -
-
-
- {{-- --}} - -
- - - -
- - - - -
- -
- - @include('portal.ninja2020.components.pdf-viewer', ['url' => $url]) -