@extends('root') @section('title', 'Detail Client Reseller') @section('content')
Nama: {{ $client->name }}
Email / Username: {{ $client->email }}
Paket: {{ ($mapping?->package ?? 'shared') === 'dedicated' ? 'Dedicated' : 'Shared' }}
Saldo: Rp {{ number_format($client->balance, 0, ',', '.') }}
Status: {{ ($mapping?->status ?? ($client->is_active ? 'active' : 'inactive')) === 'active' ? 'Aktif' : 'Nonaktif' }}
API Key:
{{ $client->api_key ?? '-' }}
Server Key:
{{ $client->server_key ?? '-' }}
| Tipe Pesan | Jumlah Pesan | Total Biaya |
|---|---|---|
| {{ $labels[$key] ?? $key }} | {{ $val['total_messages'] ?? 0 }} | Rp {{ number_format($val['total_cost'] ?? 0, 0, ',', '.') }} |
| Total | {{ $totalMessages }} | Rp {{ number_format($totalCost, 0, ',', '.') }} |