← {{__('earn_portal.dashboard')}}

{{__('earn_portal.api_keys')}}

{{__('earn_portal.api_keys_description')}}

{{__('earn_portal.key_usage',['used'=>$tokens->count(),'max'=>$maxTotal])}}

@error('api_key')@enderror @if($tokens->count() >= $maxTotal)
{{__('earn_portal.total_limit_reached')}}
@endif @if(session('new_api_key')) @php($newRecord=$tokens->first())

{{__('earn_portal.created_title')}}

{{__('earn_portal.created_warning')}}

{{__('earn_portal.device_name')}}
{{$newRecord?->name}}
{{__('earn_portal.ability')}}
tasks:read
{{__('earn_portal.expires_at')}}
{{$newRecord?->expires_at?->translatedFormat('j F Y H:i') ?? __('earn_portal.no_expiration')}}
{{__('earn_portal.done')}}
@endif @if($tokens->isEmpty())

{{__('earn_portal.empty_title')}}

{{__('earn_portal.empty_description')}}

@else

{{__('earn_portal.lifecycle_help')}}

@foreach($tokens as $token) @php($state=$token->status()->value)@endforeach
{{__('earn_portal.device_name')}}{{__('earn_portal.key_preview')}}{{__('earn_portal.device_binding')}}{{__('earn_portal.device_id_preview')}}{{__('earn_portal.first_connection')}}{{__('earn_portal.last_seen')}}{{__('earn_portal.first_ip')}}{{__('earn_portal.last_ip')}}{{__('earn_portal.expires_at')}}{{__('earn_portal.status')}}{{__('earn_portal.actions')}}
{{$token->name}}tpe_••••••••{{str($token->token_hint)->after('tpe_')}}{{__($token->device_id_hash ? ($token->device_mismatch_seen ? 'earn_portal.device_mismatch_seen' : 'earn_portal.device_bound') : 'earn_portal.device_unbound')}}{{$token->device_id_preview ?? '—'}}{{$token->device_bound_at?->translatedFormat('j F Y H:i') ?? '—'}}{{$token->last_seen_at?->translatedFormat('j F Y H:i') ?? __('earn_portal.never_used')}}{{$token->first_ip ?? '—'}}{{$token->last_ip ?? '—'}}{{$token->expires_at?->translatedFormat('j F Y H:i') ?? __('earn_portal.no_expiration')}} @if(in_array($state,['active','inactive']))
@csrf @method('PATCH'){{__('earn_portal.status_'.$state)}}
@else{{__('earn_portal.status_'.$state)}}@endif
@endif

{{__('earn_portal.example_title')}}

curl -X GET "{{$tasksUrl}}" \
  -H "Accept: application/json" \
  -H "Authorization: Bearer {{__('earn_portal.placeholder_key')}}" \
  -H "X-Device-ID: 5c9f63d12166490bb6a6459af51e8b83"