@extends('master') @section('content')

Detail API Key

arrow_back Kembali
{{-- Key Info --}}
vpn_key {{ $apiKey->name }}
@if($apiKey->revoked_at) @endif
Prefix {{ $apiKey->prefix }}...
Status @if($apiKey->isRevoked()) Revoked @elseif($apiKey->isExpired()) Expired @elseif($apiKey->is_active) Active @else Inactive @endif
Scopes @if($apiKey->scopes === null) All Access @else @foreach($apiKey->scopes as $scope) {{ $scope }} @endforeach @endif
Rate Limit {{ $apiKey->rate_limit }} requests/menit
Dibuat Oleh {{ $apiKey->creator->name ?? '-' }}
Tanggal Dibuat {{ $apiKey->created_at->format('d M Y H:i') }}
Expires {{ $apiKey->expires_at ? $apiKey->expires_at->format('d M Y H:i') : 'Tidak pernah' }}
Terakhir Digunakan {{ $apiKey->last_used_at ? $apiKey->last_used_at->diffForHumans() : 'Belum pernah' }}
Dicabut Pada {{ $apiKey->revoked_at->format('d M Y H:i') }}
{{-- Stats --}}
analytics Statistik Penggunaan

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

Total Requests

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

24 Jam Terakhir

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

7 Hari Terakhir

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

30 Hari Terakhir
@if(!$apiKey->isRevoked() && $apiKey->is_active)
@csrf
@endif
{{-- Recent Logs --}}
history Request Terbaru
Lihat Semua
@if($recentLogs->isEmpty())

Belum ada request tercatat.

@else
@foreach($recentLogs as $log) @endforeach
Waktu Method Endpoint Status IP Response Time
{{ $log->created_at->format('d/m H:i:s') }} {{ $log->method }} {{ $log->endpoint }} {{ $log->status_code }} {{ $log->ip_address }} {{ $log->response_time_ms }}ms
@endif
@endsection