add new metrics, graph metrics, prepare basket to storage

This commit is contained in:
ludo
2024-01-29 23:44:49 +01:00
parent 9fcc81f4d9
commit 53ad10eefa
12 changed files with 219 additions and 214 deletions

View File

@@ -1,74 +1,66 @@
<x-card title="Aperçu de l'activité">
<div class="counter">
<span class="index">Paniers Actifs</span>
<div class="value float-right">40</div>
</div>
<div>
<span class="text-muted">dans les 30 dernières minutes</span>
</div>
<div class="counter">
<span class="index">Paniers Actifs</span>
<div class="value float-right">40</div>
</div>
<div>
<span class="text-muted">dans les 30 dernières minutes</span>
</div>
<x-card title="Etat des commandes" class="dashtable" classBody="p-1 bg-light">
<table class="table table-stripped counter w-100">
<tr>
<td class="index">Commandes</td>
<td class="value text-right">{{ $orders_count }}</td>
</tr>
<tr>
<td class="index">En préparation depuis moins de 24h</td>
<td class="value float-right">{{ $preparationLess24H ?? 0 }}</td>
</tr>
<tr>
<td class="index">En préparation depuis moins de 48h</td>
<td class="value float-right">{{ $preparationLess48H ?? 0 }}</td>
</tr>
<tr>
<td class="index">En préparation depuis plus de 48h</td>
<td class="value float-right">{{ $preparationMore48H ?? 0 }}</td>
</tr>
<tr>
<td class="index">Echec de paiement</td>
<td class="value float-right">{{ $paymentsFailed ?? 0 }}</td>
</tr>
<tr>
<td class="index">
A rembourser<br>
<span class="text-muted">Payés sans stock disponible</span>
</td>
<td class="value float-right">{{ $refunds ?? 0 }}</td>
</tr>
<tr>
<td class="index">
En attente de confirmation<br>
<span class="text-muted">Pour les ventes pro</span>
</td>
<td class="value float-right">{{ $ordersNotConfirmed ?? 0 }}</td>
</tr>
</table>
</x-card>
<x-card title="Etat des commandes" class="dashtable" classBody="p-1 bg-light">
<table class="table table-stripped counter w-100">
<tr>
<td class="index">Commandes</td>
<td class="value text-right">{{ $orders_count }}</td>
</tr>
<tr>
<td class="index">En préparation depuis moins de 24h</td>
<td class="value float-right">{{ $preparationLess24H ?? 0 }}</td>
</tr>
<tr>
<td class="index">En préparation depuis moins de 48h</td>
<td class="value float-right">{{ $preparationLess48H ?? 0 }}</td>
</tr>
<tr>
<td class="index">En préparation depuis plus de 48h</td>
<td class="value float-right">{{ $preparationMore48H ?? 0 }}</td>
</tr>
<tr>
<td class="index">Echec de paiement</td>
<td class="value float-right">{{ $paymentsFailed ?? 0 }}</td>
</tr>
<tr>
<td class="index">
A rembourser<br>
<span class="text-muted">Payés sans stock disponible</span>
</td>
<td class="value float-right">{{ $refunds ?? 0 }}</td>
</tr>
<tr>
<td class="index">
En attente de confirmation<br>
<span class="text-muted">Pour les ventes pro</span>
</td>
<td class="value float-right">{{ $ordersNotConfirmed ?? 0 }}</td>
</tr>
</table>
</x-card>
<x-card title="Suivi des stocks" class="dashtable" classBody="p-1 bg-light">
<table class="table table-stripped counter w-100">
<tr>
<td class="index">Stock critique</td>
<td class="value float-right">{{ $stocksWarning ?? 0 }}</td>
</tr>
<tr>
<td class="index">Paramétrage du niveau critique</td>
<td class="value float-right"></td>
</tr>
</table>
</x-card>
<x-card title="Suivi des stocks" class="dashtable" classBody="p-1 bg-light">
<table class="table table-stripped counter w-100">
<tr>
<td class="index">Stock critique</td>
<td class="value float-right">{{ $stocksWarning ?? 0 }}</td>
</tr>
</table>
</x-card>
<x-card title="Clients et suivi client" class="dashtable" classBody="p-1 bg-light">
<table class="table table-stripped counter w-100">
<tr>
<td class="index">Nouveaux clients</td>
<td class="value float-right">{{ $newClients ?? 0 }}</td>
</tr>
<tr>
<td class="index">Exporter le fichier clients</td>
<td class="value float-right"></td>
</tr>
</table>
</x-card>
<x-card title="Clients et suivi client" class="dashtable" classBody="p-1 bg-light">
<table class="table table-stripped counter w-100">
<tr>
<td class="index">Nouveaux clients</td>
<td class="value float-right">{{ $newClients ?? 0 }}</td>
</tr>
</table>
</x-card>
</x-card>

