@extends('layouts.app') @section('title', 'Reseller Dashboard') @section('content')

Reseller Dashboard

Welcome back, {{ $reseller->name ?? auth()->user()->name }}!

Last login: {{ auth()->user()->last_login_at ?? 'Never' }}
Account Status: {{ $reseller->status ?? 'Unknown' }}
Providers Name
{{ $stats['total_bandwidth_providers'] }}
Service Categories
{{ $stats['total_service_categories'] }}
Bandwidth Items
{{ $stats['total_bandwidth_items'] }}
Credit Utilization
{{ number_format($stats['credit_utilization'], 1) }}%
Monthly Revenue
Bandwidth Items Distribution
@foreach($bandwidthItems as $item) {{ $item->name }} @endforeach
Recent Providers Name
@if($recentBandwidthProviders->count() > 0) @foreach($recentBandwidthProviders as $provider)
{{ $provider->created_at->format('M d, Y') }}
{{ $provider->name }}
{{ $provider->contact_person }}
{{ ucfirst($provider->status) }}
@endforeach @else

No providers name found

@endif
Recent Service Categories
@if($recentServiceCategories->count() > 0) @foreach($recentServiceCategories as $category)
{{ $category->name }}
@if($category->code) Code: {{ $category->code }} @else {{ $category->created_at->format('M d, Y') }} @endif
{{ ucfirst($category->status) }}
@endforeach @else

No service categories yet

Add Category
@endif
@endsection