@use(Carbon\Carbon) @if(($x=$o->invoice_next())->count())

The following items will be invoiced on or after {{ max($x->first()->start_at->subDays(config('osb.invoice_days')),Carbon::now())->format('Y-m-d') }}

@foreach ($x->groupBy('service_id') as $id => $oo) @endforeach
{{ $oo->first()?->product?->category_name ?: '-' }} @if($id) {{ $oo->first()->service->name }} @else Account Charges @endif ${{ number_format($oo->sum('total'),2) }}
TOTAL ${{ number_format($x->sum('total'),2) }}
@else

No items currently due to invoice.

@endif