{% extends 'base_admin.html.twig' %} {% block title %}Investors-{{ pagename }}{% endblock %} {% block body %}
Shareholder
{% if is_granted('ROLE_ADMIN') %}
(Click to edit) {% endif %} |
Mobile | Email (Click to email) |
Employer | Address | Disclaimer | Role | {% if is_granted('ROLE_ADMIN') %}SAG | {% endif %}Shares | {% if is_granted('ROLE_ADMIN') %}Funded amount | MTM | Gain/loss | {% endif %}|
---|---|---|---|---|---|---|---|---|---|---|---|---|
{% 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 %} | {% if user.disclaimerDate is not null %}{{ user.disclaimerDate.format('d-M-Y') }} | {% else %}{% endif %} | {% if is_granted('ROLE_ADMIN') %} {{ user.roles[0] }} {% elseif is_granted('ROLE_INVESTOR') %} {{ user.shareContactDetails ? user.role[0] : 'NA-Role' }} {% endif %} | {% if is_granted('ROLE_ADMIN') %}{{ user.isSAGMember ? 'Yes' : 'No' }} | {% 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 %}{{ totalshares |number_format }} | {% if is_granted('ROLE_ADMIN') %}{{ totalconsideration |number_format }} | {{ (totalshares*0.25) |number_format }} | {{ ((totalshares*0.25) -totalconsideration)|number_format }} | {% endif %}