<?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>READING MATERIALS ISSUE STATEMENT </b><br><br>
   </p>

<p style="text-align:right;font-size:13px;margin:5px 0;">
</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>ID No</th>
            <th>NAME</th>
            <th>DESIGNATION</th>
            <th>ACC No</th>
            <th>Issue Date</th>
            <th>Due Date</th>
        </tr>
        <?php
        foreach ($report as $row) { ?>
            <tr>
                <td style="text-align: center;"><?php echo $row->S_No; ?></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 style="text-align: center;"><?php echo isset($row->Issue_Date) ? $row->Issue_Date : ''; ?></td>
                <td style="text-align: center;"><?php echo $row->Due_Date; ?></td>
            </tr>
        <?php 
        } ?>
    </table>
