Files
CenterPes/Base/templates/Dashboards/DashboardAdmin/Stone.html
2026-01-02 09:19:43 -03:00

51 lines
2.6 KiB
HTML

<div class="container mt-5">
<div class="row">
<div class="col-12">
<div class="card shadow">
<div class="card-header bg-dark d-flex justify-content-between align-items-center">
<h4 class="mb-0 text-white">Relatório de Métricas de Estoque</h4>
<span class="badge bg-primary">Total de Itens: {{ Stone.Stone|length }}</span>
</div>
<div class="card-body p-0">
<div class="table-responsive">
<table class="table table-dark table-hover mb-0">
<thead class="table">
<tr>
<th>Produto</th>
<th class="text-center">Q. Estoque</th>
<th>Custo Bruto </th>
<th>Valor Adquirido </th>
<th>Preço Unit. Compra</th>
</tr>
</thead>
<tbody>
{% for item in Stone.Stone %}
<tr>
<td class="fw-bold text-info">{{ item.produto }}</td>
<td class="text-center">
<span class="badge {% if item.quantidade_estoque > 0 %}bg-success{% else %}bg-danger{% endif %}">
{{ item.quantidade_estoque }}
</span>
</td>
<td>R$ {{ item.valor_total_estoque_bruto|floatformat:2 }}</td>
<td class="text-success-custom">R$ {{ item.valor_total_estoque_liquido|floatformat:2 }}</td>
<td class="text-text-success-custom">R$ {{ item.valor_unitario_compra_medio|floatformat:2 }}</td>
</tr>
{% empty %}
<tr>
<td colspan="5" class="text-center py-4 text-muted">Nenhum registro encontrado.</td>
</tr>
{% endfor %}
</tbody>
</table>
</div>
</div>
{# <div class="card-footer bg-dark text-muted">#}
{# <small>Gerado em: {% now "d/m/Y H:i" %}</small>#}
{# </div>#}
</div>
</div>
</div>
</div>
{#{{Stone.}}#}