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