diff --git a/resources/views/accounts/invoice_design.blade.php b/resources/views/accounts/invoice_design.blade.php index 13efe002ecf7..d14a70e75a93 100644 --- a/resources/views/accounts/invoice_design.blade.php +++ b/resources/views/accounts/invoice_design.blade.php @@ -85,9 +85,11 @@ {!! Former::populate($account) !!} {!! Former::populateField('hide_quantity', intval($account->hide_quantity)) !!} {!! Former::populateField('hide_paid_to_date', intval($account->hide_paid_to_date)) !!} - @foreach ($invoiceLabels as $field => $value) - {!! Former::populateField("labels_{$field}", $value) !!} - @endforeach + @if ($invoiceLabels) + @foreach ($invoiceLabels as $field => $value) + {!! Former::populateField("labels_{$field}", $value) !!} + @endforeach + @endif