<style>
    #session_activity > thead > tr > th{
        border:1px solid black;
    }
    #session_activity > tbody > tr > td{
        border:1px solid black;
    }
    #session_activity > tbody > tr > th{
        border:1px solid black;
    }
</style>
<div class="col-md-6">
    <div class="row">
        <div class="col-md-5">
            <h3>Tonk District</h3>
        </div>
        <div class="col-md-3">
            <a href="<?= base_url('dashboard_single?distrcitId=टोंक') ?>" class="btn btn-primary float-right mr-3">Detail Single User</a>

        </div>
        <div class="col-md-3">
            <a href="<?= base_url('dashboard_group?distrcitId=टोंक') ?>" class="btn btn-primary float-right mr-3">Detail Group User</a>

        </div>

    </div>

    <hr>



    <table class="table table-sm" id="session_activity">
        <thead>
            <tr style="background-color: #f3692f">
                <th colspan="4" class="text-center">Session and Activity</th>

            </tr>
            <tr style="background-color: #f3692f;">
                <th scope="col">By</th>
                <th scope="col">Session</th>
                <th scope="col">Module</th>
                <th scope="col">Submodule</th>
            </tr>
        </thead>
        <tbody>
            <tr>
                <th>Group</th>
                <td><?= $tonk['session_count'] ?></td>
                <td><?= $tonk['module_count'] ?></td>
                <td><?= $tonk['sub_module_count'] ?></td>
            </tr>
            <tr>
                <th>Single</th>
                <td><?= $tonk['session_count_s'] ?></td>
                <td><?= $tonk['module_count_s'] ?></td>
                <td><?= $tonk['sub_module_count_s'] ?></td>
            </tr>
            <tr>
                <th >Total</th>
                <td ><?= $tonk['session_count_s'] + $tonk['session_count'] ?></td>
                <td><?= $tonk['module_count_s'] + $tonk['module_count'] ?></td>
                <td><?= $tonk['sub_module_count_s'] + $tonk['sub_module_count'] ?></td>
            </tr>
        </tbody>
    </table>

    <hr>
    <p class="font-weight-bold">Single Mode</p>
    <hr>

    <div class="row">
        <div class="col-md-3"><p>By</p></div>
        <div class="col-md-3"><p>User&nbsp;Count</p></div>
        <div class="col-md-3"><p>Male&nbsp;Count</p></div>
        <div class="col-md-3"><p>Female&nbsp;Count</p></div>

    </div>
    <div class="row">
        <div class="col-md-3"><p><?= $single_t[0]['by'] ?></p></div>
        <div class="col-md-3"><p><?= $single_t[0]['user'] ?></p></div>
        <div class="col-md-3"><p><?= $single_t[0]['male'] ?></p></div>
        <div class="col-md-3"><p><?= $single_t[0]['female'] ?></p></div>

    </div>
    <div class="row">
        <div class="col-md-3"><p><?= $single_t[1]['by'] ?></p></div>
        <div class="col-md-3"><p><?= $single_t[1]['user'] ?></p></div>
        <div class="col-md-3"><p><?= $single_t[1]['male'] ?></p></div>
        <div class="col-md-3"><p><?= $single_t[1]['female'] ?></p></div>

    </div>
    <div class="row">
        <div class="col-md-3"><p><?= $single_t[2]['by'] ?></p></div>
        <div class="col-md-3"><p><?= $single_t[2]['user'] ?></p></div>
        <div class="col-md-3"><p><?= $single_t[2]['male'] ?></p></div>
        <div class="col-md-3"><p><?= $single_t[2]['female'] ?></p></div>

    </div>
    <div class="row">
        <div class="col-md-3"><p>Total</p></div>
        <div class="col-md-3"><p><?= $single_t[0]['user'] + $single_t[1]['user'] + $single_t[2]['user'] ?></p></div>
        <div class="col-md-3"><p><?= $single_t[0]['male'] + $single_t[1]['male'] + $single_t[2]['male'] ?></p></div>
        <div class="col-md-3"><p><?= $single_t[0]['female'] + $single_t[1]['female'] + $single_t[2]['female'] ?></p></div>

    </div>

    <hr>

    <p class="font-weight-bold">Group Mode</p>
    <hr>
    <div class="row">
        <div class="col-md-2"><p>By</p></div>
        <div class="col-md-2"><p>Group&nbsp;</p></div>
        <div class="col-md-2"><p>Women&nbsp;</p></div>
        <div class="col-md-2"><p>Man&nbsp;</p></div>
        <div class="col-md-2"><p>Boy&nbsp;</p></div>
        <div class="col-md-2"><p>Girl&nbsp;</p></div>
    </div>
    <div class="row">
        <div class="col-md-2"><p><?= $group_t[0]['by'] ?></p></div>
        <div class="col-md-2"><p><?= $group_t[0]['group'] ?></p></div>
        <div class="col-md-2"><p><?= $group_t[0]['women'] ?></p></div>
        <div class="col-md-2"><p><?= $group_t[0]['men'] ?></p></div>
        <div class="col-md-2"><p><?= $group_t[0]['boy'] ?></p></div>
        <div class="col-md-2"><p><?= $group_t[0]['girl'] ?></p></div>
    </div>
    <div class="row">
        <div class="col-md-2"><p><?= $group_t[1]['by'] ?></p></div>
        <div class="col-md-2"><p><?= $group_t[1]['group'] ?></p></div>
        <div class="col-md-2"><p><?= $group_t[1]['women'] ?></p></div>
        <div class="col-md-2"><p><?= $group_t[1]['men'] ?></p></div>
        <div class="col-md-2"><p><?= $group_t[1]['boy'] ?></p></div>
        <div class="col-md-2"><p><?= $group_t[1]['girl'] ?></p></div>
    </div>
    <div class="row">
        <div class="col-md-2"><p><?= $group_t[2]['by'] ?></p></div>
        <div class="col-md-2"><p><?= $group_t[2]['group'] ?></p></div>
        <div class="col-md-2"><p><?= $group_t[2]['women'] ?></p></div>
        <div class="col-md-2"><p><?= $group_t[2]['men'] ?></p></div>
        <div class="col-md-2"><p><?= $group_t[2]['boy'] ?></p></div>
        <div class="col-md-2"><p><?= $group_t[2]['girl'] ?></p></div>
    </div>


    <div class="row">
        <div class="col-md-2"><p>Total</p></div>
        <div class="col-md-2"><p><?= $group_t[2]['group'] + $group_t[1]['group'] + $group_t[0]['group'] ?></p></div>
        <div class="col-md-2"><p><?= $group_t[2]['women'] + $group_t[1]['women'] + $group_t[0]['women'] ?></p></div>
        <div class="col-md-2"><p><?= $group_t[2]['men'] + $group_t[1]['men'] + $group_t[0]['men'] ?></p></div>
        <div class="col-md-2"><p><?= $group_t[2]['boy'] + $group_t[1]['boy'] + $group_t[0]['boy'] ?></p></div>
        <div class="col-md-2"><p><?= $group_t[2]['girl'] + $group_t[1]['girl'] + $group_t[0]['girl'] ?></p></div>
    </div>


    <hr>


    <!-- comment -->
</div>