<?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>CIRCULATION REPORT on <?php echo date("d/m/Y", strtotime($today)); ?></b><br><br>
   </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>Title</th>
            <th>Issue Date</th>
            <th>Due Date</th>
            <th>Return Date</th>
            <th>Current Status</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 isset($row->Acc_No) ? $row->Acc_No : ''; ?></td>
                <td><?php echo $row->Title; ?></td>
                <td ><?php echo $row->Issue_Date; ?></td>
                <td><?php echo $row->Due_Date; ?></td>
                <td><?php echo $row->Return_Date; ?></td>
                <td style="text-align: center;"><?php echo $row->Current_Status; ?></td>
            </tr>
        <?php 
        } ?>
    </table>
