@extends('layouts.app') @section('title', 'API Keys') @section('content')

API Keys

Create API Key
@if($projects->isEmpty())

All accessible projects already have an active API key. Use Regenerate in the table below to rotate a key.

@else
@csrf
@error('project_id')
{{ $message }}
@enderror
@endif
@foreach($apiKeys as $apiKey) @endforeach
NameProjectClientKeyStatusUsageLast UsedCreatedAction
{{ $apiKey->name ?? '-' }} @if($apiKey->project){{ $apiKey->project->name }}@else - @endif {{ $apiKey->project->client->company_name ?? '-' }} ••••••••{{ substr($apiKey->key, -8) }}
@csrf
{{ $apiKey->usage_count }} {{ format_date($apiKey->last_used_at) }} {{ format_date($apiKey->created_at, 'd M Y') }}
@csrf
@if($apiKeys->hasPages())
{{ $apiKeys->links() }}
@endif
@endsection