 <div class="dashboard-wrapper">
  <div class="container-fluid dashboard-content right-container">
  					<div class="col-xl-12 col-lg-12 col-md-12 col-sm-12 col-12">
					 <form action="#" id="basicform" data-parsley-validate="" novalidate="">
					<div class="card">
						<div class="sidebar-dark">
					<div class="card-figure">
					
					<h3 class="card-header-title text-white"><?=$invoiceno?></h3>
					
					</div>
					</div>
					</div>
					
					<div class="card">
					<div class="card-body">
					<div class="row">
					
					<div class="col-md-4">
					<h2><a href="client-details.php" class="text-primary"><?=$billed_membername?></a></h2>
					<p><?=$address?></p>
					</div>
					
					<div class="col-md-8">
						<div class="card">
					<div class="card-body">
					<div class="row">
					<div class="col-md-6">
					 <div class="form-group">
                                            <label for=>Invoice </label>
                                            <input id= type="text" value="<?=$invoiceno?>" name="name" data-parsley-trigger="change" required="" autocomplete="off" class="form-control">
                                        </div>
										<div class="form-group">
										  <label for=>Date</label>
                                       
                                       <div class="input-group date" >
					<input type="text" name="txtinv_date" class="form-control getdate" required=""   placeholder="Invoice Date" value="<?=$invoicedate?>">
				</div>
                                  
                                    </div>
					
					 <div class="form-group">
					<label for=>Due Date</label>
                    
                                        <div class="input-group date" >
					<input type="text" name="txtinv_duedate" class="form-control getdate" required=""   placeholder="Due Date" value="<?=$duedate?>">
				</div>
                                   
                       </div>
					<!-- <div class="form-group">
                      <label for=>Sent at</label>
                     <div class="input-group date" data-target-input="nearest">
                                            <input type="text" class="form-control" required="" >
                                            <div class="input-group-append" >
                                                <div class="input-group-text"><i class="far fa-calendar-alt"></i></div>
                                            </div>
                                        </div>
                       </div>-->
					</div>
					
					
					<div class="col-md-6">
					<div class="form-group">
																	<label for="input-select">Status</label>
																	<select class="form-control" id="input-select" required="" data-parsley-trigger="change" required="">
																	<option   value="<?=$status?>" selected></option>
																	<option>Draft</option>
																	<option>Sent</option>
																	<option>Viewed</option>
																	<option>Paid</option>
																	</select>
					</div>
					<div class="form-group">
																	<label for="input-select">Payment Method</label>
															<input  type="text" value="<?=$mode_of_payment?>" name="name" data-parsley-trigger="change" required="" autocomplete="off" class="form-control">
