{% extends "layouts/master.html" %} {% block title %}Dashboard | SparkNext{% endblock %} {% block page_heading %}Dashboard{% endblock %} {% block extra_css %} {% endblock %} {% block content %}

Welcome to {{ current_location_name }}!

{% if current_building and current_building.address %} {{ current_building.address }} {% else %} Detecting your current location {% endif %}

00:00:00 Today
{% for card in dashboard_cards %}

{{ card.label }}

{{ card.value }}

{% endfor %}
{% if current_user.role == "admin" %}

Building Barcodes

{% for building in buildings %}
{{ building.name }}
QR Code for {{ building.name }}

{{ building.address or 'No address' }}

{% else %}
No buildings available.
{% endfor %}
{% endif %} {% if false %}

Total Patient

783k

+4%

Doctor

76

-4%

Appointment

76

-4%

Hospital Earning

$56k

+4%
{% endif %} {% if current_user.role != "admin" %}

Attendance

{% if today_attendance %} {% if today_attendance.check_out_at %} Today attendance completed and {{ today_attendance.approval_status }}. {% elif today_attendance.check_in_at %} Checked in. Check out when your duty is complete. {% else %} Ready for attendance. {% endif %} {% else %} Ready to check in for today's duty. {% endif %}

{% if today_attendance %} {{ today_attendance.approval_status }} {% else %} Not marked {% endif %}
{% endif %} {% endblock %} {% block extra_scripts %} {% endblock %}