<?php $this->load->view('report_pdf/pdf_header'); ?>
<?php $show_title = !isset($show_title) ? true : (bool) $show_title; if ($show_title) { ?>
<p style="text-align:center;font-size:14px;margin:5px 0;">
    <b>CATEGORY WISE USER REPORT<?php echo !empty($description) ? ' - ' . htmlspecialchars($description) : ''; ?></b><br><br>
   </p>

<p style="text-align:right;font-size:13px;margin:5px 0;">
    Date: <?php echo date("d/m/Y", strtotime($today)); ?>
    
</p>

<p style="text-align:left ;font-size:13px;margin:5px 0 5px;">
    Total Records : <?php echo report_pdf_total_rows(isset($report) ? $report : array(), isset($pdf_total_rows) ? $pdf_total_rows : null); ?>
</p>
<?php } ?>
<div id="content" style="margin-top: 10px;">
<table style="border-collapse: collapse;width:100%;text-align:left;margin-bottom: 20px;" border="1" class="table">
    

        <tr style="text-align: center;">
            <th >S.NO.</th>
            <th>Cardnumber</th>
            <th>Name</th>
            <th>Designation</th>
            <th>Phone</th>
            <th>Enrollment Date</th>
            <th>Expiry Date</th>
            <th>Division</th>
            <th>Retired Transferred</th>
            <th>Category</th>
            
        </tr>
        <?php
        $s_no = isset($pdf_sno_start) ? (int) $pdf_sno_start : 1;
        foreach ($report as $row) { ?>
            <tr>
                <td style="text-align: center;"><?php echo $s_no++; ?></td>
                <td><?php echo $row->cardnumber; ?></td>
                <td><?php echo $row->Name; ?></td>
                <td><?php echo $row->Designation; ?></td>
                <td><?php echo $row->INT_Phone; ?></td> 
                 <td><?php echo date("d/m/Y", strtotime($row->dateenrolled)); ?></td> 
                <td><?php echo date("d/m/Y", strtotime( $row->dateexpiry)); ?></td>               
                <td><?php echo $row->Division; ?></td>
                <td><?php echo $row->Retired_Transferred; ?></td>
                <td><?php echo $row->Category_Description; ?></td>
                
            </tr>
            
            


        <?php 
        } ?>
    </table>
    
    

    
    
    <!-- SCIENCE-ISSUE section disabled -->

