diff --git a/resources/lang/en/texts.php b/resources/lang/en/texts.php index 1585340452a5..e40467673c62 100644 --- a/resources/lang/en/texts.php +++ b/resources/lang/en/texts.php @@ -1063,6 +1063,7 @@ $LANG = array( 'invalid_expiry' => 'The expiration date is not valid.', 'invalid_cvv' => 'The CVV is not valid.', 'cost' => 'Cost', + 'create_invoice_for_sample' => 'Note: create your first invoice to see a preview here.', ); diff --git a/resources/views/accounts/customize_design.blade.php b/resources/views/accounts/customize_design.blade.php index 2f60a9dd97e4..439ef1d4acef 100644 --- a/resources/views/accounts/customize_design.blade.php +++ b/resources/views/accounts/customize_design.blade.php @@ -153,7 +153,6 @@ @if (isset($sampleInvoice) && $sampleInvoice) var sample = {!! $sampleInvoice->toJSON() !!} - console.log(sample); $('#sampleData').show().html(prettyJson(sample)); @endif }); @@ -222,6 +221,9 @@ {!! trans('texts.customize_help') !!} + @if (empty($sampleInvoice)) +
{{ trans('texts.create_invoice_for_sample') }}
+ @endif