<?php

require_once __DIR__ . '/_cms_helpers.php';

$lang =
    $lang ?? 'en';

?>

<section class="ec-enterprise-section ec-reveal ec-hover-lift ec-glow-hover">

    <div class="ec-enterprise-grid">

        <div class="ec-enterprise-main">

            <div class="ec-enterprise-chip">

                <i class="fa fa-chart-line"></i>

                <?= $lang === 'ar'
                    ? 'مركز العمليات المباشر'
                    : 'Live Operations Center' ?>

            </div>

            <div class="ec-enterprise-title">

                <?= $lang === 'ar'
                    ? 'إحصاءات المؤتمر والأنشطة المباشرة'
                    : 'Real-Time Conference Operations' ?>

            </div>

            <div class="ec-enterprise-desc">

                <?= $lang === 'ar'
                    ? 'تعرض المنصة مؤشرات مباشرة حول المشاركين والجلسات والأنشطة العلمية ضمن تجربة تشغيل احترافية للمؤتمرات الدولية.'
                    : 'The platform provides live insights into sessions, attendees, and scholarly activities within a professional international conference operations environment.'
                ?>

            </div>

            <div class="ec-enterprise-live">

                <span class="ec-enterprise-live-dot"></span>

                LIVE SYSTEM

            </div>

        </div>

        <div class="ec-enterprise-side">

            <div class="ec-enterprise-card ec-enterprise-metric">

                <div class="ec-enterprise-number">
                    2.4K
                </div>

                <div class="ec-enterprise-label">

                    <?= $lang === 'ar'
                        ? 'مشارك'
                        : 'Participants' ?>

                </div>

            </div>

            <div class="ec-enterprise-card ec-enterprise-metric">

                <div class="ec-enterprise-number">

                    <?= count($sessions ?? []) ?>

                </div>

                <div class="ec-enterprise-label">

                    <?= $lang === 'ar'
                        ? 'جلسة'
                        : 'Sessions' ?>

                </div>

            </div>

            <div class="ec-enterprise-card ec-enterprise-metric">

                <div class="ec-enterprise-number">
                    42+
                </div>

                <div class="ec-enterprise-label">

                    <?= $lang === 'ar'
                        ? 'دولة'
                        : 'Countries' ?>

                </div>

            </div>

            <div class="ec-enterprise-card ec-enterprise-metric">

                <div class="ec-enterprise-number">

                    <?= (int)($heroMetrics['submissions'] ?? 0) ?>

                </div>

                <div class="ec-enterprise-label">

                    <?= $lang === 'ar'
                        ? 'بحث'
                        : 'Papers' ?>

                </div>

            </div>

        </div>

    </div>

</section>
