@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')
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