<?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>Book 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%;table-layout:fixed;text-align:left;" border="1" class="table">
    <tr>
        <th>S.No</th>
        <th>Date</th>
        <th>Acc No</th>
        <th>Author 1</th>
        <th>Author 2</th>
        <th>Title</th>
        <th>Sub Title</th>
        <th>Edition</th>
        <th>Subject</th>
        <th>Publisher</th>
        <th>Place</th>
        <th>Year</th>
        <th>ISBN</th>
        <th>Pages</th>
        <th>Vol</th>
        <th>Enc Mat</th>
        <th>Supplier</th>
        <th>Invoice No</th>
        <th>Invoice Date</th>
        <th>Curr Code</th>
        <th>Price</th>
        <th>Price INR</th>
        <th>Dis%</th>
        <th>Location</th>
        <th>Nature</th>
        <th>Status</th>
        <th>Remarks</th>
    </tr>
    <?php foreach ($report as $row) { ?>
        <tr>
            <td><?php echo $row->S_No; ?></td>
            <td><?php echo $row->Date; ?></td>
            <td><?php echo $row->Accession_Number; ?></td>
            <td><?php echo $row->Author_1; ?></td>
            <td><?php echo $row->Author_2; ?></td>
            <td><?php echo $row->Title; ?></td>
            <td><?php echo $row->Sub_Title; ?></td>
            <td><?php echo $row->Edition; ?></td>
            <td><?php echo $row->Subject; ?></td>
            <td><?php echo $row->Publisher; ?></td>
            <td><?php echo $row->Place_of_Pub; ?></td>
            <td><?php echo $row->Year; ?></td>
            <td><?php echo $row->ISBN; ?></td>
            <td><?php echo $row->Pages; ?></td>
            <td><?php echo $row->Vol; ?></td>
            <td><?php echo $row->Enc_Mat; ?></td>
            <td><?php echo $row->Book_Supplier_Name; ?></td>
            <td><?php echo $row->Invoice_No; ?></td>
            <td><?php echo $row->Invoice_Date; ?></td>
            <td><?php echo $row->Curr_Code; ?></td>
            <td><?php echo $row->Price; ?></td>
            <td><?php echo $row->Price_INR; ?></td>
            <td><?php echo $row->Dis; ?></td>
            <td><?php echo $row->Location; ?></td>
            <td><?php echo $row->Nature; ?></td>
            <td><?php echo $row->Status; ?></td>
            <td><?php echo $row->Remarks; ?></td>
        </tr>
    <?php } ?>
</table>
</div>
