@extends('layouts.admin', ['heading' => 'API Management', 'subheading' => 'Keys, IP whitelist, and logs']) @section('content') @if($newKey)
New API Key: {{ $newKey }} (copy and store securely)
@endif
Generate API Key
@csrf
API Keys
@forelse($keys as $key)
{{ $key->name }}
Created: {{ optional($key->created_at)->format('Y-m-d') }}
{{ $key->is_active ? 'Active' : 'Revoked' }}
IP Whitelist
@foreach($key->ips as $ip)
@csrf
@endforeach
@csrf
@csrf
@empty
No API keys yet.
@endforelse
Recent API Logs
@forelse($logs as $log) @empty @endforelse
Endpoint Method Status IP Time (ms) At
{{ $log->endpoint }} {{ $log->method }} {{ $log->status }} {{ $log->ip }} {{ $log->response_time_ms }} {{ optional($log->created_at)->format('Y-m-d H:i') }}
No logs yet.
@endsection