<!DOCTYPE html>
<html lang="en">

<head>	
  
   <?php include "includes2/header-links.php" ?>
	
</head>
<body class="selection:text-white selection:bg-primary">

<!-- Main wrapper start -->
<div id="main-wrapper" class="relative">
<?php include "includes2/header.php" ?>
<?php include "includes2/sidebar.php" ?>	



<!-- Content body start -->
<div class="content-body">
            <!-- row -->
			<div class="container-fluid">
				<!-- row -->
				<div class="row">
					
					<div class="xl:w-6/4 lg:w-4/3">
						<div class="card flex flex-col max-sm:mb-[30px] profile-card">
							<div class="card-header flex justify-between items-center flex-wrap sm:p-[30px] p-5 relative z-[2] border-b border-b-color">
								<h6 class="text-[15px] font-medium text-body-color title relative"> Your Product</h6>
							</div>
                   
                    	<form class="profile-form" action="" method="post" enctype="multipart/form-data">
								<div class="sm:p-10 sm:pb-2.5 p-[25px] pb-0">
									<div class="row"> 
										<div class="sm:w-1/2 w-full mb-[30px]">
											<label class="text-dark dark:text-white text-[13px] mb-2">Product Name</label>
											<input readonly type="text" name="product_name" class="form-control relative text-[13px] text-body-color h-[2.813rem] border border-b-color block rounded-md py-1.5 px-3 duration-500  outline-none w-full" placeholder="product name" value="<?= $product_name[0]['product_name']?>">
											<input readonly type="hidden" name="id" class="form-control relative text-[13px] text-body-color h-[2.813rem] border border-b-color block rounded-md py-1.5 px-3 duration-500  outline-none w-full"  value="<?= $product_name['0']['id']?>">
											<input readonly type="hidden" name="user_id" class="form-control relative text-[13px] text-body-color h-[2.813rem] border border-b-color block rounded-md py-1.5 px-3 duration-500  outline-none w-full"  value="<?= $user['0']['id']?>">
									<input readonly type="hidden" name="branch_id" class="form-control relative text-[13px] text-body-color h-[2.813rem] border border-b-color block rounded-md py-1.5 px-3 duration-500  outline-none w-full"  value="<?= $product_name['0']['branch_id']?>">
										</div>	
											<div class="sm:w-1/2 w-full mb-[30px]">
											<label class="text-dark dark:text-white text-[13px] mb-2">Company Name</label>
											<input readonly type="text" name="company_name" class="form-control relative text-[13px] text-body-color h-[2.813rem] border border-b-color block rounded-md py-1.5 px-3 duration-500  outline-none w-full" placeholder="Company name" value="<?= $product_name[0]['company_name']?>">
											<input readonly type="hidden" name="id" class="form-control relative text-[13px] text-body-color h-[2.813rem] border border-b-color block rounded-md py-1.5 px-3 duration-500  outline-none w-full"  value="<?= $product_name['0']['id']?>">
											<input readonly type="hidden" name="user_id" class="form-control relative text-[13px] text-body-color h-[2.813rem] border border-b-color block rounded-md py-1.5 px-3 duration-500  outline-none w-full"  value="<?= $user['0']['id']?>">

										</div>	
										<div class="sm:w-1/2 w-full mb-[30px]">
                                        <label class="text-dark dark:text-white text-[13px] mb-2">HSN Code</label>
                                        <input readonly type="text" name="HSN" class="form-control relative text-[13px] text-body-color h-[2.813rem] border border-b-color block rounded-md py-1.5 px-3 duration-500 outline-none w-full" placeholder="HSN Code" value="<?= $product_name['0']['HSN']?>">
                                    </div>
                                    <div class="flex  sm:w-1/2 w-full mb-[30px]">
																
																		<div class="sm:w-2/6 w-full">
																			<label class="text-dark dark:text-white text-[13px] mb-2">Packing Quantity</label>
																			<input readonly type="number" name="packing" class="form-control text-[13px] text-body-color h-[2.813rem] border border-b-color block rounded-md py-1.5 px-3 outline-none w-full" placeholder="Quantity" oninput="this.value = this.value.replace(/[^0-9.]/g, ''); calculateTotalPrice(this.closest('.row'));" 
       onkeypress="return event.charCode >= 48 && event.charCode <= 57 || event.charCode === 46" required value="<?= $product_name['0']['packing']?>">
																		</div>
															
																		<div class="sm:w-2/6 w-full pl-3">
																			<label class="text-dark dark:text-white text-[13px] mb-2">Net Unit</label>
                                                                            <input readonly type="text" name="HSN" class="form-control relative text-[13px] text-body-color h-[2.813rem] border border-b-color block rounded-md py-1.5 px-3 duration-500 outline-none w-full" placeholder="HSN Code" value="<?= $product_name['0']['net_unit']?>">

