<!--************************************************************-->

<div style="border:solid 1px;border-collapse: collapse" class="col-md-12">

    <table>
        <tr>
            <td style="width:15%;padding-left: 1.5%;">
                <img src="images/logo.png?a=2" alt="Logo" style="height: 111px;width: 126px;">
            </td>

            <td style="width:85%;padding-left: 5%">
        <center><b style="margin-top:1px;margin-bottom: 5px;font-size: 44px"><? Echo $getcmpname['compname']; ?></b><br>
            <?php
            $address = $getcmpname['hoadd1'] . ' ' . $getcmpname['hoadd2'] . ' ' . $getcmpname['hoadd3'] . ' ' . $getcmpname['hocity'] . ' ' . $getcmpname['hopin'] . ' ';
            echo "<b>TRADER | WHOLESALER | MANUFACTURER <br> ALL KINDS OF FOOTWEAR</b><br>";
            echo $address;
            ?><br>
            <? if ($getcmpname['email'] != '') { ?>
                <?php
                echo "Email :" . $getcmpname['email'];
            }
            ?>
            <?php echo "Contact No :" . $getcmpname['htel'] . ".    GST NO : " . $getcmpname['gstno']; ?>
            <h3 style="margin-top:2px;margin-bottom: 2px;"><b><?php echo "$formname"; ?></b></h3>
            <?php if ($prnadd != '') { ?>
                <h5 style="margin-top:2px;margin-bottom: 2px;"><b>GST No:<?php Echo $fcmpbrch['gstno']; ?></b></h5>
            <?php } ?>

        </center>
        </td>
        </tr>
    </table>
</div>

<div style="border:solid 1px;border-collapse: collapse" class="col-md-12">
    <table class="table table-border table-hover" style="width:100%">

        <?php
        if ($getdata["nameprint"] != '') {
            $printname = $getdata["nameprint"];
        } else {
            $printname = $showparty['name'];
        }
        if ($getdata["printmobile"] != '') {
            $printmobile = $getdata["printmobile"];
        } else {
            $printmobile = $showparty['mobile'];
        }
//                    if ($getdata["gstno"] != '') {
//                        $gstno = $getdata['gstno'];
//                    } else {
        $gstno = $showparty['gstno'];
//                    }
//        if ($getdata["delvadd"] != '') {
//            $custadd = $getdata['delvadd'];
//            $custadd1 = substr($custadd, 0, 35);
//            $custadd2 = substr($custadd, 36, 70);
//            $custadd3 = substr($custadd, 71, 100);
//            $custadd4 = substr($custadd, 101, 150);
//            $custadd5 = "";
//            $custpan = "";
//        } else {
            $custadd1 = $showparty['add1'];
            $custadd2 = $showparty['add2'];
            $custadd3 = $showparty['add3'];
            $custaddress = $showparty['address'];

            $custadd4 = $showparty['city'];
            $custadd5 = $showparty['pin'];
            $custpan = $showparty['pan'];
//        }
        
        if ($getdata['cashcred'] == 'C') {
            $paytype = "Cash";
        } else {
            $paytype = "Credit";
        }
        ?>        
        <tr>
            <td colspan="2" style="">Buyer&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;:<b><?php echo "$printname"; ?></b></td>


        </tr>
        <tr>
            <td style="width:60%">
                <table>
<!--                    <tr>
                        <td>Address</td>
                        <td>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;:<?php echo $custadd1; ?></td>
                    </tr>
                    <tr>
                        <td></td>
                        <td><b></b></td>

                        <td>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<?php echo $custadd2; ?></td>
                    </tr>
                    <tr>
                        <td></td>
                        <td>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<?php echo $custadd3; ?></td>
                    </tr>-->

                    <tr>
                        <td><?php echo $custaddress; ?></td>
                    </tr>

                    <tr>
                        <td><?php echo trim($custadd4) . " " . $custadd5; ?></td>
                    </tr>
                    <tr>
                        <td>Mobile : <?php echo $printmobile; ?></td>
                    </tr>
                </table>
            </td>

            <td style="width:40%">
                <table>
                    <tr>
                        <td style="width:40%"><b>GST No.</b></td>
                        <td style="width:60%">:&nbsp;<?php echo "$gstno"; ?></td>
                    </tr>
                    <tr>
                        <td style="width:40%;font-size: 12px"><b>Pan/Aadhar No.</b></td>
                        <td style="width:60%">:&nbsp;<?php echo "$custpan"; ?></td>
                    </tr>
                    <tr>
                        <td><b>State</b></td>
                        <td>:&nbsp;<?php echo $showparty['state']; ?></td>
                    </tr>
                    <tr>
                        <td><b>Code</b></td>
                        <td>:&nbsp;<?php echo $showparty['statecode']; ?></td>
                    </tr>
                    <tr>
                        <td><b>Paid By</b></td>
                        <td>:&nbsp;<?php echo $paytype; ?></td>
                    </tr>
                </table>
            </td>
        </tr>
        <tr>
            <td>  
                <b>Transporter: </b><?php echo $ltrans['name']; ?>
            </td>
            <td>  
                <b>Booking &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;: </b><?php echo $getdata['area']; ?>
            </td>

        </tr>
        <tr>
            <td>  
                <b>E-Way Bill No.: </b><?php echo $getdata['ewaybill']; ?>
            </td>
            <td>  
                <b></b>
            </td>

        </tr>
        <tr style="">
            <td style="text-align: center; width:50%;border:1px solid black;border-right: 1px solid black ">
                <div style="border-collapse: collapse" class="col-md-12" >

                    <table class="table table-bordered table-hover" style="width:100%">
                        <tr>
                            <td style="text-align: left; width:30%;"><b>Credit Note No.</b></td>
                            <td style="width:1%">:</td>
                            <td style="text-align: left; width:69%"><b><?php echo $getdata["vouchno"]; ?></b></td>

                        </tr>
                        <tr>
                            <td style="text-align: left; width:30%;"><b>Date</b></td>
                            <td style="width:1%">:</td>
                            <td style="text-align: left; width:69%"><b><?php echo "$getdata[vouchdt]"; ?></b></td>

                        </tr>
                    </table>
                </div>
            </td>
            <td style="text-align: center; width:50%;border:1px solid black">
                <div style="border-collapse: collapse" class="col-md-12" >

                    <table class="table table-bordered table-hover" style="width:100%">
                        <tr>
                            <td colspan="2" style="text-align: left;"><b>Terms of Delivery:&nbsp;</b></td>


                        </tr>

                        <tr>

                            <td><?php echo $getdata['remark1'] . " " . $getdata['remark2']; ?></td>
<!--                            <td style="text-align: left; width:24%;"><b>Paid By</b></td>
                            <td style="width:1%">:</td>
                            <td style="text-align: left; width:90%"><h4 style="margin-top:0px;margin-bottom: 0px;"><?php echo $paytype ?></h4></td>-->

                        </tr>
<!--                        <tr>
                            <td style="text-align: left; width:24%;"><b>E-way Bill Date</b></td>
                            <td style="width:1%">:</td>
                            <td style="text-align: left; width:90%"><h4 style="margin-top:0px;margin-bottom: 0px;"><?php echo $getdata['ebilldt'] ?></h4></td>

                        </tr>-->

                    </table>
                </div>
            </td>
        </tr>
    </table>
</div>