{% extends "base.html" %} {% block title %}Stats - IT Asset Tracker{% endblock %} {% block content %}
{{ data.device_status.total or 0 }}
Total Devices
{{ data.total_people or 0 }}
Registered People
{{ data.utilization_rate }}%
Utilization Rate
{{ data.transaction_stats.total or 0 }}
Total Transactions
Device Status
Available {{ data.device_status.available or 0 }}
Pending Pickup {{ data.device_status.pending or 0 }}
Assigned {{ data.device_status.assigned or 0 }}
Retired {{ data.device_status.retired or 0 }}
Transaction Summary
Check-outs {{ data.transaction_stats.checkouts or 0 }}
Check-ins {{ data.transaction_stats.checkins or 0 }}
Pending {{ data.transaction_stats.pending or 0 }}
Legacy Records {{ data.transaction_stats.legacy or 0 }}
{% if data.avg_checkout_days %}
Avg. Checkout Duration {{ data.avg_checkout_days }} days
{% endif %}
Fleet Growth
{{ data.devices_added.this_month }}
Added This Month
{{ data.devices_added.last_month }}
Added Last Month
Devices by Manufacturer
{% if data.devices_by_make %} {% for item in data.devices_by_make %}
{{ item.make }} {{ item.count }}
{% endfor %} {% else %}

No device data available

{% endif %}
Top Device Models
{% if data.devices_by_model %} {% for item in data.devices_by_model %}
{{ item.device_model }} {{ item.count }}
{% endfor %} {% else %}

No device data available

{% endif %}
People by Location
{% if data.people_by_location %} {% for item in data.people_by_location %}
{{ item.location }} {{ item.count }}
{% endfor %} {% else %}

No location data available

{% endif %}
Top Device Holders
{% if data.top_device_holders %} {% for item in data.top_device_holders %}
{{ item.name }} {{ item.device_count }} device{{ 's' if item.device_count != 1 else '' }}
{% endfor %} {% else %}

No assigned devices

{% endif %}
{% if data.condition_distribution %}
Return Condition Distribution
{% for item in data.condition_distribution %}
{{ item.count }}
{{ item.condition|title }}
{% endfor %}
{% endif %} {% if data.transactions_by_month %}
Monthly Activity (Last 12 Months)
{% for item in data.transactions_by_month %} {% endfor %}
Month Check-outs Check-ins Total
{{ item.month }} {{ item.checkouts }} {{ item.checkins }} {{ item.total }}
{% for item in data.transactions_by_month %}
{{ item.month }}
{{ item.checkouts }} out · {{ item.checkins }} in
{{ item.total }}
{% endfor %}
{% endif %} {% if data.long_term_checkouts %}
Long-Term Checkouts (90+ Days)
{% for item in data.long_term_checkouts %}
{{ item.asset_tag }} - {{ item.make }} {{ item.model }}
{{ item.person_name }}
{{ item.days_out }} days
{% endfor %}
{% for item in data.long_term_checkouts %} {% endfor %}
Asset Tag Device Assigned To Checkout Date Days Out
{{ item.asset_tag }} {{ item.make }} {{ item.model }} {{ item.person_name }} {{ item.checkout_date[:10] if item.checkout_date else '-' }} {{ item.days_out }}
{% endif %} {% if data.recent_activity %}
Recent Activity (Last 7 Days)
{% for item in data.recent_activity %}
{{ item.date }} {{ item.count }} transaction{{ 's' if item.count != 1 else '' }}
{% endfor %}
{% endif %}
Fun Stats & Awards
{% if data.frequent_flyer %}
Frequent Flyer
Most device checkouts by a single person
{{ data.frequent_flyer.name }}
{{ data.frequent_flyer.checkout_count }} total checkouts
{% endif %} {% if data.boomerang_device %}
🎯
Boomerang Award
Device checked out the most times
{{ data.boomerang_device.asset_tag }}
{{ data.boomerang_device.trip_count }} round trips
{% endif %} {% if data.well_traveled %}
🌎
Well Traveled
Device used by the most different people
{{ data.well_traveled.asset_tag }}
{{ data.well_traveled.unique_users }} different users
{% endif %} {% if data.loyal_companion %}
💙
Loyal Companion
Longest current device assignment
{{ data.loyal_companion.person_name }}
{{ data.loyal_companion.days_together }} days with {{ data.loyal_companion.asset_tag }}
{% endif %} {% if data.veteran_device %}
🏆
Veteran Device
Oldest device still in active service
{{ data.veteran_device.asset_tag }}
{{ data.veteran_device.age_days }} days in the fleet
{% endif %} {% if data.newest_device %}
Fresh Off the Truck
Most recently added to inventory
{{ data.newest_device.asset_tag }}
{{ data.newest_device.make }} {{ data.newest_device.model }}
{% endif %} {% if data.speed_demon %}
Speed Demon
Fastest checkout-to-return turnaround
{{ data.speed_demon.person_name }}
Returned in {{ data.speed_demon.days_held }} day{% if data.speed_demon.days_held != 1 %}s{% endif %}
{% endif %} {% if data.busiest_day %}
🔥
Busiest Day
Day of the week with most activity
{{ data.busiest_day.day_name }}
{{ data.busiest_day.count }} total transactions
{% endif %} {% if data.peak_month %}
📈
Peak Month
Busiest month on record
{{ data.peak_month.month }}
{{ data.peak_month.count }} transactions
{% endif %} {% if data.popular_model %}
Popular Model
Most frequently checked out device type
{{ data.popular_model.device_model }}
{{ data.popular_model.checkout_count }} checkouts
{% endif %} {% if data.golden_device %}
🌟
Golden Device
Most "excellent" condition returns
{{ data.golden_device.asset_tag }}
{{ data.golden_device.excellent_count }}x returned in excellent condition
{% endif %}
{% endblock %}