
<!-- Dashboard content -->
<div class="row">

    <div class="col-lg-8"> 
        <!-- Form horizontal -->
        <div class="panel panel-flat">
            <div class="panel-heading">
                <h5 class="panel-title">Back Office Users</h5>
            </div>

            <div class="panel-heading">
                <div class="text-right">
                   <a href="/bkoadmin/adduser"> <button type="button" class="btn-info btn-xs" onclick="/bkoadmin/adduser">Add New User</button></a>          
                </div>
            </div>

            <div class="panel-body">           
                <?= $output_table; ?>
            </div>
            <div class="panel-body">           
                <?= $links; ?>
            </div>

        </div>
        <!-- /form horizontal -->
    </div>

    <div class="col-lg-4">
        <!-- Recent Members -->
        <div class="panel panel-flat">
            <div class="panel-heading">
                <h6 class="panel-title">Back Office User Logs</h6>                
            </div>

            <div class="panel-body">
                <div id="sales-heatmap"></div>
            </div>

            <div class="table-responsive">
                <table class="table text-nowrap">
                    <thead>
                        <tr>
                            <th>Name/Date</th>
                            <th>Action</th>
                            <th>Location</th>
                        </tr>
                    </thead>
                    <tbody>
                        <?php
                        //  print_r($recent_signup);

                        foreach ($recent_logs as $rect) {
                            ?>
                            <tr>
                                <td>                     

                                    <div class="media-body">
                                        <div class="media-heading">
                                            <a href="#" class="letter-icon-title"><? echo $rect->firstname; ?> <? echo $rect->lastname; ?></a>
                                        </div>

                                        <div class="text-muted text-size-small"><? echo $rect->added; ?></div>
                                    </div>
                                </td>
                                <td>
                                    <span class="text-muted text-size-small"><? echo $rect->action; ?></span>
                                </td>
                                <td>
                                    <h6 class="text-semibold no-margin"><? echo $rect->loc; ?></h6>
                                </td>
                            </tr>                   

                            <?
                        }
                        ?>
                        <tr>
                            <td colspan='3'>More Logs ...</td>

                        </tr>
                    </tbody>
                </table>
            </div>
        </div>
        <!-- /Recent Members -->
    </div>
</div>
<!-- /dashboard content -->

