@extends('layouts.admin') @section('title', 'Reseller Details') @section('page-title', 'Reseller Details: ' . $reseller->name) @section('content')
Reseller Information
{{ strtoupper(substr($reseller->name, 0, 1)) }}
{{ $reseller->name }}

{{ $reseller->email }}

@if($reseller->resellerInfo)
{{ $reseller->resellerInfo->company_name }}

{{ $reseller->resellerInfo->trade_license }}

@endif
Mobile: {{ $reseller->mobile }}
Balance: ৳{{ number_format($reseller->balance, 2) }}
SMS Rate: ৳{{ $reseller->sms_rate }}/SMS
Commission: @if($reseller->resellerInfo) {{ $reseller->resellerInfo->commission_rate }}% @else N/A @endif
Total Clients: {{ $reseller->users->count() }}
Status: @if($reseller->status) Active @else Inactive @endif
Quick Actions
@csrf @method('PUT')
Total Clients

{{ $reseller->users->count() }}

Client SMS

{{ $reseller->smsLogs->count() }}

Total Revenue

৳{{ number_format($reseller->smsLogs->sum('cost'), 2) }}

Client List
@forelse($reseller->users as $client) @empty @endforelse
Name Email Balance SMS Count Status
{{ strtoupper(substr($client->name, 0, 1)) }}
{{ $client->name }}
{{ $client->email }} ৳{{ number_format($client->balance, 2) }} {{ $client->smsLogs->count() }} {{ $client->status ? 'Active' : 'Inactive' }}
No clients found
Recent Client SMS Activity
@forelse($reseller->smsLogs->take(10) as $sms) @empty @endforelse
Date Client Sender ID Cost Status
{{ $sms->created_at->format('M j, H:i') }} {{ $sms->user->name }} {{ $sms->sender_id }} ৳{{ $sms->cost }} {{ ucfirst($sms->status) }}
No SMS activity found
@endsection