diff --git a/resources/views/dashboard.blade.php b/resources/views/dashboard.blade.php
index ad8b8c4e097b..d65b8290a597 100644
--- a/resources/views/dashboard.blade.php
+++ b/resources/views/dashboard.blade.php
@@ -153,10 +153,10 @@
@if (!$invoice->is_quote)
{!! \App\Models\Invoice::calcLink($invoice) !!} |
- @if (\App\Models\Client::canViewItemByOwner($payment->client_user_id))
- {!! link_to('/clients/'.$payment->client_public_id, trim($payment->client_name) ?: (trim($payment->first_name . ' ' . $payment->last_name) ?: $payment->email)) !!} |
+ @if (\App\Models\Client::canViewItemByOwner($invoice->client_user_id))
+ {!! link_to('/clients/'.$invoice->client_public_id, trim($invoice->client_name) ?: (trim($invoice->first_name . ' ' . $invoice->last_name) ?: $invoice->email)) !!} |
@else
- {{ trim($payment->client_name) ?: (trim($payment->first_name . ' ' . $payment->last_name) ?: $payment->email) }} |
+ {{ trim($invoice->client_name) ?: (trim($invoice->first_name . ' ' . $invoice->last_name) ?: $invoice->email) }} |
@endif
{{ Utils::fromSqlDate($invoice->due_date) }} |
{{ Utils::formatMoney($invoice->balance, $invoice->currency_id ?: ($account->currency_id ?: DEFAULT_CURRENCY)) }} |
@@ -188,10 +188,10 @@
@if (!$invoice->is_quote)
{!! \App\Models\Invoice::calcLink($invoice) !!} |
- @if (\App\Models\Client::canViewItemByOwner($payment->client_user_id))
- {!! link_to('/clients/'.$payment->client_public_id, trim($payment->client_name) ?: (trim($payment->first_name . ' ' . $payment->last_name) ?: $payment->email)) !!} |
+ @if (\App\Models\Client::canViewItemByOwner($invoice->client_user_id))
+ {!! link_to('/clients/'.$invoice->client_public_id, trim($invoice->client_name) ?: (trim($invoice->first_name . ' ' . $invoice->last_name) ?: $invoice->email)) !!} |
@else
- {{ trim($payment->client_name) ?: (trim($payment->first_name . ' ' . $payment->last_name) ?: $payment->email) }} |
+ {{ trim($invoice->client_name) ?: (trim($invoice->first_name . ' ' . $invoice->last_name) ?: $invoice->email) }} |
@endif
{{ Utils::fromSqlDate($invoice->due_date) }} |
{{ Utils::formatMoney($invoice->balance, $invoice->currency_id ?: ($account->currency_id ?: DEFAULT_CURRENCY)) }} |