{include file='user/header.tpl'}

<div class="page-wrapper">
    <div class="container-xl">  
        <div class="page-header d-print-none text-white">
            <div class="row align-items-center">
                <div class="col">                    
                    <h2 class="page-title">
                        <span class="home-title">订阅记录</span>
                    </h2>
                    <div class="page-pretitle my-3">
                        <span class="home-subtitle">在最近 {$config['subscribeLog_keep_days']} 天内所有的订阅记录</span>
                    </div>
                </div>
            </div>
        </div>
    </div>
    <div class="page-body">
        <div class="container-xl">
            <div class="row row-deck row-cards">
                <div class="col-12">
                    <div class="card">
                        <div class="table-responsive">
                            <table class="table table-vcenter card-table">
                                <thead>
                                    <tr>
                                        <th>事件ID</th>
                                        <th>类型</th>
                                        <th>IP</th>
                                        <th>归属</th>
                                        <th>时间</th>
                                        <th>标识</th>
                                    </tr>
                                </thead>
                                <tbody>
                                    {foreach $logs as $log}
                                    <tr>
                                        <td>#{$log->id}</td>
                                        <td>{$log->subscribe_type}</td>
                                        <td>{$log->request_ip}</td>
                                        <td>{$log->location}</td>
                                        <td>{$log->request_time}</td>
                                        <td>{$log->request_user_agent}</td>
                                    </tr>
                                    {/foreach}
                                </tbody>
                            </table>
                        </div>
                    </div>
                </div>
            </div>
        </div>
    </div>

{include file='user/footer.tpl'}