Removed redundant functions from Invoice, optimised Invoice tables
This commit is contained in:
@@ -28,16 +28,16 @@
|
||||
<td>{{ $o->order_info_reference ?? '' }}</td>
|
||||
</tr>
|
||||
@endif
|
||||
@if ($o->date_start AND $o->isPending())
|
||||
@if ($o->start_at AND $o->isPending())
|
||||
<tr>
|
||||
<th>Pending Connection</th>
|
||||
<td>{{ $o->date_start->format('Y-m-d') }}</td>
|
||||
<td>{{ $o->start_at->format('Y-m-d') }}</td>
|
||||
</tr>
|
||||
@endif
|
||||
@if ($o->date_end)
|
||||
@if ($o->stop_at)
|
||||
<tr>
|
||||
<th>Cancellation Date</th>
|
||||
<td>{{ $o->date_end->format('Y-m-d') }}</td>
|
||||
<td>{{ $o->stop_at->format('Y-m-d') }}</td>
|
||||
</tr>
|
||||
@endif
|
||||
@if (($o->active OR $o->isPending()) AND ! $o->external_billing)
|
||||
@@ -74,7 +74,7 @@
|
||||
<tr>
|
||||
<th>Cancelled</th>
|
||||
<!-- @todo This should show the cancelled date -->
|
||||
<td>{!! $o->date_end ? $o->date_end->format('Y-m-d') : ($o->paid_to ? $o->paid_to->format('Y-m-d') : '').'<sup>*</sup>' !!}</td>
|
||||
<td>{!! $o->stop_at ? $o->stop_at->format('Y-m-d') : ($o->paid_to ? $o->paid_to->format('Y-m-d') : '').'<sup>*</sup>' !!}</td>
|
||||
</tr>
|
||||
@endif
|
||||
</table>
|
||||
|
Reference in New Issue
Block a user