Skip to content

Commit a462609

Browse files
author
Quentin Gabriele
committed
fix colspan
1 parent c193e6c commit a462609

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

resources/views/default.blade.php

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -350,10 +350,12 @@
350350
</tr>
351351
@endforeach
352352

353+
@php($colspan = $displayTaxColumn ? "3" : "2")
354+
353355
<tr>
354356
{{-- empty space --}}
355357
<td class="py-2 pr-2"></td>
356-
<td class="p-2 has-border-bottom-light" colspan="3">
358+
<td class="p-2 has-border-bottom-light" colspan="{{ $colspan }}">
357359
{{ __('invoices::invoice.subtotal_amount') }}</td>
358360
<td class="nowrap py-2 pl-2 has-border-bottom-light has-text-right">
359361
{{ $invoice->formatMoney($invoice->subTotalAmount()) }}
@@ -363,7 +365,7 @@
363365
<tr>
364366
{{-- empty space --}}
365367
<td class="py-2 pr-2"></td>
366-
<td class="p-2 has-border-bottom-light" colspan="3">
368+
<td class="p-2 has-border-bottom-light" colspan="{{ $colspan }}">
367369
{{ $invoice->tax_label ?? __('invoices::invoice.tax_label') }}
368370
</td>
369371
<td class="nowrap py-2 pl-2 has-border-bottom-light has-text-right">
@@ -374,7 +376,7 @@
374376
<tr>
375377
{{-- empty space --}}
376378
<td class="py-2 pr-2"></td>
377-
<td class="p-2 has-border-bottom-light" colspan="3">
379+
<td class="p-2 has-border-bottom-light" colspan="{{ $colspan }}">
378380
<strong>{{ __('invoices::invoice.total_amount') }}</strong>
379381
</td>
380382
<td class="nowrap py-2 pl-2 has-border-bottom-light has-text-right">

0 commit comments

Comments
 (0)