<?php
//$zroot = $_SESSION["zdir"];
//$zcomp = $_SESSION["comp_" . $dbname];
?>
<style>
    @media print {
        .noPrint {
            display:none;
        }
    }
</style>


<table class="table table-border table-hover" style="width:100%">
    <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 st>
                        <td style="text-align: left; width:25%;"><b>Invoice No</b></td>
                        <td style="width:1%">:</td>
                        <td style="text-align: left; width:74%"><b><?php echo "" . "$zyear" . "/$getdata[vouchno]"; ?></b></td>
                    </tr>
                    <tr>
                        <td style="text-align: left; width:25%;"><b>Date</b></td>
                        <td style="width:1%">:</td>
                        <td style="text-align: left; width:74%"><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 style="text-align: left; width:35%;"><b>Team Member</b></td>
                        <!--<td style="width:1%">:</td>-->
                        <td style="text-align: left; width:65%"><?php echo $getdata['member']; ?></td>

                    </tr>
                    <?php
                    if ($getdata[cashamt] > 0) {
                        $paytype = "Cash";
                        If ($getdata[ccamt] > 0) {
                            $paytype = "$paytype" . "/CC";
                        }

                        If ($getdata[credamt] > 0) {
                            $paytype = "$paytype" . "/Credit";
                        }
                    } else {
                        if ($getdata[ccamt] > 0) {
                            $paytype = "CC";

                            If ($getdata[credamt] > 0) {
                                $paytype = "$paytype" . "/Credit";
                            }
                        } else {
                            if ($getdata[credamt] > 0) {
                                $paytype = "Credit";
                            }
                        }
                    }
                    ?>
                    <tr>
                        <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>
                </table>
            </div>
        </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 st>
                        <td style="text-align: left; width:25%;"><b>Transporter</b></td>
                        <td style="width:1%">:</td>
                        <td style="text-align: left; width:75%"><b><?php echo "" . "" . "$fettrans[name]"; ?></b></td>
                    </tr>
                    <tr>
                        <td style="text-align: left; width:25%;"><b>No Of Pkgs</b></td>
                        <td style="width:1%">:</td>
                        <td style="text-align: left; width:75%"><b><?php echo "$getdata[nopkgs]"; ?></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 style="text-align: left; width:25%;"><b>LR No</b></td>
                    <td style="width:1%">:</td>
                    <td style="text-align: left; width:75%"><?php echo "$getdata[lrno]"; ?></td>

                </tr>
                <?php
                $originalDate = "$getdata[lrdate]";
                $lrdate = date("d-m-Y", strtotime($originalDate));
                ?>
                <tr>
                    <td style="text-align: left; width:25%;"><b>LR Date</b></td>
                    <td style="width:1%">:</td>
                    <td style="text-align: left; width:75%"><h4 style="margin-top:0px;margin-bottom: 0px;"><?php echo $lrdate ?></h4></td>
                </tr>
                </table>
            </div>
        </td>
    </tr>
</table>




