Ensure relation exists prior to showing button
This commit is contained in:
parent
b6350d323f
commit
d58d0d0fd1
1 changed files with 1 additions and 1 deletions
|
|
@ -50,7 +50,7 @@
|
|||
|
||||
|
||||
|
||||
@if($quote->invoice_id)
|
||||
@if($quote->invoice()->exists())
|
||||
<div class="mt-5 sm:mt-0 sm:ml-6 flex justify-end">
|
||||
<div class="inline-flex rounded-md shadow-sm">
|
||||
<a class="button button-primary bg-primary" href="/client/invoices/{{ $quote->invoice->hashed_id }}">{{ ctrans('texts.view_invoice') }}</a>
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue