@extends('layouts.app') @section('title', 'MAC Reseller Dashboard - ISP ERP System') @section('styles') @endsection @section('page-title', 'MAC Reseller Dashboard') @section('content')

Welcome back, {{ Auth::user()->name }}!

MAC Reseller Dashboard - Here's what's happening with your PPPoE clients today. {{ date('l, F j, Y') }}

{{ $totalClients }}
Total PPPoE Clients
{{ $totalClients }} clients managed
{{ $activeClients }}
Active Clients
{{ $activeClients }} active connections
{{ $suspendedClients }}
Suspended Clients
{{ $suspendedClients }} clients suspended
{{ $onlineClients }}
Online Clients
{{ $onlineClients }} clients connected
{{ $accessibleServers }}
Accessible Servers
{{ $accessibleServers }} routers available
৳{{ number_format($monthlyRevenue, 2) }}
Monthly Revenue
৳{{ number_format($monthlyRevenue, 2) }} monthly revenue
{{ $pendingBills }}
Pending Bills
{{ $pendingBills }} pending bills
{{ $totalClients > 0 ? round(($activeClients / $totalClients) * 100, 1) : 0 }}%
Active Rate
{{ $totalClients > 0 ? round(($activeClients / $totalClients) * 100, 1) : 0 }}% success rate
New PPPoE Clients (Last 7 Days)
@if($newClients->count() > 0)
@foreach($newClients as $clientInfo) @endforeach
Client Name Username Package Branch Status Joined Date Action
{{ $clientInfo->client->name ?? 'N/A' }}
{{ $clientInfo->client->phone ?? 'No phone' }}
{{ $clientInfo->client->username ?? 'N/A' }} @if($clientInfo->client->package_name ?? false) {{ $clientInfo->client->package_name }}
৳{{ number_format($clientInfo->client->package_price ?? 0, 2) }} @else No package @endif
@if($clientInfo->client->branch ?? false) {{ $clientInfo->client->branch->name }} @else No branch @endif @if(($clientInfo->client->status ?? '') === 'active') Active @elseif(($clientInfo->client->status ?? '') === 'suspended') Suspended @else {{ ucfirst($clientInfo->client->status ?? 'Unknown') }} @endif
{{ $clientInfo->created_at->format('M d, Y') }}
{{ $clientInfo->created_at->format('h:i A') }}
@if($clientInfo->client ?? false) @else No client data @endif
@else
No New Clients

No new PPPoE clients have been assigned to you in the last 7 days.

@endif
Client Distribution
Recent Activity
@if(count($recentActivity) > 0) @foreach($recentActivity as $activity)
{{ $activity['description'] }}
{{ $activity['time'] }}
@endforeach @else

No recent activity

@endif
@endsection @section('scripts') @endsection