{% extends "base.html" %} {% block title %}Executive Analytics Dashboard | myplayer Biz{% endblock %} {% block content %} {# 🌟 Resolve Table Mode Flags Safely #} {% set f_flags = (tenant.feature_flags if (tenant is defined and tenant and tenant.feature_flags is mapping) else {}) %} {% set is_table_mode = enable_pos_tables if enable_pos_tables is defined else f_flags.get('enable_pos_tables', false) %} {% set tbl_count = pos_table_count if pos_table_count is defined else (f_flags.get('pos_table_count', 20) | int) %} {% set vip_count = pos_vip_count if pos_vip_count is defined else (f_flags.get('pos_vip_count', 5) | int) %} {% set total_configured_tables = tbl_count + vip_count %}

လုပ်ငန်းလည်ပတ်မှု ပင်မဒိုင်ခွက် (Executive Dashboard)

{% if open_pos_sessions and open_pos_sessions > 0 %} ● POS Shift ({{ open_pos_sessions }}) ဖွင့်ထားဆဲ {% endif %}
လက်ရှိပြသမှု: {% if selected_branch_id == 'ALL' or not selected_branch_id %} ဆိုင်ခွဲအားလုံး ပေါင်းချုပ် (Consolidated HQ) {% else %} {{ current_branch.name if current_branch else 'Selected Branch' }} {% endif %} • TZ: {{ branch_timezone or 'Asia/Yangon' }}
အဝယ်သွင်းရန် POS ကောင်တာ
{% if is_table_mode %} {% set d_stats = today_dining_stats if today_dining_stats is defined else {} %}
စားပွဲဝိုင်းနှင့် ဆိုင်ထိုင်/ပါဆယ် လည်ပတ်မှု အခြေအနေ (Live Floor & Table Operations)
လက်ရှိ အသုံးပြုနေသော ဝိုင်းများ၊ မရှင်းရသေးသော ဘေလ်ပမာဏနှင့် ယနေ့ ဆိုင်ထိုင်/ပါဆယ် ရောင်းအား အနှစ်ချုပ်
POS စားပွဲဝိုင်းများ စီမံရန် →
လက်ရှိ ဝိုင်းအခြေအနေ (LIVE FLOOR) 0 / {{ total_configured_tables }}
သုံးစွဲဆဲ: 0 ဝိုင်း (အလွတ်: {{ total_configured_tables }})
ဘေလ်ကြိုထုတ်ထားသောဝိုင်း (Pre-Billed): 0 ဝိုင်း
ဝိုင်းများပေါ်ရှိ မရှင်းရသေးသောငွေ
0 Ks
လက်ရှိ ထိုင်နေဆဲ ဧည့်သည်ဦးရေ: 0 ဦး
ယနေ့ ဆိုင်ထိုင်ရောင်းအား (DINE-IN) {{ d_stats.get('dine_in_count', 0) }} ဝိုင်း
{{ "{:,.0f}".format(d_stats.get('dine_in_sales', 0)) }} Ks
၁ ဝိုင်း ပျမ်းမျှရောင်းအား: {{ "{:,.0f}".format(d_stats.get('avg_table_spend', 0)) }} Ks
ယနေ့ ပါဆယ်ရောင်းအား (TAKEAWAY) {{ d_stats.get('takeaway_count', 0) }} ပွဲ
{{ "{:,.0f}".format(d_stats.get('takeaway_sales', 0)) }} Ks
ယနေ့ ဧည့်သည်စုစုပေါင်း: {{ d_stats.get('total_guests', 0) }} ဦး
လက်ရှိ အော်ဒါဖွင့်ထားဆဲ ဝိုင်းများ (နှိပ်၍ POS တွင် တိုက်ရိုက်ကြည့်နိုင်သည်):
{% endif %}
ယနေ့ အရောင်း (TODAY SALES)
{{ "{:,.0f}".format(today_sales|default(0)) }} Ks
{% if sales_delta_pct is defined %}
{% if sales_delta_pct >= 0 %}▲{% else %}▼{% endif %} {{ sales_delta_pct }}% မနေ့ကနှင့် နှိုင်းယှဉ်လျှင် မနေ့က: {{ "{:,.0f}".format(yesterday_sales|default(0)) }} Ks • ဘောက်ချာ {{ orders_delta_pct|default(0) }}%
{% endif %}
ယခုလ စုစုပေါင်းအရောင်း (MTD)
{{ "{:,.0f}".format(month_sales|default(0)) }} Ks
{% if mtd_growth_pct is defined %}
{% if mtd_growth_pct >= 0 %}▲{% else %}▼{% endif %} {{ mtd_growth_pct }}% ပြီးခဲ့သည့်လ အလားတူကာလနှင့်
{% endif %}
ယခုလ လည်ပတ်စရိတ် (OPEX + PAYROLL)
{{ "{:,.0f}".format(total_operating_costs|default(0)) }} Ks
{% set net_pnl = net_profit|default(0) %}
ယခုလ အသားတင်အမြတ် (NET P&L)
{{ "{:,.0f}".format(net_pnl) }} Ks
ငွေသားနှင့် ဘဏ်လက်ကျန် (LIQUIDITY)
{{ "{:,.0f}".format(cash_bank_balance|default(0)) }} Ks
လက်ကျန် စတော့ခ်တန်ဖိုး (INVENTORY)
{{ "{:,.0f}".format(inventory_valuation|default(0)) }} Ks
ဖောက်သည် ရရန်ကြွေးကျန် (AR)
{{ "{:,.0f}".format(total_ar|default(0)) }} Ks
Supplier ပေးရန်ကြွေးကျန် (AP)
{{ "{:,.0f}".format(total_ap|default(0)) }} Ks
{% set total_alerts = (low_stock_items|length) + (low_raw_materials|length) + (expiring_batches|length) %} {% if total_alerts > 0 %}
စတော့ခ်နှင့် သက်တမ်းကုန်ဆုံးရက် သတိပေးချက် ({{ total_alerts }} မျိုး)
ကုန်ချော လက်ကျန်နည်း ({{ low_stock_items|length }}) မျိုး • BOM ကုန်ကြမ်း လက်ကျန်နည်း ({{ low_raw_materials|length }}) မျိုး • ရက် ၃၀ အတွင်း သက်တမ်းကုန်မည့် Batch ({{ expiring_batches|length }}) ခု
အသေးစိတ် ကြည့်မည်
{% endif %} {% if below_cost_items %}
သတိပြုရန်: ဝယ်ရင်းဈေး (Cost Price) ထက် ရောင်းဈေး နည်းနေသော ပစ္စည်း ({{ below_cost_items|length }}) မျိုး ရှိပါသည်!
{% for item in below_cost_items[:3] %}{{ item.name }} (ဝယ်ရင်း {{ "{:,.0f}".format(item.cost_price) }} Ks • ရောင်း {{ "{:,.0f}".format(item.selling_price) }} Ks • အရှုံး {{ "{:,.0f}".format(item.loss) }} Ks){% if not loop.last %} • {% endif %}{% endfor %}{% if below_cost_items|length > 3 %} • နောက်ထပ် {{ below_cost_items|length - 3 }} မျိုး{% endif %} — POS တွင် အရှုံးဖြင့် ရောင်းမိနိုင်ပါသဖြင့် ရောင်းဈေးများကို ပြန်လည်စိစစ်ပေးပါ။
ကုန်ပစ္စည်းစာရင်းတွင် ပြင်မည်
{% endif %}
ငွေအဝင် vs ငွေအထွက် စီးဆင်းမှု (Cash Flow In vs Out)
၇ ရက်အတွင်း ဝင်လာသည့် ငွေသားနှင့် ပြန်လည်ထွက်သွားသည့် ငွေပမာဏ
Cash Flow
ဆိုင်ခွဲအလိုက် အရောင်းနှင့်အမြတ် နှိုင်းယှဉ်ချက် (Branch Performance)
ဆိုင်ခွဲတစ်ခုချင်းစီ၏ ယခုလ အရောင်း (အပြာ) နှင့် အမြတ် (အစိမ်း)
Multi-Branch
၇ ရက်တာ အရောင်းနှင့် အကြမ်းအမြတ် လမ်းကြောင်း (7-Day Revenue vs Gross Profit)
နေ့စဉ် အရောင်းရငွေ (အပြာ) နှင့် FIFO အကြမ်းအမြတ် (အစိမ်း) နှိုင်းယှဉ်ချက်
Dual Analytics
ကုန်ကျစရိတ် ခွဲခြမ်းမှု (Cost Structure)
ရောင်းကုန်ဝယ်ရင်း (COGS)၊ စရိတ်၊ လစာနှင့် ပျက်စီးမှုများ
COGS: {{ "{:,.0f}".format(month_cogs|default(0)) }} Ks OpEx: {{ "{:,.0f}".format(total_operating_costs|default(0)) }} Ks
ငွေပေးချေမှု ပုံစံများ ဖြန့်ကျက်မှု (Payment Channels)
CASH, KBZPAY, CB, COD နှင့် အကြွေး ရောင်းချမှု အချိုးအစား
ယခုလ အသားတင်အရောင်း: {{ "{:,.0f}".format(month_net_sales|default(0)) }} Ks
ယခုလ အရောင်းရဆုံး ၅ မျိုး (Top 5 Best Sellers)
အရောင်းရငွေနှင့် အမြတ်အများဆုံး ဦးဆောင်နေသော ကုန်ပစ္စည်းများ
Best Selling
ယနေ့ နာရီအလိုက် အရောင်းပုံစံ (Hourly Sales Pattern)
{% if peak_hour_label %} 🔥 အရောင်းအကောင်းဆုံးအချိန်: {{ peak_hour_label }} {% endif %}
ဝန်ထမ်းအင်အား စီစဉ်ရန်နှင့် ဆိုင်အဖွင့်အချိန် ဆုံးဖြတ်ရန် အသုံးဝင်သည်။
ယခုလ ထိပ်တန်း ဖောက်သည်များ (Top Customers)
{% for cu in top_customers %} {% else %} {% endfor %}
{{ loop.index }}. {{ cu.customer_name }} {{ cu.orders_count }} စောင် {{ "{:,.0f}".format(cu.total_amount) }} Ks
ယခုလတွင် ဖောက်သည်အရောင်း မရှိသေးပါ
ယနေ့ အရောင်းဝန်ထမ်း စွမ်းဆောင်ရည် (Cashier Performance)
{% for cs in cashier_sales %} {% else %} {% endfor %}
{{ loop.index }}. {{ cs.cashier_name }} {{ cs.orders_count }} စောင် {{ "{:,.0f}".format(cs.total_amount) }} Ks
ယနေ့ အရောင်း မရှိသေးပါ
{% if imei_stats %}
IMEI / Serial စတော့ခ် အခြေအနေ
IMEI Tracker သို့
လက်ကျန် Device (In Stock)
{{ "{:,}".format(imei_stats.in_stock) }} လုံး
ယနေ့ ရောင်းထွက် (Sold Today)
{{ "{:,}".format(imei_stats.sold_today) }} လုံး
လက်ကျန် Device တန်ဖိုး (Cost)
{{ "{:,.0f}".format(imei_stats.stock_value) }} Ks
{% endif %} {% if bom_stats %}
ယနေ့ ထုတ်လုပ်မှုနှင့် BOM အသုံးပြုမှု
Assembly သို့
ထုတ်လုပ်မှု အကြိမ်
{{ bom_stats.productions_today }} ကြိမ်
ထုတ်လုပ်ပြီး ပမာဏ
{{ "{:,.0f}".format(bom_stats.produced_qty_today) }}
ထုတ်လုပ်မှု ကုန်ကျစရိတ်
{{ "{:,.0f}".format(bom_stats.production_cost_today) }} Ks
BOM / ဆိုင်တွင်းသုံး ကုန်ကျစရိတ်
{{ "{:,.0f}".format(bom_stats.bom_used_cost_today) }} Ks
{% endif %}
လတ်တလော အရောင်းဘောက်ချာများ (Recent Orders)
အားလုံးကြည့်မည် →
{% for o in orders[:8] %} {% else %} {% endfor %}
ဘောက်ချာအမှတ် အချိန် ဖောက်သည် အခြေအနေ ကျသင့်ငွေ Print
{{ o.invoice_no }} {% if o.table_name %} {{ o.table_name }} {% endif %} {{ o.created_at | format_time(branch_timezone) }} {{ o.customer.name if o.customer else 'General Customer' }} {% if o.payment_status == 'PAID' %} PAID {% elif o.payment_status == 'PARTIAL' %} PARTIAL {% else %} DUE {% endif %} {{ "{:,.0f}".format(o.grand_total) }} Ks
လတ်တလော အရောင်းမှတ်တမ်း မရှိသေးပါ။
ငွေစာရင်းအကောင့်များနှင့် မီးခံသေတ္တာများ
အသေးစိတ် →
{% for a in accounts %} {% else %} {% endfor %}
အကောင့်အမည် အမျိုးအစား လက်ကျန်ငွေ
{{ a.account_name }} {% if a.is_drawer_account %} POS Drawer {% endif %} {{ a.account_type }} {{ "{:,.0f}".format(a.current_balance) }} Ks
ငွေစာရင်းအကောင့်များ မရှိသေးပါ။
ကုန်ပစ္စည်းစာရင်းသို့ →
{% for b in batches[:8] %} {% else %} {% endfor %}
Batch No ကုန်ပစ္စည်းအမည် ဝယ်ယူသည့်ရက်စွဲ ဝယ်ရင်းဈေး (Landed Cost) လက်ကျန် Qty
{{ b.batch_no }}
{{ b.variant.product.name if b.variant and b.variant.product else 'Product' }}
{{ b.received_date | format_time(branch_timezone) if b.received_date else '-' }} {{ "{:,.0f}".format(b.cost_price) }} Ks {{ b.current_qty }}
လက်ကျန်ရှိသော FIFO Batches မရှိသေးပါ။
လက်ကျန်နည်းနေသော ကုန်ချောနှင့် ကုန်ကြမ်းများ
{% for item in low_stock_items[:6] %}
{{ item.product_name or item.name }}
{{ item.sku or '-' }} {% if item.branch_name %} • {{ item.branch_name }}{% endif %}
လက်ကျန်: {{ item.current_stock if item.current_stock is defined else (item.avail_qty if item.avail_qty is defined else item.quantity) }} {{ item.unit or 'Pcs' }}
{% endfor %} {% for rm in low_raw_materials %}
🥤 {{ rm.name }} (BOM ကုန်ကြမ်း)
{{ rm.branch_name }}
{{ "{:,.1f}".format(rm.current_stock) }} {{ rm.unit }}
{% endfor %} {% if not low_stock_items and not low_raw_materials %}
ဤဆိုင်ခွဲတွင် စတော့ခ်လက်ကျန်နည်းပါးသော ပစ္စည်း မရှိပါ။
{% endif %}
ရက် (၃၀) အတွင်း သက်တမ်းကုန်ဆုံးမည့် Batches
{% for eb in expiring_batches %}
{{ eb.product_name }}
Batch: {{ eb.batch_no }} (Qty: {{ eb.current_qty }}) {% if eb.branch_name %} • {{ eb.branch_name }}{% endif %}
Exp: {{ eb.expiry_date }}
{% else %}
သက်တမ်းကုန်ဆုံးရန် နီးကပ်နေသော Batch မရှိပါ။
{% endfor %}
{% for log in recent_logs %} {% else %} {% endfor %}
အချိန် လုပ်ဆောင်ချက် (Action) အသေးစိတ် မှတ်တမ်း
{{ log.created_at | format_time(branch_timezone) }} {{ log.action }} {{ log.description }}
လတ်တလော လုပ်ဆောင်ချက်မှတ်တမ်း မရှိသေးပါ။
{% endblock %}