@extends('layout.app')
@section('content')
@php
// $pCustomer = TopmenuService::countPendingCustomer();
// $counter = TopmenuService::getDashboardCounter();
// $eCustomer = TopmenuService::countExpiredCustomer();
// $mCustomer = TopmenuService::countMonthlyCustomer();
// $closeCustomer = TopmenuService::totalClosedCustomer();
// //
// $allCustomer = TopmenuService::countAllcustomer();
// $allActiveCustomer = TopmenuService::activeCustomer();
// $allDectiveCustomer = TopmenuService::deactivatedCustomer();
@endphp
@role('PendingCustomerChecker')
@endrole
{{-- Modern overview counters --}}
@include('dashboard.new.counter')
@include('dashboard.new.resellerCounter')
@can('show-dashboard')
{{-- Modern charts + online users --}}
@include('dashboard.new.barchart')
{{-- Billing summary widgets / tables --}}
@include('dashboard.billreport')
| ID |
Name |
Balance |
POP |
@foreach ($resellers as $r)
|
{{ $r->id }}
|
{{ $r->name }}
|
{{ $r->balance[0]['amount'] ?? 0 }}
|
@foreach ($r->pops as $pop)
@if ($pop->reseller_id == $r->id)
|
{{ $pop->popname }}
|
@if (!empty($pop->balance->first()))
{{ $pop->balance->first()->amount }}
@else
0
@endif
|
@endif
@endforeach
|
@endforeach
@endcan
@can('token-dashboard')
@include('dashboard.token')
@endcan
{{-- @role('Reseller Admin') --}}
@include('dashboard.reseller')
@include('dashboard.sub-reseller')
@endsection