{% extends '@EasyAdmin/layout.html.twig' %} {% block body_class %}dashboard {{ parent() }} {% endblock %} {% block main %}
{# Item Breakdown #}
Total Assets {{ totalItems }}
Total Asset Replacement Cost (TARC) {{ totalReplacementCosts|format_currency('CAD') }}
Assets without a Category {{ breakdownByOrphanedCategory.totalItems }} {% if breakdownByOrphanedCategory.totalItems > 0 %} (View) {% endif %}
Assets without a Location {{ breakdownByOrphanedLocation.totalItems }} {% if breakdownByOrphanedLocation.totalItems > 0 %} (View) {% endif %}
Assets without File(s) {{ assetsWithoutFiles }}
{# Activity Feed #}
Recent Activity {# #}
{% for entity in recentActivity %}
{{ entity.getTimeElapsedSinceLastUpdate }}
{% endfor %}
{# Breakdown by Category #}
Asset Breakdown by Category {# #}
{% for data in breakdownByCategory %} {% set category = data[0] %} {% set tarcPercentage = ((data.replacementCosts / totalReplacementCosts) * 100)|number_format %}

{# @todo - link to list with filters set to show category #} {{ category.name }} (TARC - {{ data.replacementCosts|format_currency('CAD') }}) {{ data.totalItems }} assets ({{ ((data.totalItems/totalItems) * 100)|number_format }}% of TA)

({{ tarcPercentage }}% of TARC)
{% endfor %} {# Orphans #} {% if breakdownByOrphanedCategory.totalItems > 0 %} {% set tarcPercentage = ((breakdownByOrphanedCategory.replacementCosts / totalReplacementCosts) * 100)|number_format %}

{# @todo - link to list with filters set to show orphans #} {# #} Uncategorized {# #} (TARC - {{ breakdownByOrphanedCategory.replacementCosts|format_currency('CAD') }}) {{ breakdownByOrphanedCategory.totalItems }} assets ({{ ((breakdownByOrphanedCategory.totalItems / totalItems) * 100)|format_number }}% of TA)

({{ tarcPercentage }}% of TARC
{% endif %}
{# Breakdown by Location #}
Asset Breakdown by Location {# #}
{% for data in breakdownByLocation %} {% set location = data[0] %} {% set tarcPercentage = ((data.replacementCosts / totalReplacementCosts) * 100)|number_format %}

{{ location.name }} (TARC - {{ data.replacementCosts|format_currency('CAD') }}) {{ data.totalItems }} assets ({{ ((data.totalItems/totalItems) * 100)|number_format }}% of TA)

({{ tarcPercentage }}% of TARC)
{% endfor %} {# Orphans #} {% if breakdownByOrphanedLocation.totalItems > 0 %} {% set trcPercentage = ((breakdownByOrphanedLocation.replacementCosts / totalReplacementCosts) * 100)|number_format %}

{# @todo - link to list with filters set to show orphans #} {# #} Uncategorized {# #} (TARC - {{ breakdownByOrphanedLocation.replacementCosts|format_currency('CAD') }}) {{ breakdownByOrphanedLocation.totalItems }} assets ({{ ((breakdownByOrphanedLocation.totalItems / totalItems) * 100)|format_number }}% of TA)

({{ trcPercentage }}% of TARC)
{% endif %}
{#
Earnings (Monthly)
$40,000
Earnings (Annual)
$215,000
Task Completion
24
Pending Requests
17
#}
{% endblock %}