<div class="col-sm-9 col-sm-offset-3 col-md-10 col-md-offset-2 main">
    <?php
    //if($_SESSION['roles_id']==1){ 
    if($_SESSION['roles_id'] > 0){ ?>
    <div class="panel panel-default">
        <div class="panel panel-heading"><strong><h4>Conference Registration</h4></strong></div>
        <div class="panel panel-body">
             <?php if(!empty($transaction)){
                ?>
            <table class="table table-striped">
                <tr><th>SN</th><th>Name</th><th>Category</th><th>Receipt. No.</th><th>Email</th><th>Phone</th> <th>Amount</th><th>Bank</th><th>Date</th></tr>
                <?php
                if(empty($page) || $page == 1){
         $srno = 1;
    }
    else{
        $temp = $page+1; 
        //$new_temp = $temp.'1';
        $srno = (int)$temp;
    }
                $page_links = $this->pagination->create_links();
                foreach($transaction as $row){                 ?>
                <tr><td><?= $srno; ?></th><td><?= $row['confName']; ?></td><td><?= $row['cat_name']; ?></td><td><?= $row['confAuthNum']; ?></td><td><?= $row['confEmail']; ?></td><td><?= $row['confPhone']; ?></td><td><?= number_format($row['transAmount'],2); ?></td><td><?= $row['bank']; ?></td><td><?= $row['confRegDate']; ?></td></tr>
                <?php
$srno++;

 } 
                if($page_links != ''): ?>
<tr><td colspan="6" class="text-right"><?php echo $page_links;?></td></tr>
<?php endif; ?>
            </table> 
            <?php }else{ echo "<pre><span>No Conference Registration Found</span></pre>"; } ?>
        </div>
    </div>
    <?php }else {  ?>
    <div class="panel panel-default">
     <div class="panel panel-heading"><strong><h4>Dashboard</h4></strong></div>
     <div class="panel panel-body">Welcome <?php echo $_SESSION['surname']." ".$_SESSION['othernames']; ?></div>
    </div>
    <?php } ?>
        </div>
    