@extends('admin.layout') @section('title', 'Clientes de API') @section('page-title', 'API Müşterileri') @section('content')

Müşteriler

api alt alan adına kaydolan tüm hesaplar. Ana sitenin üyelerinden bağımsızdır.

Toplam Müşteri

{{ number_format($totalCustomers, 0, ',', '.') }}

Google ile Kaydolan

{{ number_format($googleCustomers, 0, ',', '.') }}

Aktif Plan Abonesi

{{ number_format($activePlanSubscribers, 0, ',', '.') }}

Toplam Kredi Bakiyesi

{{ number_format($totalCreditBalance, 0, ',', '.') }}

@if ($customers->count() > 0)
@foreach ($customers as $customer) @php $activeSub = $customer->planSubscriptions->first(); $lastRequest = $customer->last_request_at ? \Illuminate\Support\Carbon::parse($customer->last_request_at) : null; @endphp @endforeach
Müşteri Kredi Aktif Plan Key Toplam Harcama Son İstek Kayıt
{{ $customer->name }} @if ($customer->google_id) Google @endif {{ $customer->email }} {{ number_format((int) $customer->api_credit_balance, 0, ',', '.') }} @if ($activeSub && $activeSub->plan) {{ $activeSub->plan->code }} {{ $activeSub->ends_at?->format('d.m.Y') ?? 'süresiz' }} @else — @endif {{ (int) $customer->api_keys_count }} {{ number_format((float) ($customer->paid_orders_total ?? 0), 2, ',', '.') }} ₺ {{ $lastRequest?->format('d.m.Y H:i') ?? '—' }} {{ $customer->created_at?->format('d.m.Y') ?? '—' }}
{{ $customers->links() }}
@else

Kayıt bulunamadı.

@endif
@endsection