{% spaceless %}{{ include("header.html") }}
{{ include("head_menu.html") }} {{ include("main_menu.html") }}
{% set items = get("items") %}
{% if get("search_query") %}
{% if get("table") == 'users' %} {{ l("users") }} {{ _get("search_query") }} {% endif %} {% if get("table") == 'websites' %} {{ l("websites") }} {{ _get("search_query") }} {% endif %} {% if get("table") == 'payments' %} {{ l("payments") }} {{ _get("search_query") }} {% endif %}
{% endif %} {% if items %}
{% for item in items %} {% set uniqueid = surfow_encrypt(item.id) %} {% set this_table = get("table") %} {% endfor %}
{{ l("item") }} {{ l("date") }} {{ l("edit") }}
{{ item.id }} {% if item.status %} {% else %} {% endif %} {% if this_table == 'users' %}
@{{ item.username }}
{% endif %} {% if this_table == 'websites' %}
{{item.url|lower|replace({'http://': "", 'https://': "", 'ftp://': ""})[:14]}}
{% endif %} {% if this_table == 'payments' %}
{{ item.payment_id }}
{% if item.ip %}{{ item.ip|e }}{% endif %}
{% if item.payment_service %}{{ item.payment_service|e }}{% endif %}
{% endif %}
{% if item.created_at %} {{ l("added") }} {{ time_ago(item.created_at) }} {% else %}N/A{% endif %}
{% if this_table == 'users' %} {{ l("edit") }} {% endif %} {% if this_table == 'websites' %} {{ l("edit") }} {% endif %} {% if this_table == 'payments' %} {{ l("edit") }} {% endif %}
{{ _get("pagination") }}
{% else %}

{{ l("search_notfound") }}

{% endif %}
{{ include("footer_content.html") }}
{{ include("footer.html") }}{% endspaceless %}