@extends('api_panel.layouts.app') @section('title', t('apipanel-dashboard-title')) @section('content') @php $maxRequests = max(1, collect($dailyUsage)->max('requests')); $totalRequests = collect($dailyUsage)->sum('requests'); $totalCredits = collect($dailyUsage)->sum('credits'); @endphp
{{ $customer->name }} — {{ $customer->email }}
@if($plainKey){{ $plainKey }}
{{ t('apipanel-keys-empty') }}
@else| {{ t('apipanel-keys-name') }} | {{ t('apipanel-keys-prefix') }} | {{ t('apipanel-keys-env') }} | {{ t('apipanel-keys-status') }} | {{ t('apipanel-keys-last-used') }} | |
|---|---|---|---|---|---|
| {{ $key->name }} | {{ $key->key_prefix }}… |
{{ $key->environment }} | {{ $key->isActive() ? t('apipanel-keys-status-active') : t('apipanel-keys-status-revoked') }} | {{ $key->last_used_at ? $key->last_used_at->format('d.m.Y H:i') : '—' }} | @if($key->isActive()) @endif |
{{ t('apipanel-usage-subtitle') }}
{{ t('apipanel-usage-empty') }}
@else| {{ t('apipanel-usage-sku') }} | {{ t('apipanel-usage-requests') }} | {{ t('apipanel-usage-credits') }} |
|---|---|---|
{{ $row['name'] }}
{{ $row['sku'] }}
|
{{ number_format($row['requests']) }} | {{ number_format($row['credits']) }} |
{{ $subscription->sku }}
{{ number_format((int) $subscription->monthly_request_quota) }} {{ t('apipanel-usage-requests') }}/{{ t('apipanel-month') }}
@if($subscription->ends_at)
{{ $subscription->ends_at->format('d.m.Y') }}
@endif
{{ t('apipanel-credits-empty') }}
@else| {{ t('apipanel-credits-date') }} | {{ t('apipanel-credits-type') }} | {{ t('apipanel-credits-amount') }} | {{ t('apipanel-credits-balance') }} |
|---|---|---|---|
| {{ $transaction->created_at?->format('d.m.Y H:i') }} | {{ $transaction->type }} | {{ $transaction->amount > 0 ? '+' : '' }}{{ number_format((int) $transaction->amount) }} | {{ number_format((int) $transaction->balance_after) }} |