{% extends "base.html" %} {% block title %}Laporan Finansial{% endblock %} {% block content %}
💰
Rp {{ "{:,.0f}".format(total_pendapatan).replace(',','.') }}
Total Pendapatan
👥
{{ total_tamu }}
Total Tamu
⚠️
{{ data_belum_sync }}
Data Belum Sinkron

Pendapatan Bulanan (12 Bulan Terakhir)

{% if top_kamar %}

🏆 Kamar Terlaris

{% for k in top_kamar %} {% endfor %}
Peringkat Nomor Kamar Tipe Jumlah Booking Total Pendapatan
{% if loop.index == 1 %}🥇 {% elif loop.index == 2 %}🥈 {% elif loop.index == 3 %}🥉 {% else %}#{{ loop.index }}{% endif %} {{ k.nomor_kamar }} {{ k.tipe_kamar | capitalize }} {{ k.jumlah_booking }}x Rp {{ "{:,.0f}".format(k.total_pendapatan or 0).replace(',','.') }}
{% endif %} {% if data_bulanan %}

Rincian Per Bulan

{% for d in data_bulanan | reverse %} {% endfor %}
Bulan Jumlah Transaksi Total Pendapatan
{{ d.label }} {{ d.jumlah_transaksi }}x Rp {{ "{:,.0f}".format(d.total or 0).replace(',','.') }}
{% endif %} {% endblock %} {% block scripts %} {% endblock %}