@php($o->load(['services_active.invoiced_service_items_active_recent']))

Active Services

@if(($x=$o->services_active)->count()) @foreach ($x as $so) @endforeach
ID Category Service Product Next Invoice
{{ $so->sid }} {{ $so->product->category_name }} {{ $so->name_short }} {{ $so->product->name }} {{ $so->external_billing ? '-' : $so->invoice_next->format('Y-m-d') }}
Count {{ $x->count() }}  
@else

No services active

@endif
@pa(datatables,rowgroup|conditionalpaging) @section('page-scripts') @append