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

API Management

add Generate New Key
{{-- Flash: New API Key Created --}} @if(session('new_api_key'))
@endif @if(session('success'))
@endif {{-- Active Keys --}}
vpn_key Active API Keys
@if($activeKeys->isEmpty())

Belum ada API key aktif. Klik "Generate New Key" untuk membuat.

@else
@foreach($activeKeys as $key) @endforeach
Nama Prefix Scopes Rate Limit Terakhir Digunakan Dibuat Expires Aksi
{{ $key->name }} {{ $key->prefix }}... @if($key->scopes === null) All Access @else {{ count($key->scopes) }} scopes @endif {{ $key->rate_limit }}/min {{ $key->last_used_at ? $key->last_used_at->diffForHumans() : '-' }} {{ $key->created_at->format('d M Y') }} @if($key->expires_at) {{ $key->expires_at->format('d M Y') }} @else Never @endif visibility
@csrf
@endif
{{-- Revoked Keys --}} @if($revokedKeys->isNotEmpty())
do_not_disturb Revoked / Inactive Keys
@foreach($revokedKeys as $key) @endforeach
Nama Prefix Dicabut Dibuat Oleh Aksi
{{ $key->name }} {{ $key->prefix }}... {{ $key->revoked_at ? $key->revoked_at->format('d M Y H:i') : '-' }} {{ $key->creator->name ?? '-' }}
@csrf @method('DELETE')
@endif {{-- Quick Links --}}
@endsection