{% extends 'dashboard/base.html' %} {% load humanize %} {% block title %}Dashboard - Peza API{% endblock %} {% block breadcrumb %}Overview{% endblock %} {% block content %}

Welcome, {{ request.user.username }}!

{% if plan %} {{ plan.name }} Plan {% endif %}
Keys

{{ api_keys.count }}

Manage →
This Month

{{ total_requests|default:0 }}

{{ remaining_requests|default:0 }} / {{ limit|default:100 }} left

Plan

{% if plan %}{{ plan.name }}{% else %}Free{% endif %}

{% if plan %}${{ plan.price_monthly }}{% else %}$0{% endif %}/mo

Status

{% if subscription and subscription.active %}Active{% else %}Inactive{% endif %}

{% if subscription and subscription.active %}Renews monthly{% else %}No sub{% endif %}

Recent Keys

All →
{% if api_keys %}
{% for key in api_keys|slice:":3" %}

{{ key.name }}

{{ key.key|slice:":8" }}…{{ key.key|slice:"-4:" }}

{{ key.is_active|yesno:"Active,Inactive" }} {{ key.requests_this_month|default:"0" }}
{% endfor %}
{% else %}

No keys yet

Create Key
{% endif %}

Quick Start

First API call

curl -H "X-API-Key: YOUR_KEY" \ "{{ request.scheme }}://{{ request.get_host }}/api/locations/?location=Lilongwe&category=hospital"

Replace YOUR_KEY with your actual key

API Usage – {{ current_month }}

Quick Actions

{% endblock %} {% block extra_js %} {% endblock %}