    <div class="container">
                    <div class="title">
                        <h2>Events</h2>
                        <form method="post" >
                            <?php 
                            if($is_superadmin == true): ?>
                            <div class="add-guest"><a href="<?=base_url('session/add')?>"><i class="fas fa-plus"></i>Add Event</a></div>
                            <?php endif; ?>
                         
                            <input type="search" placeholder="Search" id="search_text">
                            <button type="submit"><img src="<?=base_url("assets/images/search.png")?>" alt="search"></button>
                        </form>
                        <div class="card-filter" id="showing-card">
                            
                            <div class="filter-title">
                               
                                <h2>Filter</h2>
                                 <i class="fas fa-times closePOP" onclick="closeFilter()"></i>
                            </div>
                        </div>
                    </div>
                    <div class="users-section">
                        <?php
                        foreach($list as $item): 
                            
                            $item['functions'] = explode(",", $item['functions']);
                        ?>
                        <div class="users">
                            <div class="user"  style=" padding: 30px 0;">
                                <div class="user-info-h5">
                                    <h5 style="width: 50px;  text-align: center; "><?=$item['id']?></h5>
                                <h5 style=" max-width:100%;"><?=$item['title']?></h5>
                                </div>

                                <div class="edit-links">                               
                                
                                <?php if($is_superadmin || $is_admin || $is_checker): ?>
                                    <?php if(in_array('checkin', $item['functions'])): ?>
                                    <div style="margin: 0 30px;" class="edit"><a href="<?= base_url('session/checkin/spot/' . $item['id']) ?>">Checkin</a></div>
                                    <?php endif; ?>
                                <?php endif; ?>
                                
                                <?php if($is_superadmin || $is_admin || $is_agent): ?>
                                    <?php if(in_array('rsvp', $item['functions'])): ?>
                                    <div style="margin: 0 30px;" class="edit"><a href="<?= base_url('session/checkin/' . $item['id']) ?>">RSVP</a></div>
                                    <?php endif; ?>
                                <?php endif; ?>
                                
                                    <?php if(in_array('seating', $item['functions'])): ?>
                                    <div style="margin: 0 30px;" class="edit"><a href="<?= base_url('seating-plan/' . $item['id']) ?>">Tables Management</a></div>
                                    <?php endif; ?>
                                
                                    <?php if(in_array('standing', $item['functions'])): ?>
                                    <div style="margin: 0 30px;" class="edit"><a href="<?= base_url('stage/' . $item['id']) ?>">Seats Management</a></div>
                                    <?php endif; ?>
                                  
                                  <?php if($is_superadmin || $is_admin): ?>
                                  <div style="    margin: 0 30px;" class="edit"><a href="<?=base_url('session/edit/' . $item['id'])?>">Edit</a></div>
                                  <?php endif; ?>
                                </div>
                               
                           </div>
                        </div>          
                        <?php
                        endforeach;
                        ?>
                    </div>
                </div>

    <script>
    $(document).ready(function() {
        $("#search_text").on("keyup", function() {
            var value = $(this).val().toLowerCase();
            $(".users .user").filter(function() {
                $(this).parent().toggle($(this).text()
                .toLowerCase().indexOf(value) > -1)
            });
        });
    });
</script>