<div class="col-12">
    <div class="card chart-card mb-0" data-card-type="login-users-table">
        <div class="chart-header">
            <div class="chart-title d-flex align-items-center gap-1">
                <%= trans.cruds.REPORTS_AND_ANALYTICS.card_types.top_daily_login_users.title %>
            </div>
            <div class="d-flex align-items-center gap-2">
                <div class="input-group flatpicker-calender reports-analytics">
                    <input type="text" name="date-format" class="form-control range-date" 
                           placeholder="<%= trans.global.start_date + ' - ' + trans.global.end_date %>" id="range-date-login-users" readonly>
                </div>
                <button class="btn btn-danger btn-sm reset-btn" title="<%= trans.global.reset %>" data-reset-target="range-date-login-users">
                    <i class="fas fa-rotate-right"></i>
                </button>

                <!-- Download Icon -->
                <div class="dropdown icon-dropdown download-data" data-type="buyers-table">
                    <button class="btn btn-sm download-btn download-icon text-white" id="userdropdown4" type="button" data-bs-toggle="dropdown" aria-expanded="true" title="<%= trans.global.download %>">
                        <i class="fa-solid fa-download"></i>
                    </button>
                    <div class="dropdown-menu dropdown-menu-end p-2" aria-labelledby="userdropdown4" data-popper-placement="top-end">
                        <div class="dropdown-item-wrap">
                            <button class="btn btn-success btn-sm w-100 download-excel" id="download-excel" data-type="daily-users" title="<%= trans.global.download_excel %>">
                                <i class="fas fa-file-excel"></i> Excel
                            </button>
                        </div>
                    </div>
                </div>
            </div>
        </div>
        <div class="table-responsive">
            <table class="login-users-table global-report-table">
                <thead>
                    <tr>
                        <th>#</th>
                        <th><%= trans.cruds.REPORTS_AND_ANALYTICS.card_types.top_daily_login_users.name %></th>
                        <th><%= trans.cruds.REPORTS_AND_ANALYTICS.card_types.top_daily_login_users.email %></th>
                        <!-- <th>Number of Logins</th> -->
                        <th><%= trans.cruds.REPORTS_AND_ANALYTICS.card_types.top_daily_login_users.last_login %></th>
                    </tr>
                </thead>
                <tbody>
                    <!-- Dynamic Content (Populated by AJAX) -->
                </tbody>
            </table>
        </div>
    </div>
</div>