<div class="diploma-counter-section mt-30 mb-30">
    <div class="container-fluid">
        <div class="row justify-content-center">
            <div class="col-12">
                <div class="counter-card bg-white rounded-lg shadow-sm p-20 p-md-30">
                    <div class="row">
                        <div class="col-6 col-md-3 mb-20 mb-md-0">
                            <div class="counter-item d-flex flex-column align-items-center text-center">
                                <div class="counter-icon mb-10">
                                    <img src="/assets/default/img/stats/student.svg" alt="" style="width: 60px; height: 60px;">
                                </div>
                                <span class="counter-emoji" aria-hidden="true">🛒</span>
                                <strong class="counter-number font-24 font-weight-bold text-dark mt-10">{{ number_format($counter->orders_count ?? 0) }}</strong>
                                <h4 class="counter-title font-14 font-weight-500 text-gray mt-5">عدد الطلبات</h4>
                            </div>
                        </div>

                        <div class="col-6 col-md-3 mb-20 mb-md-0">
                            <div class="counter-item d-flex flex-column align-items-center text-center">
                                <div class="counter-icon mb-10">
                                    <img src="/assets/default/img/stats/course.svg" alt="" style="width: 60px; height: 60px;">
                                </div>
                                <span class="counter-emoji" aria-hidden="true">💰</span>
                                <strong class="counter-number font-24 font-weight-bold text-dark mt-10">{{ number_format($counter->total_sales ?? 0, 0) }}</strong>
                                <h4 class="counter-title font-14 font-weight-500 text-gray mt-5">إجمالي المبيعات</h4>
                            </div>
                        </div>

                        <div class="col-6 col-md-3 mb-20 mb-md-0">
                            <div class="counter-item d-flex flex-column align-items-center text-center">
                                <div class="counter-icon mb-10">
                                    <img src="/assets/default/img/stats/video.svg" alt="" style="width: 60px; height: 60px;">
                                </div>
                                <span class="counter-emoji" aria-hidden="true">📦</span>
                                <strong class="counter-number font-24 font-weight-bold text-dark mt-10">{{ number_format($counter->products_count ?? 0) }}</strong>
                                <h4 class="counter-title font-14 font-weight-500 text-gray mt-5">عدد المنتجات</h4>
                            </div>
                        </div>

                        <div class="col-6 col-md-3 mb-20 mb-md-0">
                            <div class="counter-item d-flex flex-column align-items-center text-center">
                                <div class="counter-icon mb-10">
                                    <img src="/assets/default/img/stats/teacher.svg" alt="" style="width: 60px; height: 60px;">
                                </div>
                                <span class="counter-emoji" aria-hidden="true">🎯</span>
                                <strong class="counter-number font-24 font-weight-bold text-dark mt-10">{{ number_format($counter->completion_rate ?? 0) }}%</strong>
                                <h4 class="counter-title font-14 font-weight-500 text-gray mt-5">نسبة الإنجاز</h4>
                            </div>
                        </div>
                    </div>
                </div>
            </div>
        </div>
    </div>
</div>

<style>
    .diploma-counter-section {
        margin-top: 30px;
        margin-bottom: 30px;
    }

    .counter-card {
        border: 1px solid #e8e8e8;
        border-radius: 8px;
    }

    .counter-item {
        padding: 15px;
    }

    .counter-number {
        font-size: 28px;
        line-height: 1.2;
    }

    .counter-title {
        font-size: 14px;
        margin-top: 8px;
    }

    .counter-emoji {
        font-size: 18px;
        margin-inline-end: 6px;
        display: inline-block;
    }

    @media (max-width: 768px) {
        .counter-number {
            font-size: 22px;
        }

        .counter-icon img {
            width: 50px !important;
            height: 50px !important;
        }

        .counter-card {
            padding: 15px !important;
        }
    }
</style>

