caisse-bliss/app/Resources/views/logged/history.html.twig

137 lines
5.1 KiB
Twig
Raw Normal View History

2018-04-18 15:19:00 +02:00
{% extends 'base.html.twig' %}
{% block body %}
<div id="wrapper">
<div id="container" class="container">
<div class="row">
<h1>Historique</h1>
</div>
<div class="row">
<div class="col-xs-6">
<div class="sells">
2018-05-24 12:26:26 +02:00
<div class="row">
<div class="col-xs-12 col-sm-4">
<h2>
<i class="fa fa-users"></i>
<span class="chiffre key-figure">
2019-06-12 14:52:58 +02:00
{{ allSellings }}
2018-05-24 12:26:26 +02:00
</span>
Clients
</h2>
2018-04-18 15:19:00 +02:00
</div>
2018-05-24 12:26:26 +02:00
<div class="col-xs-12 col-sm-4">
<h2>
<i class="fa fa-euro"></i>
<span class="chiffre key-figure">
{{ chiffreAffaires }}
</span>
Chiffre d'affaires
</h2>
2018-04-18 15:19:00 +02:00
</div>
2018-05-24 12:26:26 +02:00
<div class="col-xs-12 col-sm-4">
<h2>
<i class="fa fa-shopping-cart"></i>
<span class="chiffre key-figure">
{% if allSellings %}
2019-06-12 14:52:58 +02:00
{{ (chiffreAffaires / (allSellings))|round }}
2018-05-24 12:26:26 +02:00
{% else %}
?
{% endif %}
</span>
2018-05-24 16:11:03 +02:00
€ panier moyen
2018-05-24 12:26:26 +02:00
</h2>
2018-04-18 15:19:00 +02:00
</div>
2018-05-24 12:26:26 +02:00
</div>
2018-04-18 15:19:00 +02:00
<div>
</div>
</div>
</div>
<div class="col-xs-6 text-right">
<a class="btn btn-success" href="{{ path('export_all') }}">
<i class="fa fa-file-o fa-3x"></i>
Exporter toutes vos données en format csv
</a>
2018-04-19 10:57:01 +02:00
2018-04-18 15:19:00 +02:00
</div>
</div>
2018-05-24 16:11:03 +02:00
<hr>
<h2 class="text-center">Statistiques de ventes </h2>
<div id="chartContainer" style="display: inline-block; height: 300px; width: 49%;"></div>
<div id="chartContainerChiffreAffaire" style="display: inline-block; height: 300px; width: 49%;"></div>
<h2> {{ statisticsFestivals |length }} Festival
{% if statisticsFestivals |length >1 %}
s
{% endif %}</h2>
<div id="chartContainerstatisticsFestivals"
style="display: inline-block; height: 300px; width: 100%;"></div>
2018-04-18 15:19:00 +02:00
</div>
2019-06-12 14:52:58 +02:00
<hr>
2018-05-24 16:11:03 +02:00
2019-06-12 14:52:58 +02:00
<div id="last-sellings">
<div class="row">
<div class="col-xs-12">
2018-05-24 16:11:03 +02:00
2019-06-12 14:52:58 +02:00
<div class="table">
<div class="row-fluid">
<div class="col-xs-12">
<h2>
{{ recentSells |length }} Dernières ventes
</h2>
</div>
</div>
<table class="table table-striped">
<thead>
<tr>
<td>date</td>
<td>commentaire</td>
<td>produits</td>
<td>montant</td>
<td>Actions</td>
</tr>
</thead>
<tbody>
{% for vente in recentSells %}
<tr>
<td> {{ vente.date |date('Y-m-d H:i:s') }}</td>
<td>{{ vente.comment }}</td>
<td class="text-right">{{ vente.productsSold |length }}</td>
<td class="text-right">
{{ vente.amount }}
</td>
<td>
<a href="{{ path('sellrecord_delete',{id: vente.id }) }}"
class="btn btn-warning pull-right">
<i class="fa fa-trash"></i>
</a>
</td>
</tr> {% endfor %}
</tbody>
</table>
</div>
</div>
2018-05-24 16:11:03 +02:00
</div>
2019-06-12 14:52:58 +02:00
2018-05-24 16:11:03 +02:00
</div>
2018-05-22 16:38:51 +02:00
2019-06-12 14:52:58 +02:00
{% include ':logged:history-script.html.twig' %}
2018-05-22 16:38:51 +02:00
2019-06-12 14:52:58 +02:00
</div>
2018-04-18 15:19:00 +02:00
{% endblock %}