{% extends 'admin/layouts/base.html.twig' %} {% block title %}View Affiliate{% endblock %} {% set active = 'app_admin_affiliate' %} {% set breadcrumbs = [ { 'link': path('app_admin_dashboard'), 'title': 'Home' }, { 'title':'Affiliate Management', }, { 'link': path('app_admin_affiliate'), 'title': 'Affilliate', }, { 'title': 'View', } ]%} {% block content %}

{{ user.getFirstName ~ ' '~ user.getLastName }}

Partner
{{ numberOfAffiliate is not null ? numberOfAffiliate : 0}}
Clients
{{ numberOfUserCustomer is not null ? numberOfUserCustomer : 0}}
Direct Sales
{{ directRevenue is not null ? directRevenue|number_format(2,',','.') : 0}}
Team Sales
{{ totalTeamRevenue is not null ? totalTeamRevenue|number_format(2,',','.') : 0}}
Total Commission
{{ totalCommission is not null ? totalCommission|number_format(2,',','.') : 0}}
Affiliate Details
Id {{ user.id }}
Username {{ user.firstname ~ ' ' ~ user.lastname }}
Email {% if user.email is empty %} N/A {% else %} {{ user.email }} {% endif %}
Mobile Number {% if user.mobileno is empty %} N/A {% else %} {{ user.mobileno }} {% endif %}
Country {% if user.country is empty %} N/A {% else %} {{ user.country.name }} {% endif %}

Referral

{% for userCustomer in userCustomers %} {% include 'admin/affiliate/customer_row.html.twig' %} {% else %} {% endfor %}
Name Product Product Amount Commission Amount Date
No Records found
{{ include('helper/pagination_card_footer.html.twig', {'knp_result_set': userCustomers}) }}

Affiliate

User Name Client Partner Feedback/Rating Rank Running AI/Product Total Sale Incoming This Month
{% if user_tree is not empty %} {% for user in user_tree %} {% set rootLevel = user.level %} {{ include('admin/affiliate/network_tree_row.html.twig') }} {% endfor %} {% else %}
Record not found !
{% endif %} {{ include('helper/pagination_card_footer.html.twig', {'knp_result_set': user_tree}) }}

{{ totalCommission is not null ? totalCommission|number_format(2,',','.') : 0}}

Total Commission

{{ paidCommission is not null ? paidCommission|number_format(2,',','.') : 0 }}

Paid Commission

{{ unpaidCommission is not null ? unpaidCommission|number_format(2,',','.') : 0 }}

Unpaid Commission

{{ rejectedCommission is not null ? rejectedCommission|number_format(2,',','.') : 0 }}

Rejected Commission

Commissions

{% for userCommision in userCommisions %} {% include 'admin/affiliate/commission_row.html.twig' %} {% else %} {% endfor %}
#ID Name Product Product Amount Commission Amount Level Status Date
No Records found
{{ include('helper/pagination_card_footer.html.twig', {'knp_result_set': userCommisions}) }}
{% endblock %} {% block javascripts %} {% endblock %}