
<style>
    th,td{padding:6px !important}
</style>

<!-- Content Wrapper. Contains page content -->
<div class="content-wrapper">
    <!-- Content Header (Page header) -->
    <section class="content-header custom_head">
        <div class="container-fluid">
            <div class="row mb-2">
                <div class="col-sm-6">
                    <h3>Organization</h3>
                </div>
                <div class="col-sm-6">
                    <ol class="breadcrumb float-sm-right">
                        <li class="breadcrumb-item"><a href="">Home</a></li>
                        <li class="breadcrumb-item active">Organization</li>
                    </ol>
                </div>
            </div>
        </div><!-- /.container-fluid -->
    </section>

    <!-- Main content -->
    <section class="content">
        <!-- Default box -->
        <div class="card">

            <div class="card-body" >

                <div class="row mb-2">
                    <div class="col-md-5">
                        <h5>Supervisors</h5>
                        <table style="width: 100%" class="table table-bordered table-hover" id="tbl2">
                            <thead>
                                <tr>
                                    <th>Department</th>
                                    <th>Supervisors</th>
                                </tr>
                            </thead>
                            <tbody>
                                <?php foreach ($supervisor as $value) { ?>
                                    <tr>
                                        <td><?= $value->department ?></td>
                                        <td><?= $value->Count ?></td>
                                    </tr>
                                <?php } ?>
                            </tbody>
                        </table>
                    </div>
                    <div class="col-md-5">
                        <h5>Department List</h5>
                        <table style="width: 100%" class="table table-bordered table-hover" id="tbl1">
                            <thead>
                                <tr>
                                    <th>Department</th>
                                    <th>Emp Count</th>
                                </tr>
                            </thead>
                            <tbody>
                                <?php foreach ($department as $value) { ?>
                                    <tr onclick="getEmpDeatailOfDep('<?= $value->department ?>')" style="cursor: pointer;">
                                        <td><?= $value->department ?></td>
                                        <td><?= $value->Count ?></td>
                                    </tr>

                                <?php } ?>
                            </tbody>
                        </table>
                    </div>

                </div>
                <div class="row mb-2">
                    <div class="col-md-8">
                        <table class="table table-bordered table-hover" id="empTable">
                            <thead>
                                <tr>
                                    <th>Name</th>
                                    <th>Emp ID</th>
                                    <th>Designation</th>
                                    <th>Supervisor</th>
                                    <th>AVG Satisfaction</th>
                                    <th>Activity count</th>
                                    <th>Duration</th>
                                </tr>
                            </thead>
                            <tbody id="emp_info_body">

                            </tbody>
                        </table>
                    </div>
                    <div class="col-md-4">
                        <table class="table table-bordered table-hover"  style="width: 100%" id="activity_tbl">
                            <thead>
                                <tr>
                                    <th>Activity List</th>
                                </tr>
                            </thead>
                            <tbody id="act_body">

                            </tbody>
                        </table>
                    </div>
                </div>
            </div>
            <form id="report1" action="<?php echo base_url("Report_Controller/Report1");?>" target="_blank" method="get">
                <input type="hidden" id="empId" name="empId" value="">
            </form>
            <!-- /.card-body -->
            <!--            <div class="card-footer">
                            Footer
                        </div>-->
            <!-- /.card-footer-->
        </div>
        <!-- /.card -->

    </section>
    <!-- /.content -->
</div>
<!-- /.content-wrapper -->

<script src="https://code.highcharts.com/highcharts.js"></script>
<script src="https://code.highcharts.com/modules/exporting.js"></script>
<script src="https://code.highcharts.com/modules/export-data.js"></script>
<script src="https://code.highcharts.com/modules/accessibility.js"></script>
<script src="<?php echo base_url("assets/customJs/Organization_report.js") ?>"></script>


