@if($user->isReseller() && ($o->accounts->count() <= 2) && ($x=$o->accounts->pluck('providers')->flatten())->count())
Accounting @foreach($x as $po) {{ ucfirst($po->name) }} @endforeach
@endif @if ($o->accounts_all->count() > 1)
Linked Accounts {{ number_format($o->accounts_all->count()) }}
@endif
Active Services {{ $o->accounts_all->map(fn($item)=>$item->services->where('active',TRUE)->count())->sum() }} /{{ $o->accounts_all->map(fn($item)=>$item->services->count())->sum() }}
Account Balance $ {{ number_format(($x=$o->accounts_all->map(fn($item)=>$item->invoiceSummaryDue()->get()->pluck('_balance'))->flatten())->sum(),2) }}
Invoices Due {{ $x->count() }}