{{-- Header --}}
{{ __('agentic::agentic.api_keys.title') }}
{{ __('agentic::agentic.api_keys.subtitle') }}
{{ __('agentic::agentic.actions.export_csv') }} {{ __('agentic::agentic.actions.create_key') }}
{{-- Stats --}}
{{ __('agentic::agentic.api_keys.stats.total_keys') }} {{ $this->stats['total'] }}
{{ __('agentic::agentic.api_keys.stats.active') }} {{ $this->stats['active'] }}
{{ __('agentic::agentic.api_keys.stats.revoked') }} {{ $this->stats['revoked'] }}
{{ __('agentic::agentic.api_keys.stats.total_calls') }} {{ number_format($this->stats['total_calls']) }}
{{-- Filters --}}
@foreach($this->workspaces as $ws) @endforeach
@if($workspace || $status) {{ __('agentic::agentic.actions.clear') }} @endif
{{-- Keys Table --}} @if($this->keys->count() > 0)
@foreach($this->keys as $key) @endforeach
{{ __('agentic::agentic.table.name') }} {{ __('agentic::agentic.table.workspace') }} {{ __('agentic::agentic.table.status') }} {{ __('agentic::agentic.table.permissions') }} {{ __('agentic::agentic.table.rate_limit') }} IP Restrictions {{ __('agentic::agentic.table.usage') }} {{ __('agentic::agentic.table.last_used') }} {{ __('agentic::agentic.table.created') }}
{{ $key->name }} {{ $key->getMaskedKey() }} {{ $key->workspace?->name ?? 'N/A' }} {{ $key->getStatusLabel() }} @if($key->expires_at && !$key->isRevoked()) {{ $key->getExpiresForHumans() }} @endif
@foreach(array_slice($key->permissions ?? [], 0, 2) as $perm) {{ Str::after($perm, '.') }} @endforeach @if(count($key->permissions ?? []) > 2) +{{ count($key->permissions) - 2 }} @endif
{{ number_format($key->rate_limit) }}/min @if($key->ip_restriction_enabled) {{ $key->getIpWhitelistCount() }} IPs @if($key->last_used_ip) Last: {{ $key->last_used_ip }} @endif @else Disabled @endif {{ number_format($key->call_count) }} calls {{ $key->getLastUsedForHumans() }} {{ $key->created_at->diffForHumans() }} @if(!$key->isRevoked()) {{ __('agentic::agentic.actions.edit') }} {{ __('agentic::agentic.actions.revoke') }} @endif
{{-- Pagination --}}
{{ $this->keys->links() }}
@else
{{ __('agentic::agentic.api_keys.no_keys') }} @if($workspace || $status) {{ __('agentic::agentic.api_keys.no_keys_filtered') }} @else {{ __('agentic::agentic.api_keys.no_keys_empty') }} @endif @if(!$workspace && !$status) {{ __('agentic::agentic.actions.create_key') }} @endif
@endif
{{-- Create Key Modal --}}
{{ __('agentic::agentic.api_keys.create.title') }}
{{ __('agentic::agentic.api_keys.create.key_name') }} @error('newKeyName') {{ $message }} @enderror
{{ __('agentic::agentic.api_keys.create.workspace') }} @foreach($this->workspaces as $ws) @endforeach @error('newKeyWorkspace') {{ $message }} @enderror
{{ __('agentic::agentic.api_keys.create.permissions') }}
@foreach($this->availablePermissions as $perm => $description) @endforeach
@error('newKeyPermissions') {{ $message }} @enderror
{{ __('agentic::agentic.api_keys.create.rate_limit') }} @error('newKeyRateLimit') {{ $message }} @enderror
{{ __('agentic::agentic.api_keys.create.expiry') }}
{{-- IP Restrictions --}}
IP Restrictions Limit API access to specific IP addresses
@if($newKeyIpRestrictionEnabled)
When enabled, only requests from whitelisted IPs will be accepted. Make sure to add your IPs before enabling.
Allowed IPs / CIDRs Your IP: {{ $this->currentUserIp }}
One IP or CIDR per line. Supports IPv4 and IPv6. @error('newKeyIpWhitelist') {{ $message }} @enderror
@endif
{{ __('agentic::agentic.actions.cancel') }} {{ __('agentic::agentic.actions.create_key') }}
{{-- Created Key Display Modal --}}
{{ __('agentic::agentic.api_keys.created.title') }}
{{ __('agentic::agentic.api_keys.created.copy_now') }} {{ __('agentic::agentic.api_keys.created.copy_warning') }}
{{ __('agentic::agentic.api_keys.created.your_key') }}
{{ $createdPlainKey }} {{ __('agentic::agentic.actions.copy') }}
{{ __('agentic::agentic.api_keys.created.usage_hint') }} Authorization: Bearer {{ $createdPlainKey }}
{{ __('agentic::agentic.actions.done') }}
{{-- Edit Key Modal --}} @if($showEditModal && $this->editingKey)
{{ __('agentic::agentic.api_keys.edit.title') }}
{{ __('agentic::agentic.api_keys.edit.key') }} {{ $this->editingKey->name }} {{ $this->editingKey->getMaskedKey() }}
{{ __('agentic::agentic.api_keys.create.permissions') }}
@foreach($this->availablePermissions as $perm => $description) @endforeach
@error('editingPermissions') {{ $message }} @enderror
{{ __('agentic::agentic.api_keys.create.rate_limit') }} @error('editingRateLimit') {{ $message }} @enderror
{{-- IP Restrictions --}}
IP Restrictions Limit API access to specific IP addresses
@if($editingIpRestrictionEnabled)
When enabled, only requests from whitelisted IPs will be accepted. Make sure to add your IPs before enabling.
Allowed IPs / CIDRs Your IP: {{ $this->currentUserIp }}
One IP or CIDR per line. Supports IPv4 and IPv6. @error('editingIpWhitelist') {{ $message }} @enderror
@if($this->editingKey?->last_used_ip)
Last used from: {{ $this->editingKey->last_used_ip }}
@endif @endif
{{ __('agentic::agentic.actions.cancel') }} {{ __('agentic::agentic.actions.save_changes') }}
@endif