<x-card title="Aperçu de l'activité">

    <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 en attente</td>
                <td class="value text-right">{{ $waitingOrders ?? 0 }}</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 offres & stocks" class="dashtable" classBody="p-1 bg-light">
        <table class="table table-stripped counter w-100">
            <tr>
                <td class="index">Offres disponibles</td>
                <td class="value float-right">{{ $offers_count ?? 0 }}</td>
            </tr>
            <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">Clients</td>
                <td class="value float-right">{{ $countCustomers ?? 0 }}</td>
            </tr>
        </table>
    </x-card>
</x-card>
