diff --git a/app/Mail/MigrationCompleted.php b/app/Mail/MigrationCompleted.php index b7d979f906a4..31c1bf10a144 100644 --- a/app/Mail/MigrationCompleted.php +++ b/app/Mail/MigrationCompleted.php @@ -36,7 +36,7 @@ class MigrationCompleted extends Mailable $data['settings'] = $this->company->settings; $data['company'] = $this->company->fresh(); $data['whitelabel'] = $this->company->account->isPaid() ? true : false; - $data['check_data'] = $this->check_data; + $data['check_data'] = $this->check_data ?: ''; $data['logo'] = $this->company->present()->logo(); $result = $this->from(config('mail.from.address'), config('mail.from.name')) diff --git a/resources/views/email/import/completed.blade.php b/resources/views/email/import/completed.blade.php index e7b910cf486c..acefb2c17802 100644 --- a/resources/views/email/import/completed.blade.php +++ b/resources/views/email/import/completed.blade.php @@ -67,7 +67,7 @@
{{ ctrans('texts.documents') }}: {{ count($company->documents) }}
@endif - @if($check_data) + @if(isset($check_data))Data Quality:
{!! $check_data !!}
@endif