@extends('root') @section('title', 'Detail Client Reseller') @section('content')
@include('components.breadcrumb', [ 'title' => 'Detail Client', 'links' => [ ['url' => route('reseller.clients.index'), 'label' => 'Reseller Clients'], ], 'current' => $client->name, ])
Informasi Client

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 Credentials

API Key:

{{ $client->api_key ?? '-' }}

Server Key:

{{ $client->server_key ?? '-' }}
@csrf
@csrf
Statistik Pesan per Tipe
@php $labels = [ 'marketing' => 'Marketing', 'utility' => 'Utility', 'otp' => 'OTP', 'service' => 'Service Message', ]; @endphp @foreach($categories as $key => $val) @endforeach
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, ',', '.') }}
@endsection @push('scripts') @endpush