{{ t('api_v2_token_management') }}
{{ t('system_setting') }}
{{ t('api_v2_token_management') }} {{ t('api_v2_token_management_description') }}
{{ t('api_docs') }} @if (checkPermission('system_settings.edit')) {{ t('create_token') }} @endif
@if ($tokens->count() > 0)
@foreach ($tokens as $token) @endforeach
{{ t('token_name_label') }} {{ t('scopes_label') }} {{ t('status_label') }} {{ t('last_used_label') }} {{ t('expires_label') }} {{ t('actions_label') }}
{{ $token->name }}
{{ t('token_ends_with') }} ...{{ substr($token->token, -8) }}
@foreach (array_slice($token->scopes ?? [], 0, 3) as $scope) {{ $scope }} @endforeach @if (count($token->scopes ?? []) > 3) +{{ count($token->scopes) - 3 }} {{ t('more_scopes') }} @endif
@if ($token->is_active && !$token->isExpired()) {{ t('active_status') }} @elseif ($token->isExpired()) {{ t('expired_status') }} @else {{ t('inactive_status') }} @endif {{ $token->last_used_at ? $token->last_used_at->diffForHumans() : t('never') }} {{ $token->expires_at ? $token->expires_at->format('M d, Y') : t('never') }}
@if (checkPermission('system_settings.edit')) @if ($token->is_active) @endif @endif
{{ $tokens->links() }}
@else

{{ t('no_api_tokens') }}

{{ t('get_started_message') }}

@if (checkPermission('system_settings.edit'))
{{ t('create_token') }}
@endif
@endif
{{ t('api_v2_endpoint_info') }}
{{ t('copy_button') }}
{{ t('copy_button') }}
GET {{ config('app.url') }}/api/v2/contacts
Authorization: Bearer YOUR_TOKEN_HERE

{{ $editMode ? t('edit_api_token') : t('create_new_api_token') }}

@if ($plainToken)

{{ t('copy_token_now') }}

{{ t('token_security_warning') }}

{{ t('copy_token_button') }}
{{ t('done_button') }}
@else
@error('name')

{{ $message }}

@enderror
@foreach ($groupedScopes as $resource => $scopes)

{{ $resource }}

@foreach ($scopes as $scope) @endforeach
@endforeach
@error('selectedScopes')

{{ $message }}

@enderror
@error('rateLimitPerMinute')

{{ $message }}

@enderror
@if (!$editMode)
@error('expiresInDays')

{{ $message }}

@enderror
@endif

{{ t('ip_whitelist_help') }}

@error('ipWhitelistInput')

{{ $message }}

@enderror
{{ t('cancel_button') }} {{ $editMode ? t('update_token_button') : t('create_token_button') }}
@endif

{{ t('token_rotated_successfully') }}

@if ($plainToken)

{{ t('copy_new_token_now') }}

{{ t('old_token_revoked_message') }}

{{ t('copy_token_button') }}
@endif
{{ t('done_button') }}