Fixes for quote page

This commit is contained in:
Benjamin Beganović 2020-07-14 13:00:28 +02:00
parent d69bc00ce5
commit 556e1280d0
3 changed files with 6 additions and 2 deletions

View File

@ -11,6 +11,8 @@
namespace App\Events\Quote;
use App\Models\Company;
use App\Models\Quote;
use Illuminate\Queue\SerializesModels;
/**

View File

@ -112,7 +112,9 @@ class QuoteController extends Controller
event(new QuoteWasApproved($quote, $quote->company, Ninja::eventVars()));
}
return route('client.quotes.index')->withSuccess('Quote(s) approved successfully.');
return redirect()
->route('client.quotes.index')
->withSuccess('Quote(s) approved successfully.');
}
return $this->render('quotes.approve', [

View File

@ -37,7 +37,7 @@
<div class="px-4 py-5 border-b border-gray-200 sm:px-6">
<h3 class="text-lg leading-6 font-medium text-gray-900">
{{ ctrans('texts.invoice') }}
<a class="button-link" href="{{ route('client.quotes.show', $quote->hashed_id) }}">
<a class="button-link" href="{{ route('client.quote.show', $quote->hashed_id) }}">
({{ $quote->number }})
</a>
</h3>