</select>

																		</div>
																	</div>
                                                                    <div class="sm:w-1/3 w-full pl-3">
																			<label class="text-dark dark:text-white text-[13px] mb-2">Unit</label>
                                                                            <input readonly type="text" name="HSN" class="form-control relative text-[13px] text-body-color h-[2.813rem] border border-b-color block rounded-md py-1.5 px-3 duration-500 outline-none w-full" placeholder="HSN Code" value="<?= $product_name['0']['unit']?>">

																		</div> 
                                                                      <?php if($product_name['0']['box'] == '1') {?>
											<div class="sm:w-1/3 w-full mb-[30px] ">
												<label class="text-dark dark:text-white text-[13px] mb-2 ">Per Box
													Quantity</label>
												<input type="text" name="box_per_unit"
													class="form-control relative text-[13px] text-body-color h-[2.813rem] border border-b-color block rounded-md py-1.5 px-3 duration-500 outline-none w-full"
													placeholder="Per Box Quantity"
													value="<?= $product_name[0]['box_per_unit'] ?>" readonly>
											</div>
											<div class="sm:w-1/3 w-full mb-[30px] ">
												<label class="text-dark dark:text-white text-[13px] mb-2">Per Quantity Purchase
													Price</label>
												<input type="text" name="box_per_unit_price"
													class="form-control relative text-[13px] text-body-color h-[2.813rem] border border-b-color block rounded-md py-1.5 px-3 duration-500 outline-none w-full"
													placeholder="Purchase Price"
													value="<?= $product_name['0']['box_per_unit_price'] ?>" readonly>
											</div>
											<div class="sm:w-1/3 w-full mb-[30px] ">
												<label class="text-dark dark:text-white text-[13px] mb-2">Per Quantity Tax(In %)</label>
												<input type="text" name="per_tax"
													class="form-control relative text-[13px] text-body-color h-[2.813rem] border border-b-color block rounded-md py-1.5 px-3 duration-500 outline-none w-full"
													placeholder="Tax(In %)" value="<?= $product_name['0']['per_tax'] ?>" readonly>
											</div>
											<div class="sm:w-1/3 w-full mb-[30px] ">
												<label class="text-dark dark:text-white text-[13px] mb-2">Per Quantity Tax Type</label>
                                                <input readonly type="text" name="HSN" class="form-control relative text-[13px] text-body-color h-[2.813rem] border border-b-color block rounded-md py-1.5 px-3 duration-500 outline-none w-full" placeholder="HSN Code" value="<?= $product_name['0']['per_tax_type']?>" readonly>
											</div>
											<div class="sm:w-1/3 w-full mb-[30px] ">
												<label class="text-dark dark:text-white text-[13px] mb-2">Per Quantity Tax Amount</label>
												<input type="text" name="per_tax_amount"
													class="form-control relative text-[13px] text-body-color h-[2.813rem] border border-b-color block rounded-md py-1.5 px-3 duration-500 outline-none w-full"
													placeholder="Tax Amount" value="<?= $product_name['0']['per_tax_amount'] ?>" readonly>
											</div>
											<div class="sm:w-1/3 w-full mb-[30px] " >
												<label class="text-dark dark:text-white text-[13px] mb-2">Per Quantity Purchase Price
													With Tax</label>
												<input type="text" name="per_total_purchase_price"
													class="form-control relative text-[13px] text-body-color h-[2.813rem] border border-b-color block rounded-md py-1.5 px-3 duration-500 outline-none w-full"
													placeholder="Purchase Price With Tax"
													value="<?= $product_name['0']['per_total_purchase_price'] ?>" readonly>
											</div>
											<div class="sm:w-1/6 w-full mb-[30px] ">
												<label class="text-dark dark:text-white text-[13px] mb-2">Per Quantity MRP</label>
												<input type="text" name="per_mrp"
													class="form-control relative text-[13px] text-body-color h-[2.813rem] border border-b-color block rounded-md py-1.5 px-3 duration-500 outline-none w-full"
													placeholder="MRP" value="<?= $product_name['0']['per_mrp'] ?>" readonly>
											</div>
											<div class="sm:w-1/4 w-full mb-[30px] ">
												<label class="text-dark dark:text-white text-[13px] mb-2">Per Quantity Profit Margin (In
													%)</label>
												<input type="text" name="per_profit_margin"
													class="form-control relative text-[13px] text-body-color h-[2.813rem] border border-b-color block rounded-md py-1.5 px-3 duration-500 outline-none w-full"
													placeholder="Profit Margin"
													value="<?= $product_name['0']['per_profit_margin'] ?>" readonly>
											</div>
											<div class="sm:w-1/4 w-full mb-[30px]">
												<label class="text-dark dark:text-white text-[13px] mb-2">Per Quantity Sales
													Price</label>
												<input type="text" name="box_per_unit_sales_price"
													class="form-control relative text-[13px] text-body-color h-[2.813rem] border border-b-color block rounded-md py-1.5 px-3 duration-500 outline-none w-full"
													placeholder="Seles Price"
													value="<?= $product_name['0']['box_per_unit_sales_price'] ?>" readonly>
											</div>
                                            <h4 class="sm:w-1 w-full mb-[30px]">Box Detail</h4>
										<?php }?>
										
                                            <div class="sm:w-1/3 w-full mb-[30px]">
                                        <label class="text-dark dark:text-white text-[13px] mb-2">Purchase Price</label>
                                        <input readonly type="text" name="purchase_price" class="form-control relative text-[13px] text-body-color h-[2.813rem] border border-b-color block rounded-md py-1.5 px-3 duration-500 outline-none w-full" placeholder="Purchase Price" value="<?= $product_name['0']['purchase_price']?>" readonly>
                                    </div> 
                                   <div class="sm:w-1/3 w-full mb-[30px]">
                                        <label class="text-dark dark:text-white text-[13px] mb-2">Tax(In %)</label>
                                        <input readonly type="text" name="tax" class="form-control relative text-[13px] text-body-color h-[2.813rem] border border-b-color block rounded-md py-1.5 px-3 duration-500 outline-none w-full" placeholder="Tax(In %)" value="<?= $product_name['0']['tax']?>" readonly>
                                    </div> <div class="sm:w-1/3 w-full mb-[30px]">
                                        <label class="text-dark dark:text-white text-[13px] mb-2">Tax Type</label>
                                        <input readonly type="text" name="HSN" class="form-control relative text-[13px] text-body-color h-[2.813rem] border border-b-color block rounded-md py-1.5 px-3 duration-500 outline-none w-full" placeholder="HSN Code" value="<?= $product_name['0']['tax_type']?>">

                                    </div>
                                    <div class="sm:w-1/3 w-full mb-[30px]">
                                        <label class="text-dark dark:text-white text-[13px] mb-2">Tax Amount</label>
                                        <input readonly type="text" name="tax_amount" class="form-control relative text-[13px] text-body-color h-[2.813rem] border border-b-color block rounded-md py-1.5 px-3 duration-500 outline-none w-full" placeholder="Tax Amount" value="<?= $product_name['0']['tax_amount']?>">
                                    </div>
                                    <div class="sm:w-1/3 w-full mb-[30px]">
                                        <label class="text-dark dark:text-white text-[13px] mb-2">Purchase Price With Tax</label>
                                        <input readonly type="text" name="total_purchase_price" class="form-control relative text-[13px] text-body-color h-[2.813rem] border border-b-color block rounded-md py-1.5 px-3 duration-500 outline-none w-full" placeholder="Purchase Price With Tax" value="<?= $product_name['0']['total_purchase_price']?>">
                                    </div>
                                    <div class="sm:w-1/3 w-full mb-[30px]">
                                        <label class="text-dark dark:text-white text-[13px] mb-2">MRP</label>
                                        <input readonly type="text" name="mrp" class="form-control relative text-[13px] text-body-color h-[2.813rem] border border-b-color block rounded-md py-1.5 px-3 duration-500 outline-none w-full" placeholder="MRP" value="<?= $product_name['0']['mrp']?>">
                                    </div>
                                    <div class="sm:w-1/3 w-full mb-[30px]">
                                        <label class="text-dark dark:text-white text-[13px] mb-2">Profit Margin (In %)</label>
                                        <input readonly type="text" name="profit_margin" class="form-control relative text-[13px] text-body-color h-[2.813rem] border border-b-color block rounded-md py-1.5 px-3 duration-500 outline-none w-full" placeholder="Profit Margin" value="<?= $product_name['0']['profit_margin']?>">
                                    </div>
                                    <div class="sm:w-1/3 w-full mb-[30px]">
                                        <label class="text-dark dark:text-white text-[13px] mb-2">Sales Price</label>
                                        <input readonly type="text" name="selling_price" class="form-control relative text-[13px] text-body-color h-[2.813rem] border border-b-color block rounded-md py-1.5 px-3 duration-500 outline-none w-full" placeholder="Seles Price" value="<?= $product_name['0']['selling_price']?>">
                                    </div>
									</div>
									
								</div>
								
							</form>
                           
						</div>
					</div>
				</div>
            </div>
        </div>
<!-- Content body end -->

<?php include "includes2/footer-links.php" ?>
</div>
<?php include "includes2/footer.php" ?>
</body>
</html>
