<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>

	<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="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>
