@if ($authorizationError)

{{ trans('admin/users/message.insufficient_permissions') }}
{{ $authorizationError }}

@endif @if ($this->showOauthClients()) @if($clients->count() === 0)

{{ trans('admin/settings/general.oauth_no_clients') }}

@else
@foreach($clients as $client) @php $isPersonalAccessClient = (int) $client->personal_access_client === 1; $isPasswordGrantClient = (int) $client->password_client === 1; $isRevokedClient = (int) $client->revoked === 1; $clientTypeLabel = $isPersonalAccessClient ? trans('admin/settings/general.oauth_client_type_personal_access') : ($isPasswordGrantClient ? trans('admin/settings/general.oauth_client_type_password_grant') : trans('admin/settings/general.oauth_client_type_oauth')); @endphp @endforeach
{{ trans('general.id') }} {{ trans('general.name') }} {{ trans('admin/settings/general.oauth_client_type') }} {{ trans('general.status') }} {{ trans('admin/settings/general.oauth_redirect_url') }} {{ trans('admin/settings/general.oauth_secret') }} {{ trans('admin/settings/general.oauth_associated_token_count') }} {{ trans('general.created_at') }} {{ trans('general.updated_at') }} {{ trans('general.actions') }}
{{ $client->id }} {{ $client->name }} {{ $clientTypeLabel }} @if($isRevokedClient) {{ trans('admin/settings/general.oauth_token_status_revoked') }} @else {{ trans('admin/settings/general.oauth_token_status_active') }} @endif {{ $client->redirect }} {{ $client->secret }} {{ $client->associated_token_count ?? 0 }} {{ $client->created_at ? Helper::getFormattedDateObject($client->created_at, 'datetime', false) : '' }} @if ($client->created_at != $client->updated_at) {{ $client->updated_at ? Helper::getFormattedDateObject($client->updated_at, 'datetime', false) : '' }} @endif @if($isRevokedClient)
@csrf
@else
@csrf
@endif
@endif @endif @if ($this->showAuthorizedApplications()) @if($authorizedApplications->count() === 0)

{{ trans('admin/settings/general.oauth_no_clients') }}

@else
@foreach($authorizedApplications as $application) @endforeach
{{ trans('general.name') }} {{ trans('general.created_by') }} {{ trans('admin/settings/general.oauth_scopes') }} {{ trans('general.created_at') }} {{ trans('general.expires') }} {{ trans('general.actions') }}
{{ $application->client_name }} @php $ownerLabel = $application->client_owner_display_name ?: $application->client_owner_username; $ownerSoftDeleted = $application->client_owner_deleted_at !== null; @endphp @if($application->client_owner_id && $ownerLabel) @if($ownerSoftDeleted) {{ $ownerLabel }} @else {{ $ownerLabel }} @endif @else {{ trans('general.na') }} @endif @if(!$application->scopes) {{ trans('admin/settings/general.no_scopes') }} @endif {{ $application->created_at ? Helper::getFormattedDateObject($application->created_at, 'datetime', false) : '' }} {{ $application->expires_at ? Helper::getFormattedDateObject($application->expires_at, 'datetime', false) : '' }} {{ trans('general.delete') }}
@endif @endif @if ($this->showOauthClients()) @endif