{% extends "layout.twig" %} {% block title %}{{ client.name }}{% endblock %} {% block content %}

{{ client.name }}

{{ t('clients.configuration') }}

{{ t('common.ip_address') }}
{{ client.client_ip }}
{{ t('common.status') }}
{% if client.status == 'active' %} {{ t('status.active') }} {% else %} {{ t('status.disabled') }} {% endif %}
{{ t('common.created') }}
{{ client.created_at }}
Download Config {% if client.status == 'active' %}
{% else %}
{% endif %}

{{ t('clients.traffic_stats') }}

{{ t('common.uploaded') }}
{{ (client.bytes_sent|default(0) / 1048576)|number_format(2) }} MB
{{ t('common.downloaded') }}
{{ (client.bytes_received|default(0) / 1048576)|number_format(2) }} MB
{{ t('common.total') }}
{{ ((client.bytes_sent|default(0) + client.bytes_received|default(0)) / 1048576)|number_format(2) }} MB
{{ t('clients.last_handshake') }}
{% if client.last_handshake %} {{ client.last_handshake }} {% else %} Never connected {% endif %}

{{ t('clients.expiration') }}

CURRENT VALUE:
{% if client.expires_at %} {% set expires_ts = client.expires_at|date('U') %} {% set now_ts = "now"|date('U') %} {% set diff_days = ((expires_ts - now_ts) / 86400)|round %} {{ client.expires_at|date('Y-m-d H:i:s') }} ({{ diff_days }} {{ t('common.days') }}) {% else %} {{ t('clients.never_expires') }} {% endif %}

{{ t('clients.traffic_limit') }}

CURRENT VALUE:
{% if client.traffic_limit %} {% set limit_gb = (client.traffic_limit / 1073741824)|number_format(2) %} {% set total_traffic = (client.bytes_sent|default(0) + client.bytes_received|default(0)) %} {% set used_gb = (total_traffic / 1073741824)|number_format(2) %} {{ limit_gb }} GB (used: {{ used_gb }} GB) {% else %} {{ t('clients.unlimited') }} {% endif %}
{% if client.qr_code %}

QR Code

QR Code

Scan with Amnezia VPN app

{% endif %}
{% endblock %}