mirror of
https://github.com/invoiceninja/invoiceninja.git
synced 2024-11-13 22:54:25 +01:00
Ensure relation exists prior to showing button
This commit is contained in:
parent
b6350d323f
commit
d58d0d0fd1
@ -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…
Reference in New Issue
Block a user