<!--<select class="form-control" id="input-select" required="" data-parsley-trigger="change" placeholder="Choose payment method" required="">
																	
																	<option  <?php if($mode_of_payment =='CHEQUE') echo 'selected'; ?>  value="CHEQUE" >CHEQUE</option>
																	<option <?php if($mode_of_payment =='CHEQUE') echo 'selected'; ?> value="CHEQUE">Offline Payment(Cheque)</option>
																	<option <?php if($mode_of_payment =='DEMAND_DRAFT') echo 'selected'; ?> value="DEMAND_DRAFT">Offline Payment(DD)</option>
																	<option <?php if($mode_of_payment =='RTGS') echo 'selected'; ?> value="RTGS">RTGS Payment</option>
																	<option <?php if($mode_of_payment =='NETBANKING') echo 'selected'; ?> value="NETBANKING">Online Netbanking(NEFT)</option>
																	<option <?php if($mode_of_payment =='IMPS') echo 'selected'; ?> value="IMPS">IMPS Payments</option>
																	</select>-->
					</div>
				
						<!--<div class="form-group">
                      <label for=>PDF Password (optional)</label>
                      <input id= type="text" name="name" data-parsley-trigger="change" autocomplete="off" class="form-control">
                       </div>		-->															
					</div>
					</div>
					</div>
					</div>
					</div>
					
					
					
					
					</div>
					</div>
					</div>
					
	
					<div class="card">
					<div class="card-body">
					<div class="row">
					<table  cellspacing="0" width="100%;">
					<thead style="text-align: center;">
						<tr>
							<th width="2%"><input class='check_all' type='checkbox' onclick="select_all()"/></th>
							<th width="3%;">Sr. No</th>
							<th width="15%;"> Item No </th>
							<th width="20%;"> Item Name </th>
							<th width="6%;"> HSN Code </th>
							<th width="10%;"> Price </th>
							<th width="6%;"> CGST </th>
							<th width="6%;"> SGST </th>
							<th width="6%;"> IGST </th>
							<th width="6%;"> Quantity </th>
							<th width="20%;"> Subtotal </th>
						</tr>					
					</thead>
					<tbody>
					<?=$trndetails?>
						<!--<tr id="txtdisplay_1">
							<td width="1%"><input type='checkbox' class='case'/></td>
							
							<td style="text-align: center;"><span id='snum' >1.</span></td>
							
							<td><input type="text"  name="txtitemno_display1[]" value="<?=$itemno?>" data-type="itemno" id="txtitemno_display_1" class="form-control autocomplete_txt data_display" autocomplete="off"></td>
							
							<td><input type="text" name="txtitemname_display1[]" value="<?=$productname?>" data-type="productname" id="txtitemname_display_1" class="form-control autocomplete_txt" autocomplete="off"></td>
							
							<td><input type="text" name="txthsncode_display1[]" value="<?=$hsn_code?>" id="txthsncode_display_1" class="form-control" autocomplete="off"></td>
							
							<td><input type="text" name="txtitemprice_display1[]" value="<?=$ProductBaseAmount?>" id="txtitemprice_display_1" class="form-control autooriginalprice_display " autocomplete="off"></td>
							
							<td><input type="text" name="txtcgst_display1[]" value="<?=$cgst_amount_product?>" id="txtcgst_display_1" class="form-control" autocomplete="off"><input type="hidden"  id="txtcgst_hidden_display_1" class="form-control autocgst_display" ></td>
							
							<td><input type="text" name="txtsgst_display1[]" value="<?=$sgst_amount_product?>" id="txtsgst_display_1" class="form-control" autocomplete="off"><input type="hidden"  id="txtsgst_hidden_display_1" class="form-control autosgst_display"></td>
							
							<td><input type="text" name="txtigst_display1[]" value="<?=$igst_amount_product?>" id="txtigst_display_1" class="form-control " autocomplete="off"><input type="hidden" id="txtigst_hidden_display_1" class="form-control autoigst_display"></td>
							
						 	<td><input type="text" name="txtitemquantity_display1[]" value="<?=$quantity?>" data-type="itemno" id="txtitemquantity_display_1" class="form-control  autocomplete_quantity"  autocomplete="off"></td>
							<td><input type="text" name="txtitemsubtotal_display1[]" value="<?=$ProductTotalAmount?>"id="txtitemsubtotal_display_1" class="form-control  autototal_display" autocomplete="off" style="text-align: right;"></td>
						</tr>	-->	
										
					</tbody>
				</table>
					   </div>

</div>
					</div>

			<div class="card">
				 <div class="card-body">
				 <div class="row">
				  <div class="col-md-3">
				  </div>
				 <div class="col-md-6">
				 <table class="table table-bordered text-right">
				 <tbody>
				 <tr>
				 <td>Subtotal</td>
				 <td><?=$InvoiceBaseAmount?></td>
				 </tr>
				  <tr>
				 <td>CGST</td>
				 <td><?=$cgst_amount?></td>
				 </tr>
				  <tr>
				 <td>SGST</td>
				 <td><?=$sgst_amount?></td>
				 </tr>
				  <tr>
				 <td>IGST</td>
				 <td><?=$igst_amount?></td>
				 </tr>
				  <tr>
				 <td>Discount</td>
				 <td><?=$discount_amount?></td>
				 </tr>
				  <tr>
				 <td>Total</td>
				 <td><b><?=$InvoiceTotalAmount?></b></td>
				 </tr>
				  <tr>
				 <td>Paid</td>
				 <td><b></b></td>
				 </tr>
				  <tr>
				 <td>Balance</td>
				 <td><b></b></td>
				 </tr>
				 </tbody>
				 </table>
				 </div>
				 
				 </div>
				 </div>
	   </div>

<!--<div class="card">
				 <div class="card-body">
				 <div class="col-md-12">
                     <p class="text-right">
                       <button type="submit" class="btn btn-space btn-primary">Submit</button>
                         <button class="btn btn-space btn-secondary">Cancel</button>
                      </p>
       </div>
	   </div>
	   </div>-->
	
					</form>
					  </div>
    
  </div> 
 		</div><!--dashboard-wrapper ends-->