<?php include_once(mvc::$cfg['PATH_TPL'] . 'public/headBase.php'); ?>
<div class="layui-form" style="padding: 0 8px;">
    <!-- 标题栏 -->
    <div style="padding: 10px 0; border-bottom: 1px solid #e6e6e6; margin-bottom: 10px;">
        <h3 style="margin: 0; font-size: 16px; color: #333;">
            <i class="layui-icon layui-icon-return" onclick="layer.closeAll()" style="cursor: pointer; margin-right: 8px; color: #999;"></i>
            明细-<?php echo isset($_GET['date']) ? $_GET['date'] : date('Y-m-d'); ?>
        </h3>
    </div>
    
    <table class="layui-table YpTable" style="width:max-content;">
        <thead >
            <tr class="Filter Sortable">
                <th class="sort" width="100px"><span>日期</span></th>
                <th class="sort" width="130px"><span>车架号</span></th>
                <th class="sort" width="100px"><span>用户</span></th>
                <th class="sort" width="250px"><span>群名称</span></th>
                <th class="sort" width="250px"><span>微信昵称/ID</span></th>
                <th class="sort" width="80px"><span>来源</span></th>
                <th class="sort" width="80px"><span>客户端</span></th>
            </tr>
        </thead>
        <tbody class="clicktr">
            <?php if(empty($vinDetailList)){ ?>
                <tr>
                    <td colspan="7" style="text-align: center;">暂无数据</td>
                </tr>
            <?php } else {?>
                <?php foreach ($vinDetailList as $v) { ?>
                    <tr>
                        <td><?php echo $v['ash_atime']; ?></td>
                        <td><?php echo $v['ash_val']; ?></td>
                        <td><?php echo $v['u_name']; ?></td>
                        <td><?php echo $v['ash_wx_room']; ?></td>
                        <td><?php echo $v['ash_wxid_by']; ?></td>
                        <td><?php echo $v['ash_from']; ?></td>
                        <td><?php echo $v['ash_agent']; ?></td>
                    </tr>
                <?php } ?>
            <?php } ?>
        </tbody>
    </table>
    <?php echo $pageMsg; ?>
</div>
<?php include_once(mvc::$cfg['PATH_TPL'] . 'public/footBase.php'); ?>