<style>
    .form-group div.dropdown-menu.show {
        z-index: 9999;
    }
</style>

<div class="row">
    <div class="col-12">
        <div class="page-title-box d-sm-flex align-items-center justify-content-between">
            <h4 class="mb-sm-0">Dashboard - Actualización de datos</h4>

            <div class="page-title-right">
                <ol class="breadcrumb m-0">
                    <li class="breadcrumb-item">Facturación electrónica</li>
                    <li class="breadcrumb-item">Reportes</li>
                    <li class="breadcrumb-item active">Actualización de datos</li>
                </ol>
            </div>

        </div>
    </div>
</div>

<div class="row">
    <div class="col-sm-12 col-md-6">
        <div class="card card-animate">
            <div class="card-body">
                <div class="d-flex justify-content-between">
                    <div>
                        <p class="fw-medium text-muted mb-0">Clientes activos</p>
                        <h2 class="mt-2 ff-secondary fw-semibold"><span class="counter-value" data-target="0" id="spnTotalClientes">0</span></h2>
                        <p class="mb-0 text-muted"><span class="badge bg-light text-success mb-0" id="spnVariacionClientesActivos"> <i class="ri-arrow-up-line align-middle"></i> 0.00 % </span> vs. mes anterior</p>
                    </div>
                    <div>
                        <div class="avatar-sm flex-shrink-0">
                            <span class="avatar-title bg-soft-info rounded-circle fs-2">
                                <i data-feather="users" class="text-info"></i>
                            </span>
                        </div>
                    </div>
                </div>
            </div>
        </div>
    </div>
    <div class="col-sm-12 col-md-6">
        <div class="card card-animate">
            <div class="card-body">
                <div class="d-flex justify-content-between">
                    <div>
                        <p class="fw-medium text-muted mb-0">Clientes actualizados</p>
                        <h2 class="mt-2 ff-secondary fw-semibold"><span class="counter-value" data-target="0" id="spnClientesActualizados">0</span></h2>
                        <p class="mb-0 text-muted"><span class="badge bg-light text-success mb-0" id="spnVariacionActualizaciones"> <i class="ri-arrow-up-line align-middle"></i> 0.00 % </span> vs. mes anterior</p>
                    </div>
                    <div>
                        <div class="avatar-sm flex-shrink-0">
                            <span class="avatar-title bg-soft-info rounded-circle fs-2">
                                <i data-feather="external-link" class="text-info"></i>
                            </span>
                        </div>
                    </div>
                </div>
            </div>
        </div>
    </div>
</div>

<div class="row">
    <div class="col-12">
        <div class="card">
            <div class="card-header">
                <h4 class="card-title mb-0">Actualizaciones por sucursal</h4>
            </div>

            <div class="card-body">
                <div id="grafico1" data-colors='["--vz-success"]' class="apex-charts" dir="ltr"></div>
            </div>
        </div>
    </div>
</div>

<div class="row">
    <div class="col-sm-12 col-md-6">
        <div class="card">
            <div class="card-header">
                <div class="row">
                    <div class="col-6">
                        <div class="d-flex align-items-center h-100 w-100 align-middle">
                            <h4 class="card-title mb-0">Avance por residencial</h4>
                        </div>
                    </div>
                    <div class="col-6">
                        <div class="form-group form-group-sm has-validation">
                            <select id="cbo-sucursal" name="cbo-sucursal" title="" class="form-control form-control-sm selectpicker" data-live-search="true">
                                <option value="" selected disabled>Sin sucursales</option>
                            </select>
                        </div>
                    </div>
                </div>
            </div>

            <div class="card-body">
                <div id="grafico2" data-colors='["--vz-warning", "--vz-success"]' class="apex-charts" dir="ltr"></div>
            </div>
        </div>
    </div>
</div>

<?php
$jsModules = [
    'reporteActualizacionDatosPage'
];
