<link rel="stylesheet" href="<?php echo base_url();?>public/js/vendor/bootstrap-datepicker/css/bootstrap-datepicker.standalone.min.css">
<!--
<script src="<?php echo base_url();?>public/js/vendor/bootstrap-datepicker/js/bootstrap-datepicker.min.js"></script>
<script src="<?php echo base_url();?>public/js/vendor/bootstrap-datepicker/locales/bootstrap-datepicker.zh-CN.min.js"></script>
-->

<div class="content_wrapper">
<div class="row">
    <div class="col-sm-12">
        <aside>
            <header><i class="fa fa-fw fa-file"></i>每日宝箱销售数量</header>
            <section>
                <div class="container-fluid">

                    <div class="row">
                        <div class="col-sm-12">
                            <div class="table-responsive">
                                <table class="table table-striped table-bordered table-hover" cellspacing="0" width="100%">
                                    <thead>
                                    <tr>
                                        <th>日期</th>
                                        <th>宝箱1</th>
                                        <th>宝箱2</th>
                                        <th>宝箱3</th>
                                        <th>宝箱4</th>
                                        <th>宝箱5</th>
                                        <th>宝箱6</th>
                                        <th>宝箱7</th>
                                        <th>宝箱8</th>
                                        <th>宝箱9</th>
                                        <th>宝箱10</th>
                                    </tr>
                                    </thead>
                                    <tbody>
                                    <?php
                                    if(is_array($list)){
                                        foreach ($list as $key => $val) {
                                    ?>
                                        <tr>
                                            <td><?php echo $val['day'];?></td>
                                            <td><?php echo $val['chest1'];?></td>
                                            <td><?php echo $val['chest2'];?></td>
                                            <td><?php echo $val['chest3'];?></td>
                                            <td><?php echo $val['chest4'];?></td>
                                            <td><?php echo $val['chest5'];?></td>
                                            <td><?php echo $val['chest6'];?></td>
                                            <td><?php echo $val['chest7'];?></td>
                                            <td><?php echo $val['chest8'];?></td>
                                            <td><?php echo $val['chest9'];?></td>
                                            <td><?php echo $val['chest10'];?></td>
                                        </tr>
                                    <?php } } else{?>
                                        <tr>
                                            <td colspan="10">暂无数据</td>
                                        </tr>
                                    <?php } ?>
                                    </tbody>

                                    </tbody>
                                </table>
                            </div>

                            <nav>
                                <ul class="pagination">
                                    <li class="disabled"><a href="#">共<span class="pagetotal"><?php echo $total;?></span>条</a></li>
                                    <?php echo $pageurl;?>
                                </ul>
                            </nav>

                        </div>
                    </div>

                </div>
            </section>
        </aside>
    </div>
</div>
