Skip to content

Commit d229465

Browse files
committed
don not display empty due_at
1 parent f0e2bb9 commit d229465

File tree

1 file changed

+8
-6
lines changed

1 file changed

+8
-6
lines changed

resources/views/default.blade.php

Lines changed: 8 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -208,12 +208,14 @@
208208
{{ $invoice->created_at?->format(config('invoices.date_format')) }}
209209
</td>
210210
</tr>
211-
<tr>
212-
<td class="pb-1 pr-2 nowrap">{{ __('invoices::invoice.due_at') }}</td>
213-
<td class="pb-1" width="100%">
214-
{{ $invoice->due_at?->format(config('invoices.date_format')) }}
215-
</td>
216-
</tr>
211+
@if ($invoice->due_at)
212+
<tr>
213+
<td class="pb-1 pr-2 nowrap">{{ __('invoices::invoice.due_at') }}</td>
214+
<td class="pb-1" width="100%">
215+
{{ $invoice->due_at->format(config('invoices.date_format')) }}
216+
</td>
217+
</tr>
218+
@endif
217219
@if ($invoice->paid_at)
218220
<tr>
219221
<td class="pb-1 pr-2 nowrap">{{ __('invoices::invoice.paid_at') }}</td>

0 commit comments

Comments
 (0)