@extends('layouts.admin') @section('title', 'API Keys') @section('page-title', 'API Keys Management') @section('breadcrumbs') Settings chevron_right API Keys @endsection @section('header-actions') @endsection @section('content')
@forelse($apiKeys as $apiKey) @empty @endforelse
Name Key Created By Last Used Expires Status Actions
{{ $apiKey->name }} {{ substr($apiKey->key, 0, 20) }}... {{ $apiKey->creator->name ?? 'N/A' }} {{ $apiKey->last_used_at ? $apiKey->last_used_at->format('M d, Y') : 'Never' }} {{ $apiKey->expires_at ? $apiKey->expires_at->format('M d, Y') : 'Never' }} @php $isExpired = $apiKey->expires_at && $apiKey->expires_at->isPast(); $isActive = $apiKey->is_active && !$isExpired; @endphp {{ $isActive ? 'Active' : ($isExpired ? 'Expired' : 'Inactive') }}
@csrf @method('DELETE')
No API keys found
@endsection