<h4 class="mb-4"><i class="fas fa-sign-in-alt me-2"></i><?= lang('admin.login_log') ?></h4>
<div class="card mb-3"><div class="card-body">
    <div class="row g-2" data-filter-table="login-table">
        <div class="col-md-3"><select name="action_filter" class="form-select form-select-sm"><option value="">All Actions</option><option value="login_success">Success</option><option value="login_failed">Failed</option><option value="logout">Logout</option></select></div>
        <div class="col-md-2"><button type="button" class="btn btn-sm btn-primary" onclick="DataTableHelper.reload('login-table')"><i class="fas fa-filter me-1"></i>Filter</button></div>
    </div>
</div></div>
<div class="card"><div class="card-body">
    <table id="login-table" class="table table-striped table-sm w-100" data-url="/admin/login-log/datatable"
           data-columns='[{"data":"datetime"},{"data":"username"},{"data":"action"},{"data":"ip"},{"data":"reason"}]'>
        <thead><tr><th>Time</th><th>Username</th><th>Action</th><th>IP</th><th>Reason</th></tr></thead>
    </table>
</div></div>
<?php $__view->push('scripts') ?><script>DataTableHelper.init('login-table',{order:[[0,'desc']],pageLength:50});</script><?php $__view->endPush() ?>