diff --git a/app/Http/Controllers/ClientPortal/InvoiceController.php b/app/Http/Controllers/ClientPortal/InvoiceController.php index 0f75cf33c6..1c6ee81eba 100644 --- a/app/Http/Controllers/ClientPortal/InvoiceController.php +++ b/app/Http/Controllers/ClientPortal/InvoiceController.php @@ -54,11 +54,11 @@ class InvoiceController extends Controller 'invoice' => $invoice, ]; - if ($request->query('mode') === 'fullscreen') { - return $this->render('invoices.show.fullscreen', $data); + if ($request->query('mode') === 'portal') { + return $this->render('invoices.show', $data); } - return $this->render('invoices.show', $data); + return $this->render('invoices.show.fullscreen', $data); } /** @@ -135,7 +135,7 @@ class InvoiceController extends Controller ]; // nlog($data); - + return $this->render('invoices.payment', $data); } diff --git a/app/Http/Controllers/ClientPortal/QuoteController.php b/app/Http/Controllers/ClientPortal/QuoteController.php index 5200f2d628..85e7ab4a07 100644 --- a/app/Http/Controllers/ClientPortal/QuoteController.php +++ b/app/Http/Controllers/ClientPortal/QuoteController.php @@ -43,11 +43,11 @@ class QuoteController extends Controller 'quote' => $quote, ]; - if ($request->query('mode') === 'fullscreen') { - return $this->render('quotes.show.fullscreen', $data); + if ($request->query('mode') === 'portal') { + return $this->render('quotes.show', $data); } - return $this->render('quotes.show', $data); + return $this->render('quotes.show.fullscreen', $data); } public function bulk(ProcessQuotesInBulkRequest $request) @@ -111,7 +111,7 @@ class QuoteController extends Controller foreach ($quotes as $quote) { $quote->service()->approve(auth()->user())->save(); event(new QuoteWasApproved(auth('contact')->user(), $quote, $quote->company, Ninja::eventVars())); - + if (request()->has('signature') && !is_null(request()->signature) && !empty(request()->signature)) { InjectSignature::dispatch($quote, request()->signature); } diff --git a/resources/views/portal/ninja2020/components/livewire/invoices-table.blade.php b/resources/views/portal/ninja2020/components/livewire/invoices-table.blade.php index baf97af907..66da6013ce 100644 --- a/resources/views/portal/ninja2020/components/livewire/invoices-table.blade.php +++ b/resources/views/portal/ninja2020/components/livewire/invoices-table.blade.php @@ -100,11 +100,11 @@ @endif - + {{ ctrans('texts.view') }} diff --git a/resources/views/portal/ninja2020/components/livewire/quotes-table.blade.php b/resources/views/portal/ninja2020/components/livewire/quotes-table.blade.php index abf0f70751..ab028ee688 100644 --- a/resources/views/portal/ninja2020/components/livewire/quotes-table.blade.php +++ b/resources/views/portal/ninja2020/components/livewire/quotes-table.blade.php @@ -91,7 +91,7 @@