{% extends 'base_admin.html.twig' %} {% block title %}Investors-{{ pagename }}{% endblock %} {% block body %}

{{ pagename }}

{% if is_granted('ROLE_ADMIN') %} {% endif %} {% if is_granted('ROLE_ADMIN') %} {% endif %} {% for user in users %} {% if user.disclaimerDate is not null %} {% else %} {% endif %} {% if is_granted('ROLE_ADMIN') %} {% endif %} {% set totalshares = 0 %} {% for share in shares %} {% if share.user.id == user.id %} {% set totalshares = totalshares + share.shareCount %} {% endif %} {% endfor %} {% set totalconsideration = 0 %} {% for share in shares %} {% if share.user.id == user.id %} {% set totalconsideration = totalconsideration + share.investmentAmount %} {% endif %} {% endfor %} {% if is_granted('ROLE_ADMIN') %} {% endif %} {% else %} {% endfor %}
Shareholder {% if is_granted('ROLE_ADMIN') %}
(Click to edit) {% endif %}
Mobile Email
(Click to email)
Employer Address Disclaimer RoleSAGSharesFunded amount MTM Gain/loss
{% if is_granted('ROLE_ADMIN') %} {{ user.fullName }} {% else %} {{ user.fullName }} {% endif %} {% if is_granted('ROLE_ADMIN') %} {{ user.mobile }} {% elseif is_granted('ROLE_INVESTOR') %} {{ user.shareContactDetails ? user.mobile : 'NA mobile' }} {% endif %} {% if is_granted('ROLE_ADMIN') %} {{ user.email }} {% elseif is_granted('ROLE_INVESTOR') %} {{ user.shareContactDetails ? user.email : 'NA email' }} {% endif %} {% if is_granted('ROLE_ADMIN') %} {{ user.employer }} {% elseif is_granted('ROLE_INVESTOR') %} {{ user.shareContactDetails ? user.employer : 'NA employer' }} / {{ user.shareContactDetails ? user.employer : 'NA' }} {% endif %} {% if is_granted('ROLE_ADMIN') %} {{ user.postalAddress ? 'Y':'-' }} {% elseif is_granted('ROLE_INVESTOR') %} {{ user.shareContactDetails ? user.postalAddress : 'NA address' }} {{ user.postalAddress }} {% endif %} {{ user.disclaimerDate.format('d-M-Y') }} {% if is_granted('ROLE_ADMIN') %} {{ user.roles[0] }} {% elseif is_granted('ROLE_INVESTOR') %} {{ user.shareContactDetails ? user.role[0] : 'NA-Role' }} {% endif %} {{ user.isSAGMember ? 'Yes' : 'No' }}{{ totalshares |number_format }}{{ totalconsideration |number_format }} {{ (totalshares*0.25) |number_format }} {{ ((totalshares*0.25) -totalconsideration)|number_format }}

New shareholder {% endblock %} {% block datatable %} {% endblock datatable %}