@extends('layout.dashboard_chart') @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 @can('show-dashboard')

Customer Information

All Customer {{ $allClient ?? 0 }}

@include('dashboard.billreport')

Reseller Information

@foreach ($resellers as $r) @endforeach
ID Name Balance POP
{{ $r->id }} {{ $r->name }} {{ $r->balance[0]['amount'] ?? 0 }} @foreach ($r->pops as $pop) @if ($pop->reseller_id == $r->id) @endif @endforeach
{{ $pop->popname }} @if (!empty($pop->balance->first())) {{ $pop->balance->first()->amount }} @else 0 @endif
@endcan @can('token-dashboard')
@include('dashboard.token')
@endcan {{-- @role('Reseller Admin') --}} @include('dashboard.reseller') @include('dashboard.sub-reseller') @endsection