<?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>Single User History Report </b>
</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;">
    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">
      
<br><br>
<table style="border-collapse: collapse;width:100%;text-align:left;" border="1" class="table">
   
 <tr>
                    <th>S.No</th>
                  <th>ID No</th>
                  <th>Name</th>
                  <th>Designation</th>
                  <th>Acc No</th>
                  <th>Title</th>
                  <th>Issue Date</th>
                  <th>Renewal Count</th>
                  <th>Last Renewed Date</th>
                  <th>Due Date</th>
                  <th>Return Date</th>
                  <th>Current Status</th>
				   </tr>
				   <?php $sno = isset($pdf_sno_start) ? (int) $pdf_sno_start : 1; ?>
<?php foreach($report as $row){ ?>
					<tr>
                  <td><?php echo $sno++; ?></td>
                  <td><?php echo $row->ID_No; ?></td>
                  <td><?php echo $row->Name; ?></td>
                  <td><?php echo $row->Designation; ?></td>
                  <td><?php echo $row->Acc_No; ?></td>
                  <td><?php echo $row->Title; ?></td>
                  <td><?php echo $row->Issue_Date; ?></td>
                  <td><?php echo $row->Renewal_Count; ?></td>
                  <td><?php echo $row->lastreneweddate; ?></td>
                  <td><?php echo $row->Due_Date; ?></td>
                  <td><?php echo $row->Return_Date; ?></td>
                  <td><?php echo $row->Current_Status; ?></td>
                </tr>
					
			<?php }?>
</table>
