<!doctype html>
<html lang="en">
    <head> 
        <meta charset="utf-8">
        <meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
        <!-- Bootstrap CSS -->
        <link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/4.0.0/css/bootstrap.min.css" integrity="sha384-Gn5384xqQ1aoWXA+058RXPxPg6fy4IWvTNh0E263XmFcJlSAwiGgFAW/dAiS6JXm" crossorigin="anonymous">
        <script src="https://code.jquery.com/jquery-3.2.1.slim.min.js" integrity="sha384-KJ3o2DKtIkvYIK3UENzmM7KCkRr/rE9/Qpg6aAZGJwFDMVNA/GpGFF93hXpG5KkN" crossorigin="anonymous"></script>
        <link href="https://cdnjs.cloudflare.com/ajax/libs/bootstrap-datepicker/1.3.0/css/datepicker.css" rel="stylesheet" type="text/css" />
        <script src="https://cdnjs.cloudflare.com/ajax/libs/bootstrap-datepicker/1.3.0/js/bootstrap-datepicker.js"></script>
        <script type="text/javascript" src="//cdnjs.cloudflare.com/ajax/libs/jquery.bootstrapvalidator/0.5.2/js/bootstrapValidator.min.js"></script>
        <script src="https://ajax.googleapis.com/ajax/libs/jquery/3.5.1/jquery.min.js"></script>

        <link rel="stylesheet" href="<?= base_url('font/css/font-awesome.css') ?>">

        <title>Welcome to SBCC!</title>
    </head>
    <body>

        <div class="container-fluid mt-2">
            <div class="card">
                <div class="card-body">

                    <?php $tab_index = $this->session->userdata('tab_index_company'); ?>

                    <ul class="nav nav-tabs" id="myTab" role="tablist">
                        <li class="nav-item">
                            <a class="nav-link <?= !($tab_index == 1) ?: 'active'; ?>" id="single-tab" data-toggle="tab" href="#single" role="tab" aria-controls="country" aria-selected="true">Single&nbsp;User</a>
                        </li>
                        <li class="nav-item">
                            <a class="nav-link <?= !($tab_index == 2) ?: 'active'; ?>" id="group-tab" data-toggle="tab" href="#group" role="tab" aria-controls="state" aria-selected="false">Group&nbsp;User</a>
                        </li>

                    </ul>

                    <div class="tab-content" id="myTabContent">
                        <div class="tab-pane fade <?= !($tab_index == 1) ?: 'show active'; ?>" id="single" role="tabpanel" aria-labelledby="single-tab">
                            <?php $this->load->view('list/single'); ?>
                        </div>
                        <div class="tab-pane fade <?= !($tab_index == 2) ?: 'show active'; ?>" id="group" role="tabpanel" aria-labelledby="group-tab">
                            <?php $this->load->view('list/group'); ?>
                        </div>


                    </div>


                </div>
            </div>
        </div>
       <?php $this->load->view('modal/single'); ?>
       <?php $this->load->view('modal/group'); ?>
       
        <script src="https://cdnjs.cloudflare.com/ajax/libs/popper.js/1.12.9/umd/popper.min.js" integrity="sha384-ApNbgh9B+Y1QKtv3Rn7W3mgPxhU9K/ScQsAP7hUibX39j7fakFPskvXusvfa0b4Q" crossorigin="anonymous"></script>
        <script src="https://maxcdn.bootstrapcdn.com/bootstrap/4.0.0/js/bootstrap.min.js" integrity="sha384-JZR6Spejh4U02d8jOt6vLEHfe/JQGiRRSQQxSfFWpi1MquVdAyjUar5+76PVCmYl" crossorigin="anonymous"></script>
    </body>
</html>