View File

@@ -1,38 +1,30 @@
<div class="row">
<div class="col-sm-3 col-xs-6">
<div class="description-block border-right">
<span class="description-percentage text-green"><i class="fa fa-caret-up"></i> 17%</span>
<h5 class="description-header">{{ $orders_sum ?? 0 }} </h5>
<span class="description-text">TOTAL VENTE</span>
</div>
<!-- /.description-block -->
</div>
<!-- /.col -->
<div class="col-sm-3 col-xs-6">
<div class="description-block border-right">
<span class="description-percentage text-yellow"><i class="fa fa-caret-left"></i> 0%</span>
<h5 class="description-header">{{ $orders_avg ?? 0 }} </h5>
<span class="description-text">PANIER MOYEN</span>
</div>
<!-- /.description-block -->
</div>
<!-- /.col -->
<div class="col-sm-3 col-xs-6">
<div class="description-block border-right">
<span class="description-percentage text-green"><i class="fa fa-caret-up"></i> 20%</span>
<h5 class="description-header">{{ $clients_count ?? 0 }}</h5>
<span class="description-text">NB CLIENTS</span>
</div>
<!-- /.description-block -->
</div>
<!-- /.col -->
<div class="col-sm-3 col-xs-6">
<div class="description-block">
<span class="description-percentage text-red"><i class="fa fa-caret-down"></i> 18%</span>
<h5 class="description-header">{{ $offers_count ?? 0 }}</h5>
<span class="description-text">NB OFFRES</span>
</div>
<!-- /.description-block -->
</div>
<div class="col-sm-3 col-xs-6">
<div class="description-block border-right">
<span class="description-percentage text-green"><i class="fa fa-caret-up"></i> 17%</span>
<h5 class="description-header">{{ $orders_sum ?? 0 }} </h5>
<span class="description-text">TOTAL VENTE</span>
</div>
</div>
<div class="col-sm-3 col-xs-6">
<div class="description-block border-right">
<span class="description-percentage text-yellow"><i class="fa fa-caret-left"></i> 0%</span>
<h5 class="description-header">{{ $orders_avg ?? 0 }} </h5>
<span class="description-text">PANIER MOYEN</span>
</div>
</div>
<div class="col-sm-3 col-xs-6">
<div class="description-block border-right">
<span class="description-percentage text-green"><i class="fa fa-caret-up"></i> 20%</span>
<h5 class="description-header">{{ $clients_count ?? 0 }}</h5>
<span class="description-text">NB CLIENTS</span>
</div>
</div>
<div class="col-sm-3 col-xs-6">
<div class="description-block">
<span class="description-percentage text-red"><i class="fa fa-caret-down"></i> 18%</span>
<h5 class="description-header">{{ $offers_count ?? 0 }}</h5>
<span class="description-text">NB OFFRES</span>
</div>
</div>
</div>
<!-- /.row -->

View File

@@ -5,18 +5,6 @@
@include('boilerplate::logs.style')
@section('content')
<div class="btn-group mb-3" role="group" aria-label="" class="d-none">
<button type="button" class="btn btn-sm btn-secondary text-nowrap" data-id="day">jour</button>
<button type="button" class="btn btn-sm btn-secondary text-nowrap" data-id="month">mois</button>
<button type="button" class="btn btn-sm btn-secondary text-nowrap" data-id="year">année</button>
<button type="button" class="btn btn-sm btn-secondary text-nowrap" data-id="yesterday">jour-1</button>
<button type="button" class="btn btn-sm btn-secondary text-nowrap" data-id="lastmonth">mois-1</button>
<button type="button" class="btn btn-sm btn-secondary text-nowrap" data-id="lastyear">année-1</button>
@include('components.form.daterangepicker', [
'name' => 'period',
])
</div>
<div class="row dashboard">
<div class="col-lg-3 col-sm-6 col-xs-12">
@include('Admin.Shop.Dashboard._partials.counter')