first commit
This commit is contained in:
24
Base/templates/Dashboards/Dashboard/Professional.html
Normal file
24
Base/templates/Dashboards/Dashboard/Professional.html
Normal file
@@ -0,0 +1,24 @@
|
||||
<h3> Professional </h3>
|
||||
<div class="row">
|
||||
<table class="table">
|
||||
<thead>
|
||||
<tr>
|
||||
<th>Banco</th>
|
||||
<th>Total</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
{% for Prof, sum in Professional.professional.items %}
|
||||
{% if sum != 0 %}
|
||||
<tr class="table table-striped" >
|
||||
<td>{{ Prof }}</td>
|
||||
<td>R$ {{ sum|floatformat:2 }}</td>
|
||||
</tr>
|
||||
{% endif %}
|
||||
{% empty %} <tr> <td colspan="2"> Vazio. </td> </tr> {% endfor %}
|
||||
</tbody>
|
||||
</table>
|
||||
<p> Total : R$: {{ Professional.sum_all_prof|floatformat:2 }}</p>
|
||||
</div>
|
||||
|
||||
<br>
|
||||
24
Base/templates/Dashboards/Dashboard/Service.html
Normal file
24
Base/templates/Dashboards/Dashboard/Service.html
Normal file
@@ -0,0 +1,24 @@
|
||||
<h3> Serviço </h3>
|
||||
<div class="row">
|
||||
<table class="table">
|
||||
<thead>
|
||||
<tr>
|
||||
<th>Produtos</th>
|
||||
<th>Total</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
{% for Prod, sum in Service.Service.items %}
|
||||
{% if sum != 0 %}
|
||||
<tr class="table table-striped" >
|
||||
<td>{{ Prod }}</td>
|
||||
<td>R$ {{ sum|floatformat:2 }}</td>
|
||||
</tr>
|
||||
{% endif %}
|
||||
{% empty %} <tr> <td colspan="2"> Vazio. </td> </tr> {% endfor %}
|
||||
</tbody>
|
||||
</table>
|
||||
<p> Total R$: {{ Service.sum|floatformat:2 }}</p>
|
||||
</div>
|
||||
|
||||
<br>
|
||||
31
Base/templates/Dashboards/Dashboard/Sum_of_product.html
Normal file
31
Base/templates/Dashboards/Dashboard/Sum_of_product.html
Normal file
@@ -0,0 +1,31 @@
|
||||
<div class="container-fluid mt-2 bg-dark text-light p-2" style="font-size: 0.85rem;">
|
||||
<h6 class="text-secondary text-uppercase border-bottom border-secondary pb-1 mb-2">
|
||||
<i class="bi bi-cart me-1"></i>Produtos
|
||||
</h6>
|
||||
|
||||
<div class="border border-secondary rounded overflow-hidden">
|
||||
<div class="d-flex justify-content-between px-2 py-1 bg-black bg-opacity-40 text-secondary" style="font-size: 0.7rem;">
|
||||
<span>PRODUTO (QTD)</span>
|
||||
<span>TOTAL</span>
|
||||
</div>
|
||||
|
||||
{% for name, value in Sum_of_product.product_report.items %}
|
||||
{% if value.product_item != 0 %}
|
||||
<div class="d-flex justify-content-between align-items-center p-1 px-2 border-bottom border-secondary border-opacity-25 bg-opacity-5">
|
||||
<span class="text-truncate" style="max-width: 70%;">
|
||||
{{ name }}
|
||||
<span class="badge bg-secondary ms-1" style="font-size: 0.65rem;">{{ value.product_cont }}x</span>
|
||||
</span>
|
||||
<span class="fw-bold">R$ {{ value.product_item|floatformat:2 }}</span>
|
||||
</div>
|
||||
{% endif %}
|
||||
{% empty %}
|
||||
<div class="p-2 text-center text-muted italic">Vazio.</div>
|
||||
{% endfor %}
|
||||
|
||||
<div class="d-flex justify-content-between align-items-center p-1 px-2 bg-black bg-opacity-50">
|
||||
<span class="text-uppercase" style="font-size: 0.7rem;">Total da Venda</span>
|
||||
<span class="text-warning fw-bold">R$ {{ Sum_of_product.sum_of_product|floatformat:2 }}</span>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
@@ -0,0 +1,40 @@
|
||||
<div class="container-fluid mt-2 bg-dark text-light p-2" style="font-size: 0.85rem;">
|
||||
<h5 class="text-center mb-3 border-bottom border-secondary pb-2 text-uppercase">Resumo de Atendimentos</h5>
|
||||
|
||||
<div class="row">
|
||||
{% for prof_name, services in Sum_of_professional_detail.professionals_report.items %}
|
||||
<div class="col-12 mb-2">
|
||||
<div class="border border-secondary rounded p-2 bg-black bg-opacity-10">
|
||||
<div class="d-flex justify-content-between align-items-center mb-1">
|
||||
<span class="fw-bold text-info">{{ prof_name }}</span>
|
||||
</div>
|
||||
|
||||
{% for service_name, data in services.items %}
|
||||
{% if data.servCont > 0 %}
|
||||
<div class="ps-2 mb-1 border-start border-secondary">
|
||||
<div class="d-flex justify-content-between " style="font-size: 0.75rem;">
|
||||
<span>{{ service_name }} ({{ data.servCont }})</span>
|
||||
<span class="fw-bold">R$ {{ data.servSum|floatformat:2 }}</span>
|
||||
</div>
|
||||
|
||||
{% for client in data.clients %}
|
||||
<div class="d-flex justify-content-between py-0 px-1 border-bottom border-secondary border-opacity-25 bg-opacity-5">
|
||||
<span>{{ client.time }} <span class="text-truncate" style="max-width: 60%;">{{ client.name }}</span></span>
|
||||
<span class="text-success ms-2">R${{ client.value|floatformat:0 }}</span>
|
||||
</div>
|
||||
{% endfor %}
|
||||
</div>
|
||||
{% endif %}
|
||||
{% endfor %}
|
||||
</div>
|
||||
</div>
|
||||
{% endfor %}
|
||||
</div>
|
||||
|
||||
<div class="mt-3 p-2 bg-black rounded d-flex justify-content-between align-items-center border border-success border-opacity-50">
|
||||
<small class="text-secondary text-uppercase">Total Geral</small>
|
||||
<h6 class="mb-0 text-success">R$ {{ Sum_of_professional_detail.sum_of_prof|floatformat:2 }}</h6>
|
||||
</div>
|
||||
</div>
|
||||
{#<p> Total de Hoje : R$: {{ Sum_of_professional_detail.sum_of_prof|floatformat:2 }}</p>#}
|
||||
<br>
|
||||
@@ -0,0 +1,23 @@
|
||||
<div class="container-fluid mt-2 bg-dark text-light p-2" style="font-size: 0.85rem;">
|
||||
<h6 class="text-secondary text-uppercase border-bottom border-secondary pb-1 mb-2">
|
||||
<i class="bi bi-bank me-1"></i>Pagamentos
|
||||
</h6>
|
||||
|
||||
<div class="border border-secondary rounded overflow-hidden">
|
||||
{% for name, value in Sum_payment_method_service.bank_balance.items %}
|
||||
{% if value != 0 %}
|
||||
<div class="d-flex justify-content-between align-items-center p-1 px-2 border-bottom border-secondary border-opacity-25 bg-opacity-5">
|
||||
<span class="">{{ name }}</span>
|
||||
<span class="fw-bold">R$ {{ value|floatformat:2 }}</span>
|
||||
</div>
|
||||
{% endif %}
|
||||
{% empty %}
|
||||
<div class="p-2 text-center text-muted italic">Vazio</div>
|
||||
{% endfor %}
|
||||
|
||||
<div class="d-flex justify-content-between align-items-center p-1 px-2 bg-black bg-opacity-50">
|
||||
<span class="text-uppercase" style="font-size: 0.7rem;">Total Banco</span>
|
||||
<span class="text-info fw-bold">R$ {{ Sum_payment_method_service.sum_of_bank|floatformat:2 }}</span>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
24
Base/templates/Dashboards/Dashboard/index.html
Normal file
24
Base/templates/Dashboards/Dashboard/index.html
Normal file
@@ -0,0 +1,24 @@
|
||||
{% extends "BaseLogin.html" %}
|
||||
{% block title %} Dashboard {% endblock %}
|
||||
{% block content %}
|
||||
|
||||
<div class="row">
|
||||
<div class="col-md-3">
|
||||
{% include 'Dashboards/Dashboard/Sum_of_professional_detail.html' %}
|
||||
</div>
|
||||
<div class="col-md-3">
|
||||
{% include 'Dashboards/Dashboard/Sum_payment_method_service.html' %}
|
||||
{% include 'Dashboards/Dashboard/Sum_of_product.html' %}
|
||||
</div>
|
||||
</div>
|
||||
{#<div class="row">#}
|
||||
{# <div class="col-2">#}
|
||||
{# <div class="col-md-12">{% include 'Dashboards/Dashboard/Professional.html' %} </div>#}
|
||||
|
||||
{# <div class="col-md-12">{% include 'Dashboards/Dashboard/Service.html' %} </div>#}
|
||||
{# </div>#}
|
||||
{#</div>#}
|
||||
{# <br>#}
|
||||
|
||||
|
||||
{% endblock %}
|
||||
Reference in New Issue
Block a user