@extends('admin.layout') @section('title', 'API Kullanımı') @section('page-title', 'API Kullanımı') @section('content')
Son {{ $days }} günün REST + MCP trafiği.
| SKU | İstek | Kredi |
|---|---|---|
{{ $row->sku }} |
{{ number_format((int) $row->total, 0, ',', '.') }} | {{ number_format((int) $row->credits, 0, ',', '.') }} |
Bu aralıkta kayıt yok.
@endif| Müşteri | İstek | Kredi | Bakiye |
|---|---|---|---|
| @if ($row['customer']) {{ $row['customer']->name }} {{ $row['customer']->email }} @else #{{ $row['customer_id'] }} (silinmiş) @endif | {{ number_format($row['total'], 0, ',', '.') }} | {{ number_format($row['credits'], 0, ',', '.') }} | {{ $row['customer'] ? number_format((int) $row['customer']->api_credit_balance, 0, ',', '.') : '—' }} |
Bu aralıkta kayıt yok.
@endifPozitif miktar kredi ekler, negatif miktar düşer. Her işlem için defter (ledger) satırı yazılır ve açıklama zorunludur.
@if ($customerQuery !== '') @if ($foundCustomers->count() > 0)| Müşteri | Bakiye | Düzeltme |
|---|---|---|
| {{ $customer->name }} {{ $customer->email }} | {{ number_format((int) $customer->api_credit_balance, 0, ',', '.') }} |
"{{ $customerQuery }}" için müşteri bulunamadı.
@endif @endif @error('api_customer_id')| Tarih | Müşteri | Miktar | Sonraki Bakiye | Referans | Açıklama |
|---|---|---|---|---|---|
| {{ $tx->created_at?->format('d.m.Y H:i') ?? '—' }} | @if ($txCustomer) {{ $txCustomer->name }} {{ $txCustomer->email }} @else #{{ $tx->api_customer_id }} @endif | {{ $tx->amount > 0 ? '+' : '' }}{{ number_format($tx->amount, 0, ',', '.') }} | {{ number_format($tx->balance_after, 0, ',', '.') }} | {{ $tx->reference ?? '—' }} |
{{ $tx->meta['note'] ?? '—' }} |
Henüz manuel düzeltme yapılmamış.
@endif