@if(($x=$o->next_invoice_items($future))->count())
@foreach ($x->groupBy('product_id') as $id => $oo) @foreach ($oo->groupBy('service_id') as $ooo) @foreach ($ooo as $io) @endforeach @endforeach @endforeach
{{ $oo->first()->product->name }} ${{ number_format($oo->sum('total'),2) }}
{{ $ooo->first()->service->sid }} {{ $ooo->first()->service->name }}
    {{ $io->item_type_name }} ${{ number_format($io->total,2) }}
TOTAL ${{ number_format($x->sum('total'),2) }}
@else

No items currently due to invoice.

@endif