<!-- resources/views/your-page.blade.php -->
@extends('layouts.theme1')

@section('title', 'Dashboard')

@section('content')
    <!-- Contenu de votre page -->
    
    <div class="row">
        <div class="col-12">
            <div class="card">
            <div class="border-bottom title-part-padding">
                <h4 class="card-title mb-0">Statistiques</h4>
            </div>
            
            <div class="row">
                <div class="col-sm-6 col-lg-3">
                    <div class="card">
                        <div class="card-body">
                            <div class="d-flex align-items-center">
                            <span class="circle-box md-box text-dark-white bg-primary"><i class="fs-2 bi bi-wallet2"></i></span>
                            <div class="ms-3">
                                <h2 class="mb-1 fw-normal">{{ number_format($totalPrice, 0, ',', ' ') }} (FCFA)</h2>
                                <div class="fs-6 text-muted card-subtitle">Total Revenue</div>
                            </div>
                            </div>
                        </div>
                    </div>
                </div>
                <div class="col-sm-6 col-lg-3">
                    <div class="card">
                        <div class="card-body">
                            <div class="d-flex align-items-center">
                            <span class="circle-box md-box text-dark-white bg-warning"><i class="fs-2 bi bi-people"></i></span>
                            <div class="ms-3">
                                <h2 class="mb-1 fw-normal">{{$numberOfUsers}}</h2>
                                <div class="fs-6 text-muted card-subtitle">Nombre d'utilisateur</div>
                            </div>
                            </div>
                        </div>
                    </div>
                </div>
                <div class="col-sm-6 col-lg-3">
                    <div class="card">
                        <div class="card-body">
                            <div class="d-flex align-items-center">
                            <span class="circle-box md-box text-dark-white bg-info"><i class="fs-2 bi bi-cart"></i></span>
                            <div class="ms-3">
                                <h2 class="mb-1 fw-normal">{{$numberOfLicenses}}</h2>
                                <div class="fs-6 text-muted card-subtitle">Nombre de license générer</div>
                            </div>
                            </div>
                        </div>
                    </div>
                </div>
                <div class="col-sm-6 col-lg-3">
                    <div class="card">
                        <div class="card-body">
                            <div class="d-flex align-items-center">
                            <span class="circle-box md-box text-dark-white bg-danger"><i class="fs-2 bi bi-bullseye"></i></span>
                            <div class="ms-3">
                                <h2 class="mb-1 fw-normal">{{$numberOfLicensesActivate}}</h2>
                                <div class="fs-6 text-muted card-subtitle">Nombre de license activée</div>
                            </div>
                            </div>
                        </div>
                    </div>
                </div>
                <div class="col-sm-6 col-lg-3">
                    <div class="card">
                        <div class="card-body">
                            <div class="d-flex align-items-center">
                            <span class="circle-box md-box text-dark-white bg-danger"><i class="fs-2 bi bi-bullseye"></i></span>
                            <div class="ms-3">
                                <h2 class="mb-1 fw-normal">{{$numberOfuserAutoEcole}}</h2>
                                <div class="fs-6 text-muted card-subtitle">Nombre d'auto Ecole</div>
                            </div>
                            </div>
                        </div>
                    </div>
                </div>
                <div class="col-sm-6 col-lg-3">
                    <div class="card">
                        <div class="card-body">
                            <div class="d-flex align-items-center">
                            <span class="circle-box md-box text-dark-white bg-danger"><i class="fs-2 bi bi-bullseye"></i></span>
                            <div class="ms-3">
                                <h2 class="mb-1 fw-normal">{{$numberOfuserDealer}}</h2>
                                <div class="fs-6 text-muted card-subtitle">Nombre de revendeur</div>
                            </div>
                            </div>
                        </div>
                    </div>
                </div>
                <div class="col-sm-6 col-lg-3">
                    <div class="card">
                        <div class="card-body">
                            <div class="d-flex align-items-center">
                            <span class="circle-box md-box text-dark-white bg-danger"><i class="fs-2 bi bi-bullseye"></i></span>
                            <div class="ms-3">
                                <h2 class="mb-1 fw-normal">{{$numberOfuserEditor}}</h2>
                                <div class="fs-6 text-muted card-subtitle">Nombre d'editor</div>
                            </div>
                            </div>
                        </div>
                    </div>
                </div>
            </div>
            </div>
        </div>
        </div>

@endsection
