@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->invoices()->with(['items.taxes','paymentitems.payment','account'])->get()->where('due','>',0))->sum('due'),2) }}
Invoices Due {{ $x->count() }}