56 lines
2.3 KiB
HTML
56 lines
2.3 KiB
HTML
<div class="card shadow-sm border-0 mb-4">
|
|
<div class="card-header py-3 d-flex justify-content-between align-items-center">
|
|
<h3 class="h5 mb-0 text-primary">
|
|
<i class="bi bi-person-check-fill me-2"></i>Resumo de Atendimentos
|
|
</h3>
|
|
<span class="badge rounded-pill bg-primary px-3">Mês Atual</span>
|
|
</div>
|
|
|
|
<div class="table-responsive">
|
|
<table class="table table-hover align-middle mb-0">
|
|
<thead class="table text-secondary">
|
|
<tr>
|
|
<th class="ps-4">Profissional</th>
|
|
<th>Serviço</th>
|
|
<th class="text-center">Qtd. Realizada</th>
|
|
<th class="text-end pe-4">Lucro Líquido</th>
|
|
</tr>
|
|
</thead>
|
|
<tbody>
|
|
{% for item in total_firm.services %}
|
|
<tr>
|
|
<td class="ps-4">
|
|
<span class="fw-bold ">{{ item.professional__name }}</span>
|
|
</td>
|
|
<td>
|
|
<span class="text-muted">{{ item.service__name }}</span>
|
|
</td>
|
|
<td class="text-center">
|
|
<span class="badge bg-light text-dark border">{{ item.quantidade_feitas }}</span>
|
|
</td>
|
|
<td class="text-end pe-4 fw-semibold text-success">
|
|
R$ {{ item.lucro_liquido|floatformat:2 }}
|
|
</td>
|
|
</tr>
|
|
{% empty %}
|
|
<tr>
|
|
<td colspan="4" class="text-center py-5 text-muted">
|
|
<p class="mb-0">Nenhum atendimento registrado até o momento.</p>
|
|
</td>
|
|
</tr>
|
|
{% endfor %}
|
|
</tbody>
|
|
|
|
{% if total_firm.services %}
|
|
<tfoot class="table-group-divider">
|
|
<tr class="bg-light">
|
|
<td colspan="3" class="fw-bold py-3">Total Geral da Firma:</td>
|
|
<td class="text-end pe-4 fw-bold text-primary h4 mb-0">
|
|
R$ {{ total_firm.total|floatformat:2 }}
|
|
</td>
|
|
</tr>
|
|
</tfoot>
|
|
{% endif %}
|
|
</table>
|
|
</div>
|
|
</div> |