{% macro ditem(lngstr, available, used, assigned = null, formatbytes = false, byte_usage = null) %}
{{ lng(lngstr) }}{% if byte_usage %} ({{ byte_usage|formatBytes }}){% endif %}
{% if formatbytes %}{{ used|formatBytes }}{% else %}{{ used }}{% endif %}/{% if available < 0 %}{{ lng('panel.unlimited') }}{% else %}{% if formatbytes %}{{ available|formatBytes }}{% else %}{{ available }}{% endif %}{% endif %}
{% set usageperc = 1 %} {% if available > 0 %} {% set usageperc = (used / available) * 100|round %} {% endif %}
{% if assigned is not empty %}
{% endif %}
{% endmacro %}