<div class="page">
    <div class="subpage">
        <table width="100%" style="padding:5px; ">
            
            <tr>
                <td style="font-size:15px;padding:2px;font-family: serif"><b><center><?php echo $zcomp['compname']; ?></center></b></td>
            </tr>
            
            <tr>
                <td style="font-size:12px"><center>
                REG.NO. BOMBAY P.T.ACT 1950/F 17203 PUNE /SOCIETY'S REG.ACT 1860 MAHARASHTRA/ 330 - 2000/ PUNE
            </center></td>
            </tr>
            <tr>
                <td style="font-size:13px;font-family: serif;padding-top: 5px"><center><?php echo $zcomp['add1'] . $zcomp['add2']; ?></center></td>
            </tr>
            <tr>
                <td style="font-size:13px;font-family: serif"><center><?php echo $zcomp['add3'] . "&nbsp;" . "&nbsp;" . "&nbsp;" . "&nbsp;" . "Tel. -" . ' ' . $zcomp['tel']; ?></center></td>
            </tr>
        </table>

        <hr style="margin:0px;border:1px solid black">       
        <h4 class='text-center'><b>INVOICE</b></h4>
        <?php
        echo "<h5 class='text-center'><b>$ssection</b></h5>";
        ?>

        <table style="width:100%">
            <tr>
                <td style="width:12%"><b>BILL NO.&nbsp;&nbsp;&nbsp;&nbsp;:</b></td>
                <td style="width:53%; text-align:left" ><b><?php echo $fmain['vouchno']; ?></b></td>
                <td style="width:15%"><b>REF. NO.<span style="padding-right:44px;"></span>:</b></td>
                <td style="width:20%"><b><?php echo $sschool['custcode']; ?></b></td>
            </tr>

            <tr>
                <td style="width:12%"></td>
                <td style="width:53%"></td>
                <td style="width:15%"><b>DATE<span style="padding-right:65px;"></span>:</b></td>
                <td style="width:20%"><b><?php echo $fmain['mydt'] ?></b></td>
            </tr>

            <tr>
                <td style="width:12%"></td>
                <td style="width:53%"></td>
                <td style="width:15%"><b>EXAMINATION<span style="padding-right:8px "></span>:</b></td>
                <td style="width:20%"><b><?php echo $shexam['name'] ?></b></td>
            </tr>
        </table>               

        <table>
            <tr>
                <td style="width:50% ; padding:0px">TO,</td>
                <td style="width:50%"></td>
            </tr>

            <tr>
                <td style="width:50%;padding:0px">THE HEAD MASTER / HEAD MISTRESS</td>
                <td style="width:50%"></td>
            </tr>

            <tr>
                <td style="width:50%;padding:0px"><b><?php echo $sschool['name']; ?></b></td>
                <td style="width:50%"></td>
            </tr>

            <tr>
                <td style="width:50% ;padding:0px"><?php echo $sschool['add1']; ?></td>
                <td style="width:50%"></td>
            </tr>

            <tr>
                <td style="width:50%;padding:0px"><?php echo $sschool['add2']; ?></td>
                <td style="width:50%"></td>
            </tr>

            <tr>
                <td style="width:50%;padding:0px"><?php echo $sschool['add3']; ?></td>
                <td style="width:50%"></td>
            </tr>

            <tr>
                <td style="width:50%;padding:0px"><?php echo $sschool['city'] . " " . $sschool['pin']; ?></td>
                <td style="width:50%"></td>
            </tr>
        </table>

        <br>

        <table>
            <tr>
                <td>SIR / MADAM</td>
            </tr>

            <tr>
                <td><span style="padding-right:80px; "></span>Please refer your letter/indent for question papers.
                    Kindly arrange to remit the amount as shown below by 
                    CASH/CHEQUE/DEMAND DRAFT at an early date.
                </td>
            </tr>

        </table>

        <table class=" mtable">
            <?php
            if ($section == 'S') {
                ?> 
                <tr>
                    <td class="mtable" style="width:25%"><b>Subject</b></td>
                    <td class="mtd" style="width:10%"><b>V</b></td>
                    <td class="mtd" style="width:10%"><b>VI</b></td>
                    <td class="mtd" style="width:10%"><b>VII</b></td>
                    <td class="mtd" style="width:10%"><b>VIII</b></td>
                    <td class="mtd" style="width:10%"><b>IX</b></td>
                    <td class="mtd" style="width:10%"><b>X</b></td>
                    <td class="mtd" style="width:11%"><b>Amount</b></td>
                </tr>
                <?php
            } elseif ($section == 'P') {
                ?> 
                <tr>
                    <td class="mtable" style="width:30%"><b>Subject</b></td>
                    <td class="mtd" style="width:11%"><b>I</b></td>
                    <td class="mtd" style="width:11%"><b>II</b></td>
                    <td class="mtd" style="width:11%"><b>III</b></td>
                    <td class="mtd" style="width:11%"><b>IV</b></td>
                    <td class="mtd" style="width:15%"><b>Amount</b></td>
                </tr>
                <?php
            } elseif ($section == 'M') {
                ?> 
                <tr>
                    <td class="mtable" style="width:50%"><b>Subject</b></td>
                    <td class="mtd" style="width:15%"><b>Prelims</b></td>
                    <td class="mtd" style="width:15%"><b>Price Per Copy</b></td>
                    <td class="mtd" style="width:15%"><b>Amount</b></td>
                </tr>
                <?php
            }
            ?> 
