@foreach ($managers as $m) @endforeach
Name Received Commission Paid Commission Balance Action
{{ $m->name }} @foreach ($accounts as $ac) @if ($ac->reseller_id == $m->id) {{ $ac->ramount }} @endif @endforeach @foreach ($accounts as $ac) @if ($ac->reseller_id == $m->id) {{ $ac->pamount ?? 0 }} @endif @endforeach @foreach ($accounts as $ac) @if ($ac->reseller_id == $m->id) {{ $ac->ramount - $ac->pamount }} @endif @endforeach View