<?php session_start();
require_once 'config.php';
require_once 'auth.php';
$PageName = "Payment Receipt";
$UserId = $_SESSION['User']['id'];
 ?>
<!doctype html>
<html lang="en" class="h-100">
<head>
    <meta charset="utf-8">
    <meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
    <meta name="description" content="">
    <meta name="author" content="">
    <meta name="generator" content="">
    <title><?php echo $Proj_Title; ?></title>
    <meta name="apple-mobile-web-app-capable" content="yes">
    <link rel="apple-touch-icon" href="img/favicon180.png" sizes="180x180">
    <link rel="icon" href="img/favicon32.png" sizes="32x32" type="image/png">
    <link rel="icon" href="img/favicon16.png" sizes="16x16" type="image/png">
    <link href="https://fonts.googleapis.com/icon?family=Material+Icons" rel="stylesheet">
    <link href="https://fonts.googleapis.com/css2?family=Roboto:wght@300;400;500&amp;display=swap" rel="stylesheet">
    <link href="vendor/swiper/css/swiper.min.css" rel="stylesheet">
    <link href="css/style.css" rel="stylesheet" id="style">
</head>

<style type="text/css">
    .recp_color{
        background-color: #cdcdd5 !important;
        text-align: center;font-size: 20px;
        border: 1px solid gray;
    }
    @page {
    size: auto;
    margin: 0; 

}
@media print {
  body{
    -webkit-print-color-adjust: exact; /*chrome & webkit browsers*/
    color-adjust: exact; /*firefox & IE */
  } 
}
</style>
<body class="body-scroll d-flex flex-column h-100 menu-overlay">
    <main class="flex-shrink-0 main">
        <?php include_once 'back-header.php'; ?> 
        <div class="main-container">
            <div class="container">
               
                  
                  <?php 
    $id = $_GET['id'];
    $query = "SELECT * FROM tbl_general_ledger WHERE id = '$id'";
    $result = $conn->query($query);
    $row = $result->fetch_assoc();

    $number = $row['Amount'];
  include_once 'convert_currancy.php';
  
 ?>
                    
                  <div class="row">
                        <div class="col-12">
                            <div class="card m-b-20" style="border: 1px solid gray;">
                                <div class="card-body">
                                    <div class="row">
                                        <div class="col-12">
                                            <div class="invoice-title">
                                               <!--  <h4 class="float-right font-16"><strong>Receipt No # 1</strong></h4> -->
                                                <h3 class="mt-0 float-right"><img src="logo.png" alt="logo" height="50"></h3></div>
                                                 <div class="row">
                                                <div class="col-12"><address><strong>Address : </strong><br>Yash Academy, Buildi, Nagpur</address></div>
                                               
                                            </div>
                                          
                                            <div class="recp_color">VOUCHER</div><br>
                                            <div class="row">
                                                <div class="col-12"><strong>Voucher No : </strong>#<?php echo $row['Code']; ?>
                                                    <br><br><strong>Account Name : </strong><?php echo $row['CustName']; ?>
                                                       
                                                       <br><br>
                                                    <strong>Sum Of Rupees : </strong><?php echo  $result . "Rupees"; ?>
                                                    <br><br>
                                                <strong>Payment Mode : </strong><?php echo $row['PayType']; ?>
                                                <?php if($row['PayType'] == 'Cash'){} else{?>
                                                &nbsp;&nbsp;&nbsp;<br><strong>Cheque No : </strong><?php echo $row['ChequeNo']; ?>&nbsp;&nbsp;&nbsp;<br><strong>Cheque Date : </strong><?php echo $row['ChequeDate']; ?> <br><br>
    
    <strong>Bank Name : </strong><?php echo $row11['AccountName']; ?>
    &nbsp;&nbsp;&nbsp;<br><strong>Branch Name : </strong><?php echo $row11['BranchName']; ?><?php } ?><br><br>
                                                 <strong>Narration : </strong><?php echo $row['Narration']; ?>
                                                   <br><br>   
                                                <strong>Amount : </strong><span style="border: 2px solid gray;font-size: 20px;">&nbsp; <?php echo $row['Amount']; ?>/-&nbsp;</span>
                                                    <br><br>

                                               </div>

                                                <div class="col-12"><address><strong>Receipt Date : </strong><?php echo $row['CreatedDate']; ?></div>
                                                 
                                            </div>
                                           
                                        </div>
                                    </div>
                                
                                  
                                </div>
                            </div>
                        </div>
                        
                    </div>     
               
            </div>
        </div>
    </main>

<script src="js/jquery-3.3.1.min.js"></script>
<script src="js/popper.min.js"></script>
<script src="vendor/bootstrap/js/bootstrap.min.js"></script>
<script src="js/jquery.cookie.js"></script>
<script src="vendor/swiper/js/swiper.min.js"></script>
<script src="js/main.js"></script>
<script src="js/color-scheme-demo.js"></script>
<script src="js/app.js"></script>
</body>
</html>
