@extends('layouts.dash') @section('title', 'Manage '.$u->name) @section('content')

{{ $u->name }}

{{ $u->email }} @if($u->phone) • {{ $u->phone }} @endif • Joined {{ fmt_date($u->created_at) }}

{!! badge($u->role, 'primary') !!} {!! badge($u->status) !!}All Users
{{ $stats['keys'] }} active

{{ $stats['keys'] }}

API Keys

{{ number_format($stats['left']) }}

Credits Left

{{ number_format($stats['today']) }}

Hits Today

{{ $wallet ? taka($wallet->balance) : taka(0) }}

Wallet Balance

Account Access

Ban or unban the user, change account role, reset password, or permanently remove the account.

@csrf
@csrf
@csrf @method('DELETE')

Reset Password@csrf
Account flags
{{ $u->must_change_password ? 'Must change password' : 'Password set' }}{{ $u->google_id ? 'Google linked' : 'Email login' }}
Send Direct Notification

This message appears in the user's dashboard and Notifications page. It is not a public broadcast.

@csrf
Add Bonus Credits
@csrf
API Keys ({{ $keys->count() }})
Create Key
@forelse($keys as $k)
{{ $k->service->name ?? $k->label }}
{{ \Illuminate\Support\Str::limit($k->api_key, 28) }}
{!! badge($k->status) !!}
{{ number_format($k->remaining()) }} left • {{ number_format($k->used_request) }} used{{ fmt_date($k->exp_date) }}
Edit
@csrf
@csrf
@empty
No API keys
@endforelse
Recent Orders
@forelse($orders as $o)
{{ $o->order_kind === 'wallet_topup' ? 'Wallet top-up' : ($o->package?->name ?? 'Custom credits') }}
{{ fmt_date($o->created_at) }}
{!! badge($o->status) !!} {{ $o->amount > 0 ? taka($o->amount) : 'FREE' }}
@empty
No orders
@endforelse
Direct Notifications
@forelse($notifications as $n)
{{ $n->title }}{!! badge($n->type, 'info') !!}
{{ \Illuminate\Support\Str::limit($n->message, 120) }}
@empty
No direct messages
@endforelse
@endsection