From b267353ced580303ff2e9fb3c78de01a69e8996b Mon Sep 17 00:00:00 2001 From: David Bomba Date: Thu, 29 Oct 2020 21:19:10 +1100 Subject: [PATCH] Fixes for credits view in portal --- .../ninja2020/components/livewire/credits-table.blade.php | 2 +- routes/client.php | 4 +++- 2 files changed, 4 insertions(+), 2 deletions(-) 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 aa4d99a6de83..02a19c140864 100644 --- a/resources/views/portal/ninja2020/components/livewire/credits-table.blade.php +++ b/resources/views/portal/ninja2020/components/livewire/credits-table.blade.php @@ -54,7 +54,7 @@ {{ empty($credit->public_notes) ? '/' : $credit->public_notes }} - + @lang('texts.view') diff --git a/routes/client.php b/routes/client.php index 9cf7fa3a5015..083befda64c3 100644 --- a/routes/client.php +++ b/routes/client.php @@ -58,7 +58,9 @@ Route::group(['middleware' => ['auth:contact', 'locale'], 'prefix' => 'client', Route::get('quotes/{quote_invitation}', 'ClientPortal\QuoteController@show')->name('quote.show_invitation'); Route::get('credits', 'ClientPortal\CreditController@index')->name('credits.index'); - Route::get('credits/{credit}', 'ClientPortal\CreditController@show')->name('credits.show'); + Route::get('credits/{credit}', 'ClientPortal\CreditController@show')->name('credit.show'); + + Route::get('credits/{credit_invitation}', 'ClientPortal\CreditController@show')->name('credits.show_invitation'); Route::get('client/switch_company/{contact}', 'ClientPortal\SwitchCompanyController')->name('switch_company');