{# /***************************************************************************** File name: customer.html.twig Project: Villas3 Copyright 2024 Michael J. Miller, All rights reserved Purpose: page content for manage customers Requires: Revision History: Date Version Details -------- ------ ------------------------------------------------- 4/29/24 3.0a created ******************************************************************************/ #}

Manage Customers

{% if member is defined %} {{ include('admin/customer-editor.html.twig')}} {% else %}
{% endif %}
{% set formName = "member-list-header" %}
{% include 'includes/db-paging-control.html.twig' %}
Name
Source
Email
Phone
Member since
 
{% set name_full = '' %} {% for customer in members %} {# remember the selection #} {% set is_selected = selected == customer.customer_id ? 'selected' : '' %}
{# highlight possible duplicates so it's easy to find merge candidates#} {% if name_full == customer.name_full %} {% set duplicate = 'duplicate' %} {% else %} {% set duplicate = '' %} {% endif %} {% set name_full = customer.name_full %}
{% if DEMO_MODE and customer.customer_id != user.customer_id %} {% endif %} {{customer.name_full|title}}   {% if customer.email_verified ? : '' %} {% endif %}
{{customer.source}}
{{customer.email|lower}}
{{customer.phone}}
{{customer.created|date("Y-m-d")}}
{{customer.role|title}}
{{customer.country_code|upper|country_name}} 
Reservations: {{customer.num_bookings}}
Last Booking:
{{customer.last_booking ? customer.last_booking|date("Y-m-d") : 'never'}}
{{customer.suspended ? "Suspended" : ' '}}
{{role == 'webmaster'?customer.customer_id : ' '}}
Cancellations: {{customer.num_cancelled}}
 
Last Login:
{{customer.last_login ? customer.last_login|date("Y-m-d H:m") : 'never'}} {{customer.login_count ? ' ('~customer.login_count~')'}}
{{customer.has_credit ? "Has credit" : ' '}}
{% endfor %}