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

{{ client.name }}

Client Configuration

IP Address
{{ client.client_ip }}
Status
{% if client.status == 'active' %} Active {% else %} Disabled {% endif %}
Created
{{ client.created_at }}
Download Config {% if client.status == 'active' %}
{% else %}
{% endif %}

Traffic Statistics

Uploaded
{{ client.bytes_sent|default(0)|number_format }} B
Downloaded
{{ client.bytes_received|default(0)|number_format }} B
Total
{{ (client.bytes_sent|default(0) + client.bytes_received|default(0))|number_format }} B
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 %}