@extends('layouts.admin') @section('title', __('API')) @section('page-title', __('API')) @section('content')
@if(session('plain_text_token'))
{{ __('New API Key') }}
{{ __('Copy this token now. You will not be able to see it again.') }}
{{ session('plain_text_token') }}
@endif
@csrf
@error('name')
{{ $message }}
@enderror
@error('abilities')
{{ $message }}
@enderror
{{ __('Create API Key') }}
@forelse($tokens as $token) @empty @endforelse
{{ __('Name') }} {{ __('Last used') }} {{ __('Actions') }}
{{ $token->name }} {{ $token->last_used_at ? $token->last_used_at->diffForHumans() : __('Never') }}
@csrf @method('DELETE') {{ __('Revoke') }}
{{ __('No API keys yet.') }}
@endsection