diff --git a/CHANGELOG.md b/CHANGELOG.md index 7ff7baa5ea39..bc886d8586e9 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -3,6 +3,7 @@ ## [Unreleased (daily channel)](https://github.com/invoiceninja/invoiceninja/tree/v5-develop) - Add Cache-control: no-cache to prevent overaggressive caching of assets - Client portal: Multiple accounts access improvements (#5703) +- Client portal: "Credits" updates (#5734) ## [v5.1.56-release](https://github.com/invoiceninja/invoiceninja/releases/tag/v5.1.56-release) ## Fixed: diff --git a/app/Http/Controllers/ClientPortal/CreditController.php b/app/Http/Controllers/ClientPortal/CreditController.php index ea2eefcb2c74..4d09ef3ecc71 100644 --- a/app/Http/Controllers/ClientPortal/CreditController.php +++ b/app/Http/Controllers/ClientPortal/CreditController.php @@ -22,8 +22,15 @@ class CreditController extends Controller public function show(ShowCreditRequest $request, Credit $credit) { - return $this->render('credits.show', [ - 'credit' => $credit, - ]); + set_time_limit(0); + + $data = ['credit' => $credit]; + + + if ($request->query('mode') === 'fullscreen') { + return render('credits.show-fullscreen', $data); + } + + return $this->render('credits.show', $data); } } diff --git a/resources/views/portal/ninja2020/components/livewire/credits-table.blade.php b/resources/views/portal/ninja2020/components/livewire/credits-table.blade.php index e2ae75bafb0f..f3b0eb07f150 100644 --- a/resources/views/portal/ninja2020/components/livewire/credits-table.blade.php +++ b/resources/views/portal/ninja2020/components/livewire/credits-table.blade.php @@ -59,7 +59,7 @@ {{ $credit->formatDate($credit->date, $credit->client->date_format()) }} - {{ empty($credit->public_notes) ? '/' : $credit->public_notes }} + {{ $credit->public_notes }} diff --git a/resources/views/portal/ninja2020/credits/show-fullscreen.blade.php b/resources/views/portal/ninja2020/credits/show-fullscreen.blade.php new file mode 100644 index 000000000000..438899646beb --- /dev/null +++ b/resources/views/portal/ninja2020/credits/show-fullscreen.blade.php @@ -0,0 +1,2 @@ + diff --git a/resources/views/portal/ninja2020/credits/show.blade.php b/resources/views/portal/ninja2020/credits/show.blade.php index fd792226c636..569e1cde527f 100644 --- a/resources/views/portal/ninja2020/credits/show.blade.php +++ b/resources/views/portal/ninja2020/credits/show.blade.php @@ -7,121 +7,84 @@ @endpush @section('body') -
-
- - -
-
- + +
+ + + +
+
@endsection