<?php 
session_start(); 
if(!isset($_SESSION['tulsilogin']))
	{
		header('Location: index.php');
		return;
	}


?>
<!DOCTYPE html>
<!--
Author: Keenthemes
Product Name: Metronic - Bootstrap 5 HTML, VueJS, React, Angular. Laravel, Asp.Net Core, Ruby on Rails, Spring Boot, Blazor, Django, Express Node.js & Flask Admin Dashboard Theme
Purchase: https://1.envato.market/EA4JP
Website: http://www.keenthemes.com
Contact: support@keenthemes.com
Follow: www.twitter.com/keenthemes
Dribbble: www.dribbble.com/keenthemes
Like: www.facebook.com/keenthemes
License: For each use you must have a valid license purchased only from above link in order to legally use the theme for your project.
-->
<html lang="en">
	<!--begin::Head-->
	<head>
		<title>Lead Detail</title>
		<meta charset="utf-8" />
		
		<meta name="viewport" content="width=device-width, initial-scale=1" />
		<meta property="og:locale" content="en_US" />
		<meta property="og:type" content="article" />
		<meta property="og:title" content="Metronic - Bootstrap 5 HTML, VueJS, React, Angular. Laravel, Asp.Net Core, Ruby on Rails, Spring Boot, Blazor, Django, Express Node.js & Flask Admin Dashboard Theme" />
		<meta property="og:url" content="https://keenthemes.com/metronic" />
		<meta property="og:site_name" content="Keenthemes | Metronic" />
		<link rel="canonical" href="https://preview.keenthemes.com/metronic8" />
		<link rel="shortcut icon" href="assets/media/logos/favicon.ico" />
		<!--begin::Fonts(mandatory for all pages)-->
		<link rel="stylesheet" href="https://fonts.googleapis.com/css?family=Inter:300,400,500,600,700" />
		<!--end::Fonts-->
		<!--begin::Vendor Stylesheets(used for this page only)-->
		<link href="assets/plugins/custom/datatables/datatables.bundle.css" rel="stylesheet" type="text/css" />
		<!--end::Vendor Stylesheets-->
		<!--begin::Global Stylesheets Bundle(mandatory for all pages)-->
		<link href="assets/plugins/global/plugins.bundle.css" rel="stylesheet" type="text/css" />
		<link href="assets/css/style.bundle.css" rel="stylesheet" type="text/css" />
		<style>
		    body{
		        background-image: none !important;
    background-color: #F3F6F9;
		    }
		</style>
		<!--end::Global Stylesheets Bundle-->
	</head>
	<!--end::Head-->
	<!--begin::Body-->
	<body id="kt_body" class="header-fixed header-tablet-and-mobile-fixed aside-fixed aside-secondary-disabled">
		<!--begin::Theme mode setup on page load-->
		<script>var defaultThemeMode = "light"; var themeMode; if ( document.documentElement ) { if ( document.documentElement.hasAttribute("data-theme-mode")) { themeMode = document.documentElement.getAttribute("data-theme-mode"); } else { if ( localStorage.getItem("data-theme") !== null ) { themeMode = localStorage.getItem("data-theme"); } else { themeMode = defaultThemeMode; } } if (themeMode === "system") { themeMode = window.matchMedia("(prefers-color-scheme: dark)").matches ? "dark" : "light"; } document.documentElement.setAttribute("data-theme", themeMode); }</script>
		<!--end::Theme mode setup on page load-->
		<!--begin::Main-->
		<!--begin::Root-->
		<div class="d-flex flex-column flex-root">
			<!--begin::Page-->
			<div class="page d-flex flex-row flex-column-fluid">
				<!--begin::Aside-->
				<?php include('sidebar.php'); ?>
				<!--end::Aside-->
				<!--begin::Wrapper-->
				<div class="wrapper d-flex flex-column flex-row-fluid" id="kt_wrapper">
					<!--begin::Header-->
					<div id="kt_header" style="" class="header align-items-stretch">
						<!--begin::Container-->
						<div class="container-fluid d-flex align-items-stretch justify-content-between">
							<!--begin::Aside mobile toggle-->
							<div class="d-flex align-items-center d-lg-none ms-n3 me-1" title="Show aside menu">
								<div class="btn btn-icon btn-active-color-primary w-40px h-40px" id="kt_aside_toggle">
									<!--begin::Svg Icon | path: icons/duotune/abstract/abs015.svg-->
									<span class="svg-icon svg-icon-1">
										<svg width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg">
											<path d="M21 7H3C2.4 7 2 6.6 2 6V4C2 3.4 2.4 3 3 3H21C21.6 3 22 3.4 22 4V6C22 6.6 21.6 7 21 7Z" fill="currentColor" />
											<path opacity="0.3" d="M21 14H3C2.4 14 2 13.6 2 13V11C2 10.4 2.4 10 3 10H21C21.6 10 22 10.4 22 11V13C22 13.6 21.6 14 21 14ZM22 20V18C22 17.4 21.6 17 21 17H3C2.4 17 2 17.4 2 18V20C2 20.6 2.4 21 3 21H21C21.6 21 22 20.6 22 20Z" fill="currentColor" />
										</svg>
									</span>
									<!--end::Svg Icon-->
								</div>
							</div>
							<!--end::Aside mobile toggle-->
							<!--begin::Mobile logo-->
							<div class="d-flex align-items-center flex-grow-1 flex-lg-grow-0">
								<a href="dashboard.php" class="d-lg-none">
									<img alt="Logo" src="assets/media/logos/demo4-mobile.svg" class="h-25px" />
								</a>
							</div>
							<!--end::Mobile logo-->
							<div class="d-flex align-items-center" id="kt_header_wrapper">
								<!--begin::Page title-->
								<div class="page-title d-flex flex-column align-items-start justify-content-center flex-wrap me-lg-20 pb-5 pb-lg-0" data-kt-swapper="true" data-kt-swapper-mode="prepend" data-kt-swapper-parent="{default: '#kt_content_container', lg: '#kt_header_wrapper'}">
									<!--begin::Heading-->
									<h1 class="text-dark fw-bold my-1 fs-3 lh-1">Lead Details</h1>
									<!--end::Heading-->
									<!--begin::Breadcrumb-->
									<ul class="breadcrumb fw-semibold fs-8 my-1">
										<li class="breadcrumb-item text-muted">
											<a href="dashboard.php" class="text-muted">Home</a>
										</li>
										<li class="breadcrumb-item text-muted">Lead Managemnet</li>
										
										<li class="breadcrumb-item text-muted">Lead Details</li>
									</ul>
									<!--end::Breadcrumb-->
								</div>
								<!--end::Page title=-->
							</div>
							<!--begin::Wrapper-->
							<?php include('header.php'); ?>
							<!--end::Wrapper-->
						</div>
						<!--end::Container-->
					</div>
					<!--end::Header-->
					<?php
					
	
	include("connect.php");
	$imid=$_GET['id'];
	$eve = "select * from res_inquiry_master where imid=".$_GET['id'];
			$re = mysqli_query($conn, $eve);
			while($rt = mysqli_fetch_assoc($re))
			{
				
				$ipname=$rt['ipname'];
				$ipmiddlename=$rt['ipmiddlename'];
				$ipsurname=$rt['ipsurname'];
				$name=$ipname." ".$ipmiddlename." ".$ipsurname;
				$ipaddress=$rt['ipaddress'];
				$ipostcode=$rt['ipostcode'];
				$ipemail=$rt['ipemail'];
				$ipmobile=$rt['ipmobile'];
				$ihomemobile=$rt['ihomemobile'];
				$ipgender=$rt['ipgender'];
				//$ipdob=$rt['ipdob'];
				$idate=$rt['idate'];
				$ipbirthcountry=$rt['ipbirthcountry'];
				$ibirthstate=$rt['ibirthstate'];
				$ipbirthcity=$rt['ipbirthcity'];
				$address = $ipaddress.",".$ipbirthcity."-".$ipostcode.",".$ibirthstate.",".$ipbirthcountry;
				$imremarks=$rt['imremarks'];
				$imdetails=$rt['imdetails'];
				$imstatus=$rt['imstatus'];
				$registeredamount=$rt['registeredamount'];
				$entrybyuserid=$rt['entrybyuserid'];
				$visatmid=$rt['visatmid'];
				$ivisadate=$rt['ivisadate'];
				$ivisano=$rt['ivisano'];
				$ivisatraveldate=$rt['ivisatraveldate'];
				$ipdob=$rt['ipdob'];
				$ipmarritalstatus=$rt['ipmarritalstatus'];
				$ipstatus=$rt['ipstatus'];
				$sourceofinq=$rt['sourceofinq'];
				$ipoffer=$rt['ipoffer'];
				$referencename=$rt['referencename'];
				$agentid=$rt['agentid'];
				
				//$inquirypurpose=$rt['inquirypurpose'];
				//$inquiryprefercountry=$rt['inquiryprefercountry'];
				
				//$inquirypurpose1="<button data-toggle='modal' data-target='#view-modal' data-id='$imid' id='getUser' class='btn btn-xs btn-warning'>$inquirypurpose</button>";
				
				if($ivisadate=='0000-00-00')
				{
					$ivisadate="";
				}
				else
				{
					$ivisadate=date("d-m-Y",strtotime($rt['ivisadate']));
				}
				
				if($ipdob=='0000-00-00')
				{
					$ipdob="";
				}
				else
				{
					$ipdob=date("d-m-Y",strtotime($rt['ipdob']));
				}	
				
				if($ivisatraveldate=='0000-00-00')
				{
					$ivisatraveldate="";
				}
				else
				{
					$ivisatraveldate=date("d-m-Y",strtotime($rt['ivisatraveldate']));
				}
				
				$ivisaticket=$rt['ivisaticket'];
				$ivisacontactfrom=urldecode($rt['ivisacontactfrom']);
				$ivisaaddress=urldecode($rt['ivisaaddress']);
				$ivisaremarks=urldecode($rt['ivisaremarks']);
				$ivisadetail=urldecode($rt['ivisadetail']);
				$visaedit="<a data-toggle='modal' href='#responsive11' title='Edit' class='fa fa-edit fa-lg' >  </a>";
				
				$eveag = "select * from res_user_master where umid=$entrybyuserid";
				$reag = mysqli_query($conn, $eveag);
				if(mysqli_num_rows($reag) > 0)
				{
					while($rtag = mysqli_fetch_assoc($reag))
					{
						$entrybyuserid=$rtag['ufullname'];
					}
				}
				else
				{
					$entrybyuserid="";
				}
				
				
				if($agentid == 0)
				{
					$agentname="Direct";
				}else{
				$eveag = "select * from res_user_master where umid=$agentid";
				$reag = mysqli_query($conn, $eveag);
				if(mysqli_num_rows($reag) > 0)
				{
					while($rtag = mysqli_fetch_assoc($reag))
					{
						$agentname=$rtag['ufullname'];
					}
				}
				else
				{
					$agentname="";
				}
				}
				
				/* $eveag1 = "select * from res_country_master where countrymid=$inquiryprefercountry";
				$reag1 = mysqli_query($conn, $eveag1);
				if(mysqli_num_rows($reag1) > 0)
				{
					while($rtag1 = mysqli_fetch_assoc($reag1))
					{
						$countryname=$rtag1['countryname'];
					}
				}
				else
				{
					$countryname="";
				} */
			
				$eve2 = "select * from res_visatype_master where visatmid='$visatmid'";
				$re2 = mysqli_query($conn, $eve2);
				$visatype="";
				while($rt2 = mysqli_fetch_assoc($re2))
				{
					$visatype=$rt2['visatype'];
				}
			}
			$eve3 = "select * from  res_payment_master where imid='$imid'";
			$re3 = mysqli_query($conn, $eve3);
			$receivedamount=0;
			while($rt3 = mysqli_fetch_assoc($re3))
			{
				$receivedamount=$rt3['receivedamount'];
			}
			$receivedamount1=$registeredamount - $receivedamount;
			
			$eve31 = "select sum(paytotalamount) as cc,sum(payrecivedamt) as cc1,sum(paypendingamt) as cc2 from  res_payments_master where imid='$imid'";
			$re31 = mysqli_query($conn, $eve31);
			$totalamt=0;
			$totalreceivedamt=0;
			$totalpendingamt=0;
			while($rt31 = mysqli_fetch_assoc($re31))
			{
				$totalamt=$rt31['cc'];
				$totalreceivedamt=$rt31['cc1'];
				$totalpendingamt=$rt31['cc2'];
			}
	
?>
					<!--begin::Content-->
					<div class="content d-flex flex-column flex-column-fluid" id="kt_content">
						<!--begin::Container-->
						<div class="container-xxl" id="kt_content_container">
							<!--begin::Order details page-->
							<div class="d-flex flex-column gap-7 gap-lg-10">
								<div class="d-flex flex-wrap flex-stack gap-5 gap-lg-10">
									<!--begin:::Tabs-->
									<ul class="nav nav-custom nav-tabs nav-line-tabs nav-line-tabs-2x border-0 fs-4 fw-semibold mb-lg-n2 me-auto">
										<!--begin:::Tab item-->
										<?php 
										if($_SESSION['utype']=='branchmanager' || $_SESSION['utype']=='counseller' || $_SESSION['utype'] == 'admin' || $_SESSION['utype'] == 'receptionist' || $_SESSION['utype'] == 'documentmanager'  || $_SESSION['utype'] == 'accountmanager')
										{
											?>
										<li class="nav-item">
											<a class="nav-link text-active-primary pb-4 active text-uppercase" data-bs-toggle="tab" href="#student_detail">LEAD Detail</a>
										</li>
										
										<!--end:::Tab item-->
										<?php 
											}
										
										if($_SESSION['utype']=='branchmanager' || $_SESSION['utype']=='counseller' || $_SESSION['utype'] == 'admin' || $_SESSION['utype'] == 'receptionist' || $_SESSION['utype'] == 'documentmanager' || $_SESSION['utype'] == 'accountmanager')
										
										{
											?>
										<!--begin:::Tab item-->
										<li class="nav-item">
											<a class="nav-link text-active-primary pb-4 text-uppercase" data-bs-toggle="tab" href="#student_councelling">Task Allocation</a>
										</li>
										<!--end:::Tab item-->
										<?php 
											}
										
										if($_SESSION['utype']=='branchmanager' || $_SESSION['utype']=='counseller' || $_SESSION['utype'] == 'admin' || $_SESSION['utype'] == 'receptionist' )
										
										{
											?>
										<!--begin:::Tab item-->
										<li class="nav-item">
											<a class="nav-link text-active-primary pb-4 text-uppercase" data-bs-toggle="tab" href="#student_familydetail">Family Detail</a>
										</li>
										<!--end:::Tab item-->
										<?php 
											}
										
										if($_SESSION['utype']=='branchmanager' || $_SESSION['utype']=='counseller' || $_SESSION['utype'] == 'admin' || $_SESSION['utype'] == 'receptionist' || $_SESSION['utype'] == 'documentmanager'  || $_SESSION['utype'] == 'accountmanager' )
										
										{
											?>
										<!--begin:::Tab item-->
										<li class="nav-item">
											<a class="nav-link text-active-primary pb-4 text-uppercase" data-bs-toggle="tab" href="#student_education">Education</a>
										</li>
										<!--end:::Tab item-->
										<?php 
											}
										
										if($_SESSION['utype']=='branchmanager' || $_SESSION['utype']=='counseller' || $_SESSION['utype'] == 'admin' || $_SESSION['utype'] == 'receptionist'|| $_SESSION['utype'] == 'documentmanager'  || $_SESSION['utype'] == 'accountmanager')
										
										{
											?>
										<!--begin:::Tab item-->
										<li class="nav-item">
											<a class="nav-link text-active-primary pb-4 text-uppercase" data-bs-toggle="tab" href="#student_document">Document</a>
										</li>
										<!--end:::Tab item-->
										<?php 
											} if($_SESSION['utype']=='branchmanager' || $_SESSION['utype']=='counseller' || $_SESSION['utype'] == 'admin' || $_SESSION['utype'] == 'receptionist'|| $_SESSION['utype'] == 'applicationmanager'  || $_SESSION['utype'] == 'applicationteammember')
										
										{
											?>
										<!--begin:::Tab item-->
										<li class="nav-item">
											<a class="nav-link text-active-primary pb-4 text-uppercase" data-bs-toggle="tab" href="#student_application">Application</a>
										</li>
										<!--end:::Tab item-->
										<?php 
											}
										
										if( $_SESSION['utype']=='counseller' || $_SESSION['utype'] == 'accountmanager' ||  $_SESSION['utype'] == 'admin' || $_SESSION['utype']=='branchmanager')
										
										{
											?>
										<!--begin:::Tab item-->
										<li class="nav-item">
											<a class="nav-link text-active-primary pb-4 text-uppercase" data-bs-toggle="tab" href="#student_payment">Payment</a>
										</li>
										<!--end:::Tab item-->
										<?php 
											}
										
										
											?>
									</ul>
									<!--end:::Tabs-->
									<!--begin::Button-->
									<?php if($_SESSION['frompage'] == 'Inquirylistpage') {?>
									<a href="inquiry.php" class="btn btn-icon btn-light btn-sm ms-auto me-lg-n7">
									<?php } else if ($_SESSION['frompage'] == 'planStudiesInquirylistpage') { ?>
									<a href="planstudiesinquiry.php" class="btn btn-icon btn-light btn-sm ms-auto me-lg-n7">
									<?php } else if ($_SESSION['frompage'] == 'AgentDetail') {  ?>
									<a href="agentinquiry.php?id=<?php echo $_SESSION['agentid']; ?>" class="btn btn-icon btn-light btn-sm ms-auto me-lg-n7">
									<?php }else{ ?>
									<a href="inquiry.php" class="btn btn-icon btn-light btn-sm ms-auto me-lg-n7">
									<?php } ?>
										<!--begin::Svg Icon | path: icons/duotune/arrows/arr074.svg-->
										<span class="svg-icon svg-icon-2">
											<svg width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg">
												<path d="M11.2657 11.4343L15.45 7.25C15.8642 6.83579 15.8642 6.16421 15.45 5.75C15.0358 5.33579 14.3642 5.33579 13.95 5.75L8.40712 11.2929C8.01659 11.6834 8.01659 12.3166 8.40712 12.7071L13.95 18.25C14.3642 18.6642 15.0358 18.6642 15.45 18.25C15.8642 17.8358 15.8642 17.1642 15.45 16.75L11.2657 12.5657C10.9533 12.2533 10.9533 11.7467 11.2657 11.4343Z" fill="currentColor" />
											</svg>
										</span>
										<!--end::Svg Icon-->
									</a>
									<!--end::Button-->
									
								</div>
								
								<!--begin::Tab content-->
								<div class="tab-content">
									<!--begin::Tab pane-->
									<div class="tab-pane fade show active" id="student_detail" role="tab-panel">
										<!--begin::Orders-->
										<div class="d-flex flex-column gap-7 gap-lg-10">
											<div class="d-flex flex-column flex-xl-row gap-7 gap-lg-10">
												<!--begin::Payment address-->
												<div class="card card-flush py-4 flex-row-fluid overflow-hidden">
													<!--begin::Background-->
													
													<!--end::Background-->
													<div class="d-flex justify-content-end" data-kt-user-table-toolbar="base">
													<?php if($_SESSION['utype']=='branchmanager' || $_SESSION['utype']=='counseller' || $_SESSION['utype'] == 'admin' || $_SESSION['utype'] == 'receptionist' )
										{ ?>
													<!--begin::Add user-->
											<a href="inquiryedit.php?id=<?php echo $imid; ?>&from=detail" class="btn btn-primary ">
											<!--begin::Svg Icon | path: icons/duotune/arrows/arr075.svg-->
											
											<!--end::Svg Icon-->Edit <i class="fa fa-edit"> </i></a>
											
											<?php } ?>
											<!--end::Add user-->
												</div>
													<!--begin::Card header-->
													<div class="card-body pt-0">
													<div class="table-responsive">
													<table class="table align-middle table-row-dashed fs-6 gy-5 mb-0">
                
                <tr>
                  <th class="fw-bold"> Name
                  </th>
                  <td calspnad="3">
                    <?php echo $name;?>
                  </td>
                 
                </tr>
				 <tr>
				 <th class="fw-bold">Gender
                  </th>
                  <td >
                    <?php echo $ipgender;?>
                  </td>
                  <th class="fw-bold">Email
                  </th>
                  <td >
                    <?php echo $ipemail;?>
                  </td>								
                 
                </tr>
				<tr>
                  
                  <th class="fw-bold">Mobile Number
                  </th>
                  <td>
                    <?php echo $ipmobile;?>
                  </td>
				  <th class="fw-bold"> Home Contact Number
                  </th>
                  <td>
                    <?php echo $ihomemobile;?>
                  </td>
                </tr>	
               
                <tr>
				
                 <th class="fw-bold">Birth Date
                  </th>
                  <td>
                    <?php echo $ipdob;?>
                  </td>
				
                  <th class="fw-bold">Marrital Status
                  </th>
                  <td >
                    <?php echo $ipmarritalstatus;?>
                  </td>
				   
                </tr>
                <tr >
                  <th class="fw-bold">Address
                  </th>
                  <td colspan="2">
                    <?php echo $ipaddress;?>
                  </td>
                  
                </tr> 
				
				<tr >
                  <th class="fw-bold">City
                  </th>
                  <td >
                    <?php echo $ipbirthcity;?>
                  </td>
				  <th class="fw-bold">Postcode
                  </th>
                  <td >
                    <?php echo $ipostcode;?>
                  </td>
                  
                </tr>
				<tr >
                  <th class="fw-bold">State
                  </th>
                  <td >
                    <?php echo $ibirthstate;?>
                  </td>
				  <th class="fw-bold">Country
                  </th>
                  <td >
                    <?php echo $ipbirthcountry;?>
                  </td>
                  
                </tr>
				
               <!-- <tr>
                  <th class="fw-bold">Remark
                  </th>
                  <td colspan="2">
                    <?php echo $imremarks;?>
                  </td>
                 
                </tr>-->
                <tr >
				 <th class="fw-bold">Heard About Us
                  </th>
                  <td >
                    <?php echo $sourceofinq;?>
                  </td>
                  <th class="fw-bold">Offer Given by Us
                  </th>
                  <td >
                    <?php echo $ipoffer;?>
                  </td>
                 
                </tr>
				
				<tr >
				 <th class="fw-bold">Agent
                  </th>
                  <td >
                    <?php echo $agentname;?>
                  </td>
                  <th class="fw-bold">Reference by 
                  </th>
                  <td >
                    <?php echo $referencename;?>
                  </td>
                 
                </tr>
               
				
               
              </table>
			  </div>
			  </div>
           
													<!--end::Card header-->
													<!--begin::Card body-->
													
													<!--end::Card body-->
												</div>
												<!--end::Payment address-->
												</div>
												<!--begin::Order history-->
											<div class="card card-flush py-4 flex-row-fluid">
												<!--begin::Card header-->
													<div class="card-header cursor-pointer">
														<!--begin::Card title-->
														<div class="card-title m-0">
															<h3 class="fw-bold m-0 text-uppercase">Inquires</h3>
														</div>
														<!--end::Card title-->
														<?php
														if($_SESSION['utype']=='branchmanager' || $_SESSION['utype']=='counseller' || $_SESSION['utype'] == 'admin' || $_SESSION['utype'] == 'receptionist' )
										{
											?>			<!--begin::Action-->
														<a href="#" data-bs-toggle="modal" data-bs-target="#kt_modal_add_user" class="btn btn-sm btn-primary align-self-center"><span class="svg-icon svg-icon-2">
												<svg width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg">
													<rect opacity="0.5" x="11.364" y="20.364" width="16" height="2" rx="1" transform="rotate(-90 11.364 20.364)" fill="currentColor" />
													<rect x="4.36396" y="11.364" width="16" height="2" rx="1" fill="currentColor" />
												</svg>
											</span>Add Inquiry</a>
														<!--end::Action-->
										<?php } ?>
													</div>
												
												<!--end::Card header-->
												<!--begin::Card body-->
												<div class="card-body pt-0">
													<div class="table-responsive">
														<!--begin::Table-->
														<table class="table align-middle table-row-dashed fs-6 gy-5 mb-0">
															<!--begin::Table head-->
															<thead>
																<tr class="text-start text-gray-400 fw-bold fs-7 text-uppercase gs-0">
																	<th class="min-w-100px">Inquiry Date</th>

																	<th class="min-w-70px">Preffered Country</th>
																	<th class="min-w-100px">Preffered Service</th>
																	<th class="min-w-100px">Preffered Sub Service</th>	
																	<th class="min-w-100px">Status</th>
																	<th class="min-w-100px">Stage</th>
																	<th class="min-w-100px">Remarks</th>
																	<th class="min-w-100px">Addedby</th>
																	<th class="min-w-100px">Addedon</th>
																</tr>
															</thead>
															<!--end::Table head-->
															<!--begin::Table body-->
															<tbody class="fw-semibold text-gray-600">
															<?php 
															$_SESSION['frompage']='Inquirydetail';
															$eve11 = "select * from res_studentinquiry_detail where imid=$imid ";
															$re11 = mysqli_query($conn, $eve11);
															while($rt11 = mysqli_fetch_assoc($re11))
															{
																$stiqmid=$rt11['stiqmid'];
																$inquirydate=date("d-m-Y",strtotime($rt11['inquirydate']));
																$siintakemonth=$rt11['siintakemonth'];
																$siintakeyear=$rt11['siintakeyear'];
																$status=$rt11['status'];
												$sistatus=$rt11['sistatus'];
												if($_SESSION['utype'] == 'counseller')
												{
													$status2 = ' <a href="#" data-bs-toggle="modal" data-bs-target="#view-modal1" class="fa fa-edit"  data-id="'.$stiqmid.'" id="getUser1">
												</a>';
												$stagestatus2 =' <a href="#" data-bs-toggle="modal" data-bs-target="#view-modal" class="fa fa-edit"  data-id="'.$stiqmid.'" id="getUser">
												</a>';
												}else{
													$status2 = '';
													$stagestatus2 = '';
												}
																$status=$status.' '.$status2;
																$sistatus=$sistatus.' '.$stagestatus2;
																
																
																
																$intake =$siintakemonth." ".$siintakeyear; 
																$siprefferedcountry=$rt11['siprefferedcountry'];
																$siaddedon=date("d-m-Y",strtotime($rt11['siaddedon']));
																$siaddedby=$rt11['siaddedby'];
																$ufullname='';
																$utype='';
																$evea1 = "select ufullname,utype from res_user_master where umid=$siaddedby";
																$rea1 = mysqli_query($conn, $evea1);
																if(mysqli_num_rows($rea1) > 0)
																{
																	while($rta1 = mysqli_fetch_assoc($rea1))
																	{
																		$ufullname=$rta1['ufullname'];
																		$utype=$rta1['utype'];
																	}
																}
																
																 $eveag1 = "select * from res_country_master where countrymid=$siprefferedcountry";
																$reag1 = mysqli_query($conn, $eveag1);
																if(mysqli_num_rows($reag1) > 0)
																{
																	while($rtag1 = mysqli_fetch_assoc($reag1))
																	{
																		$countryname=$rtag1['countryname'];
																	}
																}
																else
																{
																	$countryname="";
																}

																
																$siremarks=$rt11['siremarks'];
																$siprefferservice=$rt11['siprefferservice'];
																$siprefferedsubservice=$rt11['siprefferedsubservice'];
																			$subservicename ="";
																			 $eves = "select * from res_subservice_master where subservicemid = $siprefferedsubservice ";
																			$res = mysqli_query($conn, $eves);
																			
																			while($rts = mysqli_fetch_assoc($res))

																			{
																				$subservicename = $rts['subservicename'];
																			}
																
																$agentmid=$rt11['agentmid'];
																
																$siprfferedcollege=$rt11['siprfferedcollege'];
																
																if($siprfferedcollege != '')
																{
																 $eveag11 = "select * from res_college_master where collegemid =$siprfferedcollege";
																$reag11 = mysqli_query($conn, $eveag11);
																if(mysqli_num_rows($reag11) > 0)
																{
																	while($rtag11 = mysqli_fetch_assoc($reag11))
																	{
																		$cmname=$rtag11['cmname'];
																	}
																}
																else
																{
																	$cmname="";
																} 
																}else{
																	$cmname="";
																}
																$sipreffercourse=$rt11['sipreffercourse'];
																if($sipreffercourse != '')
																{
																
																$coursename="";
																 $eveag12 = "select * from res_coursename_master where cnmid =$sipreffercourse";
																$reag12 = mysqli_query($conn, $eveag12);
																if(mysqli_num_rows($reag12) > 0)
																{
																	while($rtag12 = mysqli_fetch_assoc($reag12))
																	{
																		$coursename=$rtag12['coursename'];
																	}
																}
																else
																{
																	$coursename="";
																} 
																}else{
																	$coursename="";
																}
																
															
															?>
																<tr>
																	
																	<td><?php echo $inquirydate; ?></td>
																	
																	
																	
																	<td><?php echo $countryname; ?></td>
																	<!--begin::Status--
																	<td>
																		
																		<div class="badge badge-light-success">Completed</div>
																		
																	</td>
																	-end::Status-->
																	
																	<td><?php echo $siprefferservice; ?></td>
																	<td><?php echo $subservicename; ?></td>
																	<td><?php echo $status; ?></td>
																	<td><?php echo $sistatus; ?></td>
																	<td><?php echo $siremarks; ?></td>
																	<td><?php echo $ufullname." (".$utype.")"; ?></td><td><?php echo $siaddedon; ?></td>
																	
																</tr>
															<?php } ?>
																</tbody>
															<!--end::Table head-->
														</table>
														<!--end::Table-->
													</div>
												</div>
												<!--end::Card body-->
											</div>
											<!--end::Order history-->
											
											<?php
											$eve111 = "select * from res_studentinquiry_detail where imid=$imid and siprefferservice = 'Student Visa'";
															$re111 = mysqli_query($conn, $eve111);
															
															if(mysqli_num_rows($re111) > 0)
															{
											?>
											
											<!--begin::Order history-->
											<div class="card card-flush py-4 flex-row-fluid">
												<!--begin::Card header-->
													<div class="card-header cursor-pointer">
														<!--begin::Card title-->
														<div class="card-title m-0">
															<h3 class="fw-bold m-0 text-uppercase">Student Visa Inquiry Data</h3>
														</div>
														<!--end::Card title-->
														<!--begin::Action-->
														
														<!--end::Action-->
													</div>
												
												<!--end::Card header-->
												<!--begin::Card body-->
												<div class="card-body pt-0">
													<div class="table-responsive">
														<!--begin::Table-->
														<table class="table align-middle table-row-dashed fs-6 gy-5 mb-0">
															<!--begin::Table head-->
															<thead>
																<tr class="text-start text-gray-400 fw-bold fs-7 text-uppercase gs-0">
																	<th class="min-w-100px">Inquiry </th>

																	<th class="min-w-70px">Intake</th>
																	
																	<th class="min-w-100px">Preffered College</th>	
																	<th class="min-w-100px">Preffered Course</th>
																	
																</tr>
															</thead>
															<!--end::Table head-->
															<!--begin::Table body-->
															<tbody class="fw-semibold text-gray-600">
															<?php 
															$_SESSION['frompage']='Inquirydetail';
															$eve11 = "select * from res_studentinquiry_detail where imid=$imid and siprefferservice = 'Student Visa'";
															$re11 = mysqli_query($conn, $eve11);
															while($rt11 = mysqli_fetch_assoc($re11))
															{
																$inquirydate=date("d-m-Y",strtotime($rt11['inquirydate']));
																$siintakemonth=$rt11['siintakemonth'];
																$siintakeyear=$rt11['siintakeyear'];
																$sistatus=$rt11['sistatus'];
																$intake =$siintakemonth." ".$siintakeyear; 
																$siprefferedcountry=$rt11['siprefferedcountry'];
																
																
																
																

																
																
																$siprefferservice=$rt11['siprefferservice'];
																$siprefferedsubservice=$rt11['siprefferedsubservice'];
																			
																			 $eves = "select * from res_subservice_master where subservicemid = $siprefferedsubservice ";
																			$res = mysqli_query($conn, $eves);
																			
																			while($rts = mysqli_fetch_assoc($res))

																			{
																				$subservicename = $rts['subservicename'];
																			}
																
																
																
																$siprfferedcollege=$rt11['siprfferedcollege'];
																
																if($siprfferedcollege != '')
																{
																 $eveag11 = "select * from res_college_master where collegemid =$siprfferedcollege";
																$reag11 = mysqli_query($conn, $eveag11);
																if(mysqli_num_rows($reag11) > 0)
																{
																	while($rtag11 = mysqli_fetch_assoc($reag11))
																	{
																		$cmname=$rtag11['cmname'];
																	}
																}
																else
																{
																	$cmname="";
																} 
																}else{
																	$cmname="";
																}
																$sipreffercourse=$rt11['sipreffercourse'];
																if($sipreffercourse != '')
																{
																
																$coursename="";
																 $eveag12 = "select * from res_coursename_master where cnmid =$sipreffercourse";
																$reag12 = mysqli_query($conn, $eveag12);
																if(mysqli_num_rows($reag12) > 0)
																{
																	while($rtag12 = mysqli_fetch_assoc($reag12))
																	{
																		$coursename=$rtag12['coursename'];
																	}
																}
																else
																{
																	$coursename="";
																} 
																}else{
																	$coursename="";
																}
																
															
															?>
																<tr>
																	
																	<td><?php echo $inquirydate."-".$siprefferservice."-".$subservicename; ?></td>
																	
																	
																	
																	<td><?php echo $intake; ?></td>
																	<!--begin::Status--
																	<td>
																		
																		<div class="badge badge-light-success">Completed</div>
																		
																	</td>
																	-end::Status-->
																	
																	<td><?php echo $cmname; ?></td>
																
																	<td><?php echo $coursename; ?></td>
																	
																</tr>
															<?php } ?>
																</tbody>
															<!--end::Table head-->
														</table>
														<!--end::Table-->
													</div>
												</div>
												<!--end::Card body-->
											</div>
											<!--end::Order history-->
															<?php } ?>
											
															
											
											<!--begin::Order history-->
											<div class="card card-flush py-4 flex-row-fluid">
												<!--begin::Card header-->
												<div class="card-header">
													<div class="card-title text-uppercase">
														<h2>Follow Up History</h2>
													</div>
													<!--begin::Add user-->
											<?php
														if($_SESSION['utype']=='branchmanager' || $_SESSION['utype']=='counseller' || $_SESSION['utype'] == 'admin' || $_SESSION['utype'] == 'receptionist' )
										{
											?>		
											<a href="#" data-bs-toggle="modal" data-bs-target="#student_followup" class="btn btn-sm btn-primary align-self-center"><span class="svg-icon svg-icon-2">
												<svg width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg">
													<rect opacity="0.5" x="11.364" y="20.364" width="16" height="2" rx="1" transform="rotate(-90 11.364 20.364)" fill="currentColor" />
													<rect x="4.36396" y="11.364" width="16" height="2" rx="1" fill="currentColor" />
												</svg>
											</span>Add Follow Up</a>
											<!--end::Add user-->
										<?php } ?>
												</div>
												
												<!--end::Card header-->
												<!--begin::Card body-->
												<div class="card-body pt-0">
													<div class="table-responsive">
														<!--begin::Table-->
														<table class="table align-middle table-row-dashed fs-6 gy-5 mb-0">
															<!--begin::Table head-->
															<thead>
																<tr class="text-start text-gray-400 fw-bold fs-7 text-uppercase gs-0">
																	<th class="min-w-100px"> Inquiry</th>
																	<th class="min-w-100px"> DateTime</th>
																	<th class="min-w-175px">Status </th>
																	<th class="min-w-70px">Remarks</th>
																	<th class="min-w-100px">Next Followup </th>
																	<th class="min-w-100px">Note</th>	
																	
																</tr>
															</thead>
															<!--end::Table head-->
															<!--begin::Table body-->
															<tbody class="fw-semibold text-gray-600">
															<?php
							$i=1;
							$eve1 = "select * from res_inquiryfollowup_detail where imid=".$_GET['id'];
							$re1 = mysqli_query($conn, $eve1);
							while($rt1 = mysqli_fetch_assoc($re1))
							{
								$fdate=date("d-m-Y H:i", strtotime($rt1['fdate']));
								$ifaddedon=date("d-m-Y H:i", strtotime($rt1['ifaddedon']));
								
								$fremarks=$rt1['fremarks'];									
								$ifstatus=$rt1['ifstatus'];									
								$ifaddedby=$rt1['ifaddedby'];									
								$ifaddedtype=$rt1['ifaddedtype'];
								$ifnote=$rt1['ifnote'];
								$stiqmid=$rt1['stiqmid'];

									$eve77 = "select ufullname,utype from res_user_master where umid=$ifaddedby";
									$re77 = mysqli_query($conn, $eve77);
									if(mysqli_num_rows($re77) > 0)
									{
										while($rt77 = mysqli_fetch_assoc($re77))
										{
											$ifaddedbyname=$rt77['ufullname'];
										}
									}
									$siprefferservice='';
									$inquirydate='';
									$siprefferservice='';
									$inquirydate='';
									 $eve78 = "select siprefferservice,inquirydate from res_studentinquiry_detail where imid=$imid and stiqmid=$stiqmid";
									$re78 = mysqli_query($conn, $eve78);
									if(mysqli_num_rows($re78) > 0)
									{
										while($rt78 = mysqli_fetch_assoc($re78))
										{
											$siprefferservice=$rt78['siprefferservice'];
											$inquirydate=date("d-m-Y",strtotime($rt78['inquirydate']));
										}
									}
							?>
																<tr>
																	
																	<td><?php echo $siprefferservice."(".$inquirydate.")"; ?></td>
																	<td><?php echo $ifaddedon; ?></td>
																	
																	<td><?php echo $ifstatus; ?></td>
																	
																	<td><?php echo $fremarks; ?></td>
																	<!--begin::Status--
																	<td>
																		
																		<div class="badge badge-light-success">Completed</div>
																		
																	</td>
																	-end::Status-->
																	
																	<td><?php echo $fdate; ?></td>
																	<td><?php echo $ifnote; ?></td>
																	
																	
																</tr>
															<?php } ?>
																</tbody>
															<!--end::Table head-->
														</table>
														<!--end::Table-->
													</div>
												</div>
												<!--end::Card body-->
											</div>
											<!--end::Order history-->
											
											<!--begin::Order history-->
											<div class="card card-flush py-4 flex-row-fluid">
												<!--begin::Card header-->
												<div class="card-header">
													<div class="card-title text-uppercase">
														<h2>Upcoming Follow Up</h2>
													</div>
													<!--begin::Add user-->
											
											
											<!--end::Add user-->
												</div>
												
												<!--end::Card header-->
												<!--begin::Card body-->
												<div class="card-body pt-0">
													<div class="table-responsive">
														<!--begin::Table-->
														<table class="table align-middle table-row-dashed fs-6 gy-5 mb-0">
															<!--begin::Table head-->
															<thead>
																<tr class="text-start text-gray-400 fw-bold fs-7 text-uppercase gs-0">
																	<th class="min-w-100px"> Inquiry Time</th>
																	<th class="min-w-100px"> DateTime</th>
																	
																	<th class="min-w-70px">Remarks</th>
																	<th class="min-w-70px">Added by</th>
																		
																	
																</tr>
															</thead>
															<!--end::Table head-->
															<!--begin::Table body-->
															<tbody class="fw-semibold text-gray-600">
															<?php
							$i=1;
							$eve1 = "select * from res_upcomingfollowup_master where imid=".$_GET['id'];
							$re1 = mysqli_query($conn, $eve1);
							while($rt1 = mysqli_fetch_assoc($re1))
							{
								$ufdate=date("d-m-Y H:i", strtotime($rt1['ufdate']));
								
								
								$ufremark=$rt1['ufremark'];									
																	
								$ufaddedby=$rt1['ufaddedby'];									
								
								
								$stiqmid=$rt1['stiqmid'];

									$eve77 = "select ufullname,utype from res_user_master where umid=$ufaddedby";
									$re77 = mysqli_query($conn, $eve77);
									if(mysqli_num_rows($re77) > 0)
									{
										while($rt77 = mysqli_fetch_assoc($re77))
										{
											$ifaddedbyname=$rt77['ufullname'];
										}
									}
									$siprefferservice='';
									$inquirydate='';
									$siprefferservice='';
									$inquirydate='';
									$eve78 = "select siprefferservice,inquirydate from res_studentinquiry_detail where imid=$imid and stiqmid=$stiqmid";
									$re78 = mysqli_query($conn, $eve78);
									if(mysqli_num_rows($re78) > 0)
									{
										while($rt78 = mysqli_fetch_assoc($re78))
										{
											$siprefferservice=$rt78['siprefferservice'];
											$inquirydate=date("d-m-Y",strtotime($rt78['inquirydate']));
										}
									}
							?>
																<tr>
																	
																	<td><?php echo $siprefferservice."(".$inquirydate.")"; ?></td>
																	<td><?php echo $ufdate; ?></td>
																	
																
																	
																	<td><?php echo $ufremark; ?></td>
																	<td><?php echo $ifaddedbyname; ?></td>
																	
																	
																	
																</tr>
															<?php } ?>
																</tbody>
															<!--end::Table head-->
														</table>
														<!--end::Table-->
													</div>
												</div>
												<!--end::Card body-->
											</div>
											<!--end::Order history-->
											
											</div>
										<!--end::Orders-->
									</div>
									<!--end::Tab pane-->
									<!--begin::Education pane-->
									<div class="tab-pane fade" id="student_education" role="tab-panel">
										<!--begin::Orders-->
										<div class="d-flex flex-column gap-7 gap-lg-10">
											<!--begin::Order history-->
											<div class="card card-flush py-4 flex-row-fluid">
												<!--begin::Card header-->
												<div class="card-header">
													<div class="card-title text-uppercase">
														<h2>Education</h2>
													</div>
													<!--begin::Add user-->
											<?php
														if($_SESSION['utype']=='branchmanager' || $_SESSION['utype']=='counseller' || $_SESSION['utype'] == 'admin' || $_SESSION['utype'] == 'receptionist' )
										{
											?>		
											<a href="#" data-bs-toggle="modal" data-bs-target="#kt_modal_add_education" class="btn btn-sm btn-primary align-self-center"><span class="svg-icon svg-icon-2">
												<svg width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg">
													<rect opacity="0.5" x="11.364" y="20.364" width="16" height="2" rx="1" transform="rotate(-90 11.364 20.364)" fill="currentColor" />
													<rect x="4.36396" y="11.364" width="16" height="2" rx="1" fill="currentColor" />
												</svg>
											</span>Add Education</a>
										<?php } ?>
											
											<!--end::Add user-->
												</div>
												
												<!--end::Card header-->
												<!--begin::Card body-->
												<div class="card-body pt-0">
													<div class="table-responsive">
														<!--begin::Table-->
														<table class="table align-middle table-row-dashed fs-6 gy-5 mb-0">
															<!--begin::Table head-->
															<thead>
																<tr class="text-start text-gray-400 fw-bold fs-7 text-uppercase gs-0">
																	<th class="min-w-100px">Level</th>
																	<th class="min-w-175px">Status </th>
																	<th class="min-w-70px">School/ University</th>
																	<th class="min-w-100px">Department</th>
																	<th class="min-w-100px">Duration</th>	
																	<th class="min-w-100px">Start Date</th>
																	<th class="min-w-100px">End Date</th>
																	<th class="min-w-100px">Percentage</th>
																	<?php if($_SESSION['utype']!='receptionist'){?>
                            <th class="min-w-100px">Operation
                            </th>
							<?php } ?>
																</tr>
															</thead>
															<!--end::Table head-->
															<!--begin::Table body-->
															<tbody class="fw-semibold text-gray-600">
															<?php 
															$eve1 = "select * from res_inquiryeduction_detail where imid=".$_GET['id'];
															$re1 = mysqli_query($conn, $eve1);
															$i=1;
															while($rt1 = mysqli_fetch_assoc($re1))
															{
																$ieuniversity=$rt1['ieuniversity'];
																$iecourse=$rt1['iecourse'];
																$iepercentage=$rt1['iepercentage'];
																$ietypeofcourse=$rt1['ietypeofcourse'];
																$ieduration=$rt1['ieduration'];
																$iestatus=$rt1['iestatus'];
																$ienote=$rt1['ienote'];
																$iefromdate=date('d-m-Y', strtotime($rt1['iefromdate']));
																$ietodate=date('d-m-Y', strtotime($rt1['ietodate']));
																
																							
															?>
																<tr>
																	
																	<td><?php echo $ietypeofcourse; ?></td>
																	
																	<td><?php echo $iestatus; ?></td>
																	
																	<td><?php echo $ieuniversity; ?></td>
																	<!--begin::Status--
																	<td>
																		
																		<div class="badge badge-light-success">Completed</div>
																		
																	</td>
																	-end::Status-->
																	
																	<td><?php echo $iecourse; ?></td>
																	<td><?php echo $ieduration; ?></td>
																	<td><?php echo $iefromdate; ?></td>
																	<td><?php echo $ietodate; ?></td>
																	<td><?php echo $iepercentage; ?></td>
																	<?php if($_SESSION['utype']!='receptionist'){?>
                            <td>
                              <a  href="inquiryallocationdeleteedu.php?id=<?php echo $rt1['iedid']; ?>&&p2=<?php echo $_GET['id'];?>"  onclick='return confirm(&#39;Are you sure you want to delete ?&#39;);' data-toggle='tooltip' data-placement='top' title='Delete' class='far fa-trash-alt fa-lg'>  
                              </a>
                            </td>
							<?php } ?>
																	
																</tr>
															<?php } ?>
																</tbody>
															<!--end::Table head-->
														</table>
														<!--end::Table-->
													</div>
												</div>
												<!--end::Card body-->
											</div>
											<!--end::Order history-->
											<!--begin::Order history-->
											<div class="card card-flush py-4 flex-row-fluid">
												<!--begin::Card header-->
												<div class="card-header">
													<div class="card-title text-uppercase">
														<h2> Entrance Exams Score </h2>
													</div>
													<!--begin::Add user-->
											<?php
														if($_SESSION['utype']=='branchmanager' || $_SESSION['utype']=='counseller' || $_SESSION['utype'] == 'admin' || $_SESSION['utype'] == 'receptionist'  )
										{
											?>		
											<a href="#" data-bs-toggle="modal" data-bs-target="#student_ielts" class="btn btn-sm btn-primary align-self-center"><span class="svg-icon svg-icon-2">
												<svg width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg">
													<rect opacity="0.5" x="11.364" y="20.364" width="16" height="2" rx="1" transform="rotate(-90 11.364 20.364)" fill="currentColor" />
													<rect x="4.36396" y="11.364" width="16" height="2" rx="1" fill="currentColor" />
												</svg>
											</span>Add Details</a>
										<?php } ?>
											<!--end::Add user-->
												</div>
												
												<!--end::Card header-->
												<!--begin::Card body-->
												<div class="card-body pt-0">
													<div class="table-responsive">
														<!--begin::Table-->
														<table class="table align-middle table-row-dashed fs-6 gy-5 mb-0">
															<!--begin::Table head-->
															<thead>
																<tr class="text-start text-gray-400 fw-bold fs-7 text-uppercase gs-0">
																	<th class="min-w-100px"> Test Name</th>
																	<th class="min-w-175px">Listening Score </th>
																	<th class="min-w-70px">Reading Score </th>
																	<th class="min-w-100px">Writing Score </th>
																	<th class="min-w-100px">Speaking Score</th>	
																	<th class="min-w-100px"> Test Date</th>	
																	<th class="min-w-100px"> Expire Date</th>	
																	<th class="min-w-100px">Test Center</th>	
																	<th class="min-w-100px">Report Number</th>
<?php if($_SESSION['utype']!='receptionist'){?>
                            <th class="min-w-100px">Operation
                            </th>
							<?php } ?>																	
																	
																</tr>
															</thead>
															<!--end::Table head-->
															<!--begin::Table body-->
															<tbody class="fw-semibold text-gray-600">
															<?php
							$eve1 = "select * from res_inquiryielts_detail where imid=".$_GET['id'];
							$re1 = mysqli_query($conn, $eve1);
							$i=1;
							while($rt1 = mysqli_fetch_assoc($re1))
							{
								$iieltsdexamdate=implode('-', array_reverse(explode('-', $rt1['iieltsdexamdate'])));
								$iieltsdvalidupto=implode('-', array_reverse(explode('-', $rt1['iieltsdvalidupto'])));
								$iieltsdstatus=$rt1['iieltsdstatus'];
								$iieltsread=$rt1['iieltsread'];
								$iieltswrite=$rt1['iieltswrite'];
								$iieltsspeak=$rt1['iieltsspeak'];
								$iieltslisten=$rt1['iieltslisten'];
								$iieltsoverall=$rt1['iieltsoverall'];
								$iieltstestcenter=$rt1['iieltstestcenter'];
								$iieltsreportnumber=$rt1['iieltsreportnumber'];
								$iieltstestname=$rt1['iieltstestname'];
								$iieltsaddedby=$rt1['iieltsaddedby'];
								$iieltsaddedtype=$rt1['iieltsaddedtype'];
								$iieltsaddedon=date("d-m-Y H:i:s",strtotime($rt1['iieltsaddedon']));
								
								$eve80 = "select ufullname,utype from res_user_master where umid=$iieltsaddedby";
								$re80 = mysqli_query($conn, $eve80);
								$iieltsaddedbyname='';
								if(mysqli_num_rows($re80) > 0)
								{
									while($rt80 = mysqli_fetch_assoc($re80))
									{
										$iieltsaddedbyname=$rt80['ufullname'];
									}
								}
							?>
																<tr>
																	
																	<td><?php echo $iieltstestname; ?></td>
																	
																	<td><?php echo $iieltslisten; ?></td>
																	
																	<td><?php echo $iieltsread; ?></td>
																	<!--begin::Status--
																	<td>
																		
																		<div class="badge badge-light-success">Completed</div>
																		
																	</td>
																	-end::Status-->
																	
																	<td><?php echo $iieltswrite; ?></td>
																	<td><?php echo $iieltsspeak; ?></td>
																	<td><?php echo $iieltsdexamdate; ?></td>
																	<td><?php echo $iieltsdvalidupto; ?></td>
																	
																	<td><?php echo $iieltstestcenter; ?></td>
																	<td><?php echo $iieltsreportnumber; ?></td>
																	
																	<?php if($_SESSION['utype']!='receptionist'){?>
                            <td>
                              <a  href="inquiryallocationdeleteielts.php?id=<?php echo $rt1['iieltsdid']; ?>&&p2=<?php echo $_GET['id'];?>" onclick='return confirm(&#39;Are you sure you want to delete ?&#39;);' data-toggle='tooltip' data-placement='top' title='Delete' class='far fa-trash-alt fa-lg'>  
                              </a>
                            </td>
							<?php } ?>
																</tr>
															<?php } ?>
																</tbody>
															<!--end::Table head-->
														</table>
														<!--end::Table-->
													</div>
												</div>
												<!--end::Card body-->
											</div>
											<!--end::Order history-->
											<!--begin::Order history-->
											<div class="card card-flush py-4 flex-row-fluid">
												<!--begin::Card header-->
												<div class="card-header">
													<div class="card-title text-uppercase">
														<h2> Experience </h2>
													</div>
													<!--begin::Add user-->
											<?php
														if($_SESSION['utype']=='branchmanager' || $_SESSION['utype']=='counseller' || $_SESSION['utype'] == 'admin' || $_SESSION['utype'] == 'receptionist' )
										{
											?>		
											<a href="#" data-bs-toggle="modal" data-bs-target="#student_experience" class="btn btn-sm btn-primary align-self-center"><span class="svg-icon svg-icon-2">
												<svg width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg">
													<rect opacity="0.5" x="11.364" y="20.364" width="16" height="2" rx="1" transform="rotate(-90 11.364 20.364)" fill="currentColor" />
													<rect x="4.36396" y="11.364" width="16" height="2" rx="1" fill="currentColor" />
												</svg>
											</span>Add Details</a>
										<?php } ?>
											<!--end::Add user-->
												</div>
												
												<!--end::Card header-->
												<!--begin::Card body-->
												<div class="card-body pt-0">
													<div class="table-responsive">
														<!--begin::Table-->
														<table class="table align-middle table-row-dashed fs-6 gy-5 mb-0">
															<!--begin::Table head-->
															<thead>
																<tr class="text-start text-gray-400 fw-bold fs-7 text-uppercase gs-0">
																	<th class="min-w-100px">Company Name</th>
																	<th class="min-w-175px">Designation </th>
																	<th class="min-w-70px">Duration </th>
																	<th class="min-w-100px">Country</th>
																	<th class="min-w-100px">City</th>	
																	<th class="min-w-100px"> Start Date</th>	
																	<th class="min-w-100px"> End Date</th>	
																	<?php if($_SESSION['utype']!='receptionist'){?>
                            <th class="min-w-100px">Operation
                            </th>
							<?php } ?>	
																	
																</tr>
															</thead>
															<!--end::Table head-->
															<!--begin::Table body-->
															<tbody class="fw-semibold text-gray-600">
															<?php
							
							$eve1 = "select * from res_inquiryexperience_detail where imid=".$_GET['id'];
							$re1 = mysqli_query($conn, $eve1);
							$i=1;
							while($rt1 = mysqli_fetch_assoc($re1))
							{
								$iexpfromdate=implode('-', array_reverse(explode('-', $rt1['iexpfromdate'])));
								$iexptodate=implode('-', array_reverse(explode('-', $rt1['iexptodate'])));
								$iexpcompanyname=$rt1['iexpcompanyname'];
								
								$iexpdesignation=$rt1['iexpdesignation'];
								$iexpduration=$rt1['iexpduration'];
								$iexpcountry=$rt1['iexpcountry'];
								$iexpcity=$rt1['iexpcity'];
								
							
							?>
																<tr>
																	
																	<td><?php echo $iexpcompanyname; ?></td>
																	
																	<td><?php echo $iexpdesignation; ?></td>
																	
																	<td><?php echo $iexpduration; ?></td>
																	<!--begin::Status--
																	<td>
																		
																		<div class="badge badge-light-success">Completed</div>
																		
																	</td>
																	-end::Status-->
																	
																	<td><?php echo $iexpcountry; ?></td>
																	<td><?php echo $iexpcity; ?></td>
																	<td><?php echo $iexpfromdate; ?></td>
																	<td><?php echo $iexptodate; ?></td>
																	<?php if($_SESSION['utype']!='receptionist'){?>
                            <td>
                              <a  href="inquiryallocationdeleteexp.php?id=<?php echo $rt1['iexpdid']; ?>&&p2=<?php echo $_GET['id'];?>"  onclick='return confirm(&#39;Are you sure you want to delete ?&#39;);' data-toggle='tooltip' data-placement='top' title='Delete' class='far fa-trash-alt fa-lg'>
                              </a>
                            </td>
							<?php } ?>
																	
																	
																</tr>
															<?php } ?>
																</tbody>
															<!--end::Table head-->
														</table>
														<!--end::Table-->
													</div>
												</div>
												<!--end::Card body-->
											</div>
											<!--end::Order history-->
											
											</div>
										<!--end::Orders-->
									</div>
									<!--end::Education pane-->
									<!--begin::Tab pane-->
									<div class="tab-pane fade" id="student_councelling" role="tab-panel">
										<div class="d-flex flex-column gap-7 gap-lg-10">
											<?php if($_SESSION['utype'] !='branchmanager' &&   $_SESSION['utype'] != 'admin' && $_SESSION['utype'] != 'receptionist'){?>
										<!--begin::Order history-->
											<div class="card card-flush py-4 flex-row-fluid">
												<!--begin::Card header-->
												<div class="card-header">
													<div class="card-title text-uppercase">
														<h2>My Task</h2>
													</div>
													
												</div>
												
												<!--end::Card header-->
												<!--begin::Card body-->
												<div class="card-body pt-0">
													<div class="table-responsive">
														<!--begin::Table-->
														<table class="table align-middle table-row-dashed fs-6 gy-5 mb-0">
															<!--begin::Table head-->
															<thead>
																<tr class="text-start text-gray-400 fw-bold fs-7 text-uppercase gs-0">
																	<th class="min-w-100px">Inquiry</th>
																	<th class="min-w-100px">Staff</th>
																	<th class="min-w-100px">work</th>
																	<th class="min-w-100px">Status</th>
																	<th class="min-w-175px">Added By </th>
																	<th class="min-w-70px">Added Person</th>
																	
																	
																</tr>
															</thead>
															<!--end::Table head-->
															<!--begin::Table body-->
															<tbody class="fw-semibold text-gray-600">
															<?php 
															$eve1 = "select * from res_counsellor_detail,res_user_master  where res_counsellor_detail.counsellorid=res_user_master.umid and res_counsellor_detail.imid=".$_GET['id']." and res_counsellor_detail.counsellorid=".$_SESSION['umid'] ;
															$re1 = mysqli_query($conn, $eve1);
															$i=1;
															while($rt1 = mysqli_fetch_assoc($re1))
															{
																$coudid =$rt1['coudid'];
																$ufullname=$rt1['ufullname'];
																$utype=$rt1['utype'];
																$codaddedby=$rt1['codaddedby'];
																$costatus=$rt1['costatus'];
																$codaddedtype=$rt1['codaddedtype'];
																$stiqmid=$rt1['stiqmid'];
																$codaddedon=date("d-m-Y H:i:s",strtotime($rt1['codaddedon']));
																
																$eve79 = "select ufullname from res_user_master where umid=$codaddedby";
																$re79 = mysqli_query($conn, $eve79);
																$codaddedbyname='';
																if(mysqli_num_rows($re79) > 0)
																{
																	while($rt79 = mysqli_fetch_assoc($re79))
																	{
																		$codaddedbyname=$rt79['ufullname'];
																	}
																}
																$stiqmid=$rt1['stiqmid'];
																$siprefferservice='';
									$inquirydate='';
									$eve78 = "select siprefferservice,inquirydate from res_studentinquiry_detail where imid=$imid and stiqmid=$stiqmid";
									$re78 = mysqli_query($conn, $eve78);
									if(mysqli_num_rows($re78) > 0)
									{
										while($rt78 = mysqli_fetch_assoc($re78))
										{
											$siprefferservice=$rt78['siprefferservice'];
											$inquirydate=date("d-m-Y",strtotime($rt78['inquirydate']));
										}
									}
																
																if($costatus=="Pending")
				{
					
					$costatus1="<span class='badge  badge-warning'>Pending</span>";
				}
				else if($costatus=="In Process")
				{
					
					/* $costatus1="<a href='complainstatus.php?id=".$rt['cmid']."' ><span class='label  label-danger'>In Process</span></a>"; */
					
					$costatus1="<span class='badge  badge-info'>In Process</span>";
				}
				 else if($costatus=="Completed")
				{
					
					$costatus1="<span class='badge  badge-success'>Completed</span>";
				}else if($costatus=="Hold")
				{
					
					$costatus1="<span class='badge  badge-primary'>Hold</span>";
				}
				else if($costatus=="Allocated")
				{
					
					$costatus1="<a href='complainstatus.php?id=".$rt['cmid']."' ><span class='badge  badge-danger'>Cancel</span></a>";
				} 
				else
				{
					$costatus1="<span class='badge   badge-default'>$costatus</span>";
				}	

															$start='';
				$hold='';
				$completed='';
				$rate='';
				
				if($costatus == 'Pending' || $costatus == 'Hold'){
                $start = "<a href='taskoperation.php?sid=".$rt1['coudid']."&id=".$_GET['id']."'  >Start</a>";
				}else if($costatus == 'In Process'){
                $hold = "<a href='taskoperation.php?hid=".$rt1['coudid']."&id=".$_GET['id']."'   >Hold</a>";
                $completed = "<a href='taskoperation.php?cid=".$rt1['coudid']."&id=".$_GET['id']."' >Completed</a>";
				}else if($costatus == 'Completed'){
				$completed = "Completed";
				
				
				}
				$op=$start."&nbsp;&nbsp;&nbsp; ".$hold."&nbsp;&nbsp;&nbsp;".$completed;
				
															?>
																<tr>
																	<td><?php echo $siprefferservice."(".$inquirydate.")"; ?></td>
																	<td><?php echo $ufullname." (".$utype.")"; ?></td>
																	<td><?php echo $op; ?></td><td><?php echo $costatus1; ?></td>
																	
																	<td><?php echo $codaddedtype; ?></td>
																	
																	<td><?php echo $codaddedbyname; ?></td>
																	<!--begin::Status--
																	<td>
																		
																		<div class="badge badge-light-success">Completed</div>
																		
																	</td>
																	-end::Status-->
																	
																	
																	
																	
																</tr>
															<?php } ?>
																</tbody>
															<!--end::Table head-->
														</table>
														<!--end::Table-->
													</div>
												</div>
												<!--end::Card body-->
											</div>
											<!--end::Order history-->
											<?php } ?>
										<?php if($_SESSION['utype']=='branchmanager' || $_SESSION['utype']=='counseller' || $_SESSION['utype'] == 'admin' || $_SESSION['utype'] == 'receptionist'){?>
											<!--begin::Order history-->
											<div class="card card-flush py-4 flex-row-fluid">
												<!--begin::Card header-->
												<div class="card-header">
													<div class="card-title text-uppercase">
														<h2>Task Allocation</h2>
													</div>
													<?php if($_SESSION['utype'] =='admin' || $_SESSION['utype']=='branchmanager' || $_SESSION['utype'] =='counseller' || $_SESSION['utype'] == 'receptionist'){?>
													<!--begin::Add user-->
											
											<a href="#" data-bs-toggle="modal" data-bs-target="#kt_modal_add_councelling" class="btn btn-sm btn-primary align-self-center"><span class="svg-icon svg-icon-2">
												<svg width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg">
													<rect opacity="0.5" x="11.364" y="20.364" width="16" height="2" rx="1" transform="rotate(-90 11.364 20.364)" fill="currentColor" />
													<rect x="4.36396" y="11.364" width="16" height="2" rx="1" fill="currentColor" />
												</svg>
											</span>Add </a>
											<!--end::Add user-->
											<?php } ?>
												</div>
												
												<!--end::Card header-->
												<!--begin::Card body-->
												<div class="card-body pt-0">
													<div class="table-responsive">
														<!--begin::Table-->
														<table class="table align-middle table-row-dashed fs-6 gy-5 mb-0">
															<!--begin::Table head-->
															<thead>
																<tr class="text-start text-gray-400 fw-bold fs-7 text-uppercase gs-0">
																	<th class="min-w-100px">Inquiry</th>
																	<th class="min-w-100px">Staff</th>
																	
																	<th class="min-w-100px">Status</th>
																	<th class="min-w-100px">Added by </th>
																	<th class="min-w-175px">Updated By </th>
																	
																	<?php if($_SESSION['utype']!='receptionist' || $_SESSION['utype']!='agent'){?>
																	<th class="min-w-100px">Operation</th>
																	<?php } ?>
																	
																</tr>
															</thead>
															<!--end::Table head-->
															<!--begin::Table body-->
															<tbody class="fw-semibold text-gray-600">
															<?php 
															$eve1 = "select * from res_counsellor_detail,res_user_master  where res_counsellor_detail.counsellorid=res_user_master.umid and  res_counsellor_detail.codaddedby =".$_SESSION['umid']." and res_counsellor_detail.imid=".$_GET['id'];
															$re1 = mysqli_query($conn, $eve1);
															$i=1;
															while($rt1 = mysqli_fetch_assoc($re1))
															{
																$coudid =$rt1['coudid'];
																$ufullname=$rt1['ufullname'];
																$utype=$rt1['utype'];
																$coupdatedby=$rt1['coupdatedby'];
																$codaddedby=$rt1['codaddedby'];
																$costatus=$rt1['costatus'];
																$codaddedtype=$rt1['codaddedtype'];
																$stiqmid=$rt1['stiqmid'];
																$coupdatedon=date("d-m-Y H:i:s",strtotime($rt1['coupdatedon']));
																
																$eve79 = "select ufullname from res_user_master where umid=$coupdatedby";
																$re79 = mysqli_query($conn, $eve79);
																$codaddedbyname='';
																$coupdatedbyname='';
																if(mysqli_num_rows($re79) > 0)
																{
																	while($rt79 = mysqli_fetch_assoc($re79))
																	{
																		$coupdatedbyname=$rt79['ufullname'];
																	}
																}
																$stiqmid=$rt1['stiqmid'];
																$codaddedtype=$rt1['codaddedtype'];
																
																$codaddedon=date("d-m-Y H:i:s",strtotime($rt1['codaddedon']));
																
																$eve79 = "select ufullname from res_user_master where umid=$codaddedby";
																$re79 = mysqli_query($conn, $eve79);
																$codaddedbyname='';
																if(mysqli_num_rows($re79) > 0)
																{
																	while($rt79 = mysqli_fetch_assoc($re79))
																	{
																		$codaddedbyname=$rt79['ufullname'];
																	}
																}
																$siprefferservice='';
									$inquirydate='';
									$eve78 = "select siprefferservice,inquirydate from res_studentinquiry_detail where imid=$imid and stiqmid=$stiqmid";
									$re78 = mysqli_query($conn, $eve78);
									if(mysqli_num_rows($re78) > 0)
									{
										while($rt78 = mysqli_fetch_assoc($re78))
										{
											$siprefferservice=$rt78['siprefferservice'];
											$inquirydate=date("d-m-Y",strtotime($rt78['inquirydate']));
										}
									}
																
																if($costatus=="Pending")
				{
					
					$costatus1="<span class='badge  badge-warning'>Pending</span>";
				}
				else if($costatus=="In Process")
				{
					
					/* $costatus1="<a href='complainstatus.php?id=".$rt['cmid']."' ><span class='label  label-danger'>In Process</span></a>"; */
					
					$costatus1="<span class='badge  badge-info'>In Process</span>";
				}
				 else if($costatus=="Completed")
				{
					
					$costatus1="<span class='badge  badge-success'>Completed</span>";
				}else if($costatus=="Hold")
				{
					
					$costatus1="<span class='badge  badge-primary'>Hold</span>";
				}
				else if($costatus=="Allocated")
				{
					
					$costatus1="<a href='complainstatus.php?id=".$rt['cmid']."' ><span class='badge  badge-danger'>Cancel</span></a>";
				} 
				else
				{
					$costatus1="<span class='badge   badge-default'>$costatus</span>";
				}	

															$start='';
				$hold='';
				$completed='';
				$rate='';
				
				if($costatus == 'Pending'){
                $start = "<a href='taskoperation.php?sid=".$rt1['coudid']." id='start'>Start</a>";
				}else if($costatus == 'In Process'){
                $hold = "<a href='taskoperation.php?hid=".$rt1['coudid']."& id='hold'>Hold</a>";
                $completed = "<a href='taskoperation.php?cid=".$rt1['coudid']." id='completed'>Completed</a>";
				}else if($costatus == 'Completed'){
				$completed = "Completed";
				
				
				}
				$op=$start."&nbsp;&nbsp;&nbsp; ".$hold."&nbsp;&nbsp;&nbsp;".$completed;
				
															?>
																<tr>
																	<td><?php echo $siprefferservice."(".$inquirydate.")"; ?></td>
																	<td><?php echo $ufullname." (".$utype.")"; ?></td>
																	<td><?php echo $costatus1; ?></td>
																	
																	
																	
																	<td><?php echo $codaddedbyname."-".$codaddedon; ?></td>
																	
																	<td><?php echo $coupdatedbyname."-".$coupdatedon; ?></td>
																	<!--begin::Status--
																	<td>
																		
																		<div class="badge badge-light-success">Completed</div>
																		
																	</td>
																	-end::Status-->
																	
																	<?php if($_SESSION['utype']!='receptionist'){?>
                            <td>
                              <a  href="inquiryallocationdelete.php?id=<?php echo $rt1['coudid']; ?>&&p2=<?php echo $_GET['id'];?>"  onclick='return confirm(&#39;Are you sure you want to delete ?&#39;);' data-toggle='tooltip' data-placement='top' title='Delete' class='far fa-trash-alt fa-lg'>
                              </a>
                            </td>
							<?php }  ?>
																	
																	
																</tr>
															<?php } ?>
																</tbody>
															<!--end::Table head-->
														</table>
														<!--end::Table-->
													</div>
												</div>
												<!--end::Card body-->
											</div>
											
											<!--end::Order history-->
											<?php } ?>
											
									
											
											
						</div>
						</div>
						
									<!--end::Tab pane-->
								<!--begin::Tab pane-->
									<div class="tab-pane fade" id="student_document" role="tab-panel">
										<!--begin::Orders-->
										<div class="d-flex flex-column gap-7 gap-lg-10">
											<!--begin::Order history-->
											<div class="card card-flush py-4 flex-row-fluid">
												<!--begin::Card header-->
												<div class="card-header">
													<div class="card-title">
														<h2>Common Documents</h2>
													</div>
													<?php if($_SESSION['utype']!='receptionist' || $_SESSION['utype']!='agent'){?>
													<!--begin::Add user-->
											
											<a href="#" data-bs-toggle="modal" data-bs-target="#kt_modal_add_document1" class="btn btn-sm btn-primary align-self-center"><span class="svg-icon svg-icon-2">
												<svg width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg">
													<rect opacity="0.5" x="11.364" y="20.364" width="16" height="2" rx="1" transform="rotate(-90 11.364 20.364)" fill="currentColor" />
													<rect x="4.36396" y="11.364" width="16" height="2" rx="1" fill="currentColor" />
												</svg>
											</span>Add </a>
											<!--end::Add user-->
											<?php } ?>
												</div>
												
												<!--end::Card header-->
												<!--begin::Card body-->
												<div class="card-body pt-0">
													<div class="table-responsive">
														<!--begin::Table-->
														<table class="table align-middle table-row-dashed fs-6 gy-5 mb-0">
															<!--begin::Table head-->
															<thead>
																<tr class="text-start text-gray-400 fw-bold fs-7 text-uppercase gs-0">
																	<th>Sr No
																		</th>
																		<th>Document
																		</th>
																		<th>Download
																		</th>
																		<th>Added By
																		</th>
																		 <?php if($_SESSION['utype']!='receptionist'){?>
																		<th>Operation
																		</th>
																		 <?php } ?>
																	
																</tr>
															</thead>
															<!--end::Table head-->
															<!--begin::Table body-->
															<tbody class="fw-semibold text-gray-600">
															
															 <?php
$eve1 = "select * from res_inquirydocs_detail,res_commondocument_master,res_inquirydocs_master where res_commondocument_master.documentmid = res_inquirydocs_detail.idmid and res_inquirydocs_master.idmid = res_inquirydocs_detail.idmid  and res_inquirydocs_detail.stiqmid = 0 and res_inquirydocs_detail.imid=".$_GET['id'];
$re1 = mysqli_query($conn, $eve1);
$i=1;
while($rt1 = mysqli_fetch_assoc($re1))
{
$documentmid=$rt1['documentmid'];
$iddocname=$rt1['iddocname'];
$idmname=$rt1['idmname'];

$idaddedby=$rt1['idaddedby'];
$ifaddedbyname='';
$eve77 = "select ufullname,utype from res_user_master where umid=$idaddedby";
									$re77 = mysqli_query($conn, $eve77);
									if(mysqli_num_rows($re77) > 0)
									{
										while($rt77 = mysqli_fetch_assoc($re77))
										{
											$ifaddedbyname=$rt77['ufullname'];
										}
									}
									
									$idaddedon=date("d-m-Y",strtotime($rt1['idaddedon']));
																
									$addedby=$ifaddedbyname."(".$idaddedon.")";
?>						
														
																<tr>
																	
																	 <td>
                              <?php echo $i++;?>
                            </td>
                            <td>
                              <?php echo $idmname;?>
                            </td>
                            <td>
                              <a href='./docs/<?php echo $iddocname;?>' target="_blank">Download Now
                              </a>
                            </td>
							  <td>
                              <?php echo $addedby;?>
                            </td>
							 <?php if($_SESSION['utype']!='receptionist'){?>
                            <td>
                              <a  href="inquiryallocationdeletedocs1.php?id=<?php echo $rt1['iddid']; ?>&&p2=<?php echo $_GET['id'];?>" onclick='return confirm(&#39;Are you sure you want to delete ?&#39;);' data-toggle='tooltip' data-placement='top' title='Delete' class='far fa-trash-alt fa-lg'> 
                              </a>
                            </td>
							 <?php } ?>
																	
																	
																</tr>
															<?php } ?>
																</tbody>
															<!--end::Table head-->
														</table>
														<!--end::Table-->
													</div>
												</div>
												<!--end::Card body-->
											</div>
											<!--end::Order history-->
											
											
											<?php 
															
															$eve311 = "select * from res_studentinquiry_detail where imid=$imid ";
															$re311 = mysqli_query($conn, $eve311);
															while($rt311 = mysqli_fetch_assoc($re311))
															{
																
																$siprefferservice=$rt311['siprefferservice'];$siprefferedsubservice=$rt311['siprefferedsubservice'];
																			$subservicename ="";
																			$countryname ="";
																			$eves = "select subservicename from res_subservice_master where subservicemid = $siprefferedsubservice ";
																			$res = mysqli_query($conn, $eves);
																			
																			while($rts = mysqli_fetch_assoc($res))

																			{
																				$subservicename = $rts['subservicename'];
																			}
																			
																			
																			$siprefferedcountry=$rt311['siprefferedcountry'];
																			
																			$evec = "select * from  res_country_master where countrymid = $siprefferedcountry ";
																			$rec = mysqli_query($conn, $evec);
																			
																			while($rtc = mysqli_fetch_assoc($rec))

																			{
																				$countryname = $rtc['countryname'];
																			}
																			
																			
																			$stiqmid =$rt311['stiqmid'];
																				$inquirydate=date("d-m-Y",strtotime($rt311['inquirydate']));
																				
																				
																?>
											<!--begin::Order history-->
											<div class="card card-flush py-4 flex-row-fluid">
												<!--begin::Card header-->
												<div class="card-header">
													<div class="card-title text-uppercase">
														<h2>Documents for <?php echo $siprefferservice." - ".$subservicename." - ".$countryname." (".$inquirydate.")"; ?></h2>
													</div>
													<?php if($_SESSION['utype'] =='documentmanager' || $_SESSION['utype'] =='accountmanager' || $_SESSION['utype'] =='counseller' || $_SESSION['utype'] == 'admin' || $_SESSION['utype']=='branchmanager'){?>
													<!--begin::Add user-->
											
											<a href="#" data-bs-toggle="modal" data-id="<?php echo $stiqmid; ?>" data-bs-target="#kt_modal_add_document" class="btn btn-sm btn-primary align-self-center" id="documentadd"><span class="svg-icon svg-icon-2">
												<svg width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg">
													<rect opacity="0.5" x="11.364" y="20.364" width="16" height="2" rx="1" transform="rotate(-90 11.364 20.364)" fill="currentColor" />
													<rect x="4.36396" y="11.364" width="16" height="2" rx="1" fill="currentColor" />
												</svg>
											</span>Add </a>
											<!--end::Add user-->
											<?php } ?>
												</div>
												
												<!--end::Card header-->
												<!--begin::Card body-->
												<div class="card-body pt-0">
													<div class="table-responsive">
														<!--begin::Table-->
														<table class="table align-middle table-row-dashed fs-6 gy-5 mb-0">
															<!--begin::Table head-->
															<thead>
																<tr class="text-start text-gray-400 fw-bold fs-7 text-uppercase gs-0">
																	<th>Sr No
																		</th>
																		<th>InquiryTime
																		</th><th>Document
																		</th>
																		<th>Download
																		</th>
																		<th>Added By
																		</th>
																		 <?php if($_SESSION['utype']!='receptionist'){?>
																		<th>Operation
																		</th>
																		 <?php } ?>
																	
																</tr>
															</thead>
															<!--end::Table head-->
															<!--begin::Table body-->
															<tbody class="fw-semibold text-gray-600">
															
															 <?php
$eve1 = "select * from res_inquirydocs_detail,res_inquirydocs_master where res_inquirydocs_master.idmid = res_inquirydocs_detail.idmid and res_inquirydocs_detail.stiqmid=$stiqmid and res_inquirydocs_detail.imid=".$_GET['id'];
$re1 = mysqli_query($conn, $eve1);
$i=1;
while($rt1 = mysqli_fetch_assoc($re1))
{
$idmid=$rt1['idmid'];
$iddocname=$rt1['iddocname'];
$idmname=$rt1['idmname'];
$stiqmid=$rt1['stiqmid'];
$idaddedby=$rt1['idaddedby'];
$ifaddedbyname='';
$eve77 = "select ufullname,utype from res_user_master where umid=$idaddedby";
									$re77 = mysqli_query($conn, $eve77);
									if(mysqli_num_rows($re77) > 0)
									{
										while($rt77 = mysqli_fetch_assoc($re77))
										{
											$ifaddedbyname=$rt77['ufullname'];
										}
									}
									
$idaddedon=date("d-m-Y",strtotime($rt1['idaddedon']));
																$siprefferservice='';
									$inquirydate='';
									$eve78 = "select siprefferservice,inquirydate from res_studentinquiry_detail where imid=$imid and stiqmid=$stiqmid";
									$re78 = mysqli_query($conn, $eve78);
									if(mysqli_num_rows($re78) > 0)
									{
										while($rt78 = mysqli_fetch_assoc($re78))
										{
											 $siprefferservice=$rt78['siprefferservice'];
											$inquirydate=date("d-m-Y",strtotime($rt78['inquirydate']));
										}
									}
									$addedby=$ifaddedbyname."(".$idaddedon.")";
?>						
														
																<tr>
																<td>
                              <?php echo $i++;?>
                            </td>
																	<td><?php echo $siprefferservice."(".$inquirydate.")"; ?></td>
																	 
                            <td>
                              <?php echo $idmname;?>
                            </td>
                            <td>
                              <a href='./docs/<?php echo $iddocname;?>' target="_blank">Download Now
                              </a>
                            </td>
							  <td>
                              <?php echo $addedby;?>
                            </td>
							 <?php if($_SESSION['utype']!='receptionist'){?>
                            <td>
                              <a  href="inquiryallocationdeletedocs.php?id=<?php echo $rt1['iddid']; ?>&&p2=<?php echo $_GET['id'];?>" onclick='return confirm(&#39;Are you sure you want to delete ?&#39;);' data-toggle='tooltip' data-placement='top' title='Delete' class='far fa-trash-alt fa-lg'> 
                              </a>
                            </td>
							 <?php } ?>
																	
																	
																</tr>
															<?php } ?>
																</tbody>
															<!--end::Table head-->
														</table>
														<!--end::Table-->
													</div>
												</div>
												<!--end::Card body-->
											</div>
											<!--end::Order history-->
											<?php 
															}
																?>
											</div>
										<!--end::Orders-->
						</div>
									<!--end::Tab pane-->
								<!--begin::Payments-->
									<div class="tab-pane fade" id="student_payment" role="tab-panel">
									<!--begin::Orders-->
										<div class="d-flex flex-column gap-7 gap-lg-10">
										<!--begin::Service-->
											<div class="card card-flush py-4 flex-row-fluid">
												<!--begin::Card header-->
												<div class="card-header">
													<div class="card-title text-uppercase">
														<h2>Service Payments</h2>
													</div>
													<!--begin::Add user-->
											<?php
														if( $_SESSION['utype']=='counseller' || $_SESSION['utype'] == 'admin' || $_SESSION['utype']=='branchmanager' || $_SESSION['utype'] == 'receptionist' )
										{
											?>		
											<a href="#" data-bs-toggle="modal" data-bs-target="#student_service" class="btn btn-sm btn-primary align-self-center"><span class="svg-icon svg-icon-2">
												<svg width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg">
													<rect opacity="0.5" x="11.364" y="20.364" width="16" height="2" rx="1" transform="rotate(-90 11.364 20.364)" fill="currentColor" />
													<rect x="4.36396" y="11.364" width="16" height="2" rx="1" fill="currentColor" />
												</svg>
											</span>Add Service</a>
										<?php } ?>
											<!--end::Add user-->
												</div>
												
												<!--end::Card header-->
												<!--begin::Card body-->
												<div class="card-body pt-0">
													<div class="table-responsive">
														<!--begin::Table-->
														<table class="table align-middle table-row-dashed fs-6 gy-5 mb-0">
															<!--begin::Table head-->
															<thead>
																<tr class="text-start text-gray-400 fw-bold fs-7 text-uppercase gs-0">
																	<th class="min-w-100px"> Inquiry Time</th>
																	<th class="min-w-100px"> Purpose</th>
																	<th class="min-w-175px">Fees </th>
																	<th class="min-w-175px">Recevied Amount </th>
																	<th class="min-w-175px">Pending Amount </th>
																	<th class="min-w-100px">Addedby</th>
<th class="min-w-100px">Addedon</th>
																	
																</tr>
															</thead>
															<!--end::Table head-->
															<!--begin::Table body-->
															<tbody class="fw-semibold text-gray-600">
															<?php
							$i=1;
							$eve1 = "select * from res_inquiryservice_detail where imid=".$_GET['id'];
							$re1 = mysqli_query($conn, $eve1);
							while($rt1 = mysqli_fetch_assoc($re1))
							{
								
								
								$servicefees=$rt1['servicefees'];									
								
								$stiqmid=$rt1['stiqmid'];
								$ispurpose=$rt1['ispurpose'];
								$isreceviedamt=$rt1['isreceviedamt'];
								$ispendingamount=$rt1['ispendingamount'];

									$isaddedon=date("d-m-Y",strtotime($rt1['isaddedon']));
$isaddedby=$rt1['isaddedby'];

$ufullname='';
$utype='';
 $evea2 = "select ufullname,utype from res_user_master where umid=$isaddedby";
$rea2 = mysqli_query($conn, $evea2);
if(mysqli_num_rows($rea2) > 0)
{
	while($rta2 = mysqli_fetch_assoc($rea2))
	{
		$ufullname=$rta2['ufullname'];
		$utype=$rta2['utype'];
	}
}
									
									
									$siprefferservice='';
									$inquirydate='';
									$eve78 = "select siprefferservice,inquirydate from res_studentinquiry_detail where imid=$imid and stiqmid=$stiqmid";
									$re78 = mysqli_query($conn, $eve78);
									if(mysqli_num_rows($re78) > 0)
									{
										while($rt78 = mysqli_fetch_assoc($re78))
										{
											$siprefferservice=$rt78['siprefferservice'];
											$inquirydate=date("d-m-Y",strtotime($rt78['inquirydate']));
										}
									}
									
									
							?>
																<tr>
																	
																	<td><?php echo $siprefferservice."(".$inquirydate.")"; ?></td>
																	<td><?php echo $ispurpose; ?></td>
																	
																	<td><?php echo $servicefees; ?></td>
																	<td><?php echo $isreceviedamt; ?></td>
																	<td><?php echo $ispendingamount; ?></td>
																	<td><?php echo $ufullname." (".$utype.")"; ?></td>
<td><?php echo $isaddedon; ?></td>
																	
																	
																	
																</tr>
															<?php } ?>
																</tbody>
															<!--end::Table head-->
														</table>
														<!--end::Table-->
													</div>
												</div>
												<!--end::Card body-->
											</div>
											<!--end::Service-->
											<!--begin::Payment-->
											<div class="card card-flush py-4 flex-row-fluid">
												<!--begin::Card header-->
												<div class="card-header">
													<div class="card-title text-uppercase">
														<h2>Payment Receipt</h2>
													</div>
													<!--begin::Add user-->
											<?php
														if( $_SESSION['utype']=='counseller' ||  $_SESSION['utype']=='accountmanager' || $_SESSION['utype'] == 'admin' || $_SESSION['utype']=='branchmanager')
										{
											?>		
											<a href="#" data-bs-toggle="modal" data-bs-target="#student_add_payment" class="btn btn-sm btn-primary align-self-center"><span class="svg-icon svg-icon-2">
												<svg width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg">
													<rect opacity="0.5" x="11.364" y="20.364" width="16" height="2" rx="1" transform="rotate(-90 11.364 20.364)" fill="currentColor" />
													<rect x="4.36396" y="11.364" width="16" height="2" rx="1" fill="currentColor" />
												</svg>
											</span>Add </a>
										<?php } ?>
											<!--end::Add user-->
												</div>
												
												<!--end::Card header-->
												<!--begin::Card body-->
												<div class="card-body pt-0">
													<div class="table-responsive">
														<!--begin::Table-->
														<table class="table align-middle table-row-dashed fs-6 gy-5 mb-0">
															<!--begin::Table head-->
															<thead>
																<tr class="text-start text-gray-400 fw-bold fs-7 text-uppercase gs-0">
																	 <th>Sr No.
                            </th>
                            <th>Service
                            </th>
							<th>Company
                            </th>
							<th>Bank
                            </th>
                            <th>Received  Amount
                            </th>
                            <th>Payment Date
                            </th>
                            <th>Payment Mode
                            </th>
                            <th>Remarks
                            </th>
							<th class="min-w-100px">Addedby</th>
<th class="min-w-100px">Addedon</th>
							 <?php if($_SESSION['utype']!='agent'){
							if($_SESSION['utype']!='receptionist'){?>
                            <th>Operation
                            </th>
							 <?php }} ?>
																	
																	
																</tr>
															</thead>
															<!--end::Table head-->
															<!--begin::Table body-->
															<tbody class="fw-semibold text-gray-600">
															<?php
															$i=1;
															$tt1=0;
															$evepay = "select * from res_payments_detail where imid=".$_GET['id'];
															$repay = mysqli_query($conn, $evepay);
															$i=1;
															while($rtpay = mysqli_fetch_assoc($repay))
															{
															$pddid=$rtpay['pddid'];
															$isdid=$rtpay['isdid'];
															$imid=$rtpay['imid'];
															$companymid=$rtpay['companymid'];
															$bankmid=$rtpay['bankmid'];
															$paidamount=$rtpay['paidamount'];
															$paydate=date("d-m-Y", strtotime($rtpay['paydate']));
															$paymode=$rtpay['paymode'];
															
															 $eve25 = "select paymentmodename  from res_paymentmode_master where paymentmodemid='$paymode'";
															$re25 = mysqli_query($conn, $eve25);
															$paymentmodename=0;
															while($rt25 = mysqli_fetch_assoc($re25))
															{
															$paymentmodename=$rt25['paymentmodename'];
															}
															
															
															$payremark=$rtpay['payremark'];
															$pdaddedon=date("d-m-Y",strtotime($rtpay['pdaddedon']));
$pdaddedby=$rtpay['pdaddedby'];

$ufullname='';
$utype='';
$evea1 = "select ufullname,utype from res_user_master where umid=$pdaddedby";
$rea1 = mysqli_query($conn, $evea1);
if(mysqli_num_rows($rea1) > 0)
{
	while($rta1 = mysqli_fetch_assoc($rea1))
	{
		$ufullname=$rta1['ufullname'];
		$utype=$rta1['utype'];
	}
}
															$total=0;
															
															$eve21 = "select sum(paidamount) as total from res_payments_detail where imid=$imid";
															$re21 = mysqli_query($conn, $eve21);
															$total=0;
															while($rt21 = mysqli_fetch_assoc($re21))
															{
															$total=$rt21['total'];
															}
															
															$eve22 = "select companyname  from res_company_master where companymid=$companymid";
															$re22 = mysqli_query($conn, $eve22);
															$companyname=0;
															while($rt22 = mysqli_fetch_assoc($re22))
															{
															$companyname=$rt22['companyname'];
															}
															
															$eve23 = "select bankname  from res_bank_master where bankmid=$bankmid";
															$re23= mysqli_query($conn, $eve23);
															$bankname=0;
															while($rt23 = mysqli_fetch_assoc($re23))
															{
															$bankname=$rt23['bankname'];
															}
															
															
															$eve212="select * from res_inquiryservice_detail where  isdid=$isdid";
															$re212=mysqli_query($conn,$eve212);
															$servicename="";
															while($rt212= mysqli_fetch_assoc($re212))
															{
															$ispurpose=$rt212['ispurpose'];
															}
															$evepd = "select *, sum(servicefees) as totalamount from res_inquiryservice_detail where imid=$imid";
															$repd = mysqli_query($conn, $evepd);
															$servicefees=0;
															$totalamount=0;
															while($rtpd = mysqli_fetch_assoc($repd))
															{
															$servicefees=$rtpd['servicefees'];
															$totalamount=$rtpd['totalamount'];
															}
															$tt1=$totalamount-$total;
															?>
																<tr>
																	
																	 <td>
                              <?php echo $i++;?>
                            </td>
                            <td>
                              <?php echo $ispurpose;?>
                            </td>
							<td>
                              <?php echo $companyname;?>
                            </td> 
							<td>
                              <?php echo $bankname;?>
                            </td>
                            <td>
                              <?php echo $paidamount;?>
                            </td>
                            <td>
                              <?php echo $paydate;?>
                            </td>
                            <td>
                              <?php echo $paymentmodename;?>
                            </td>
                            <td>
                              <?php echo $payremark;?>
                            </td>
							<td><?php echo $ufullname." (".$utype.")"; ?></td>
<td><?php echo $pdaddedon; ?></td>
							 <?php if($_SESSION['utype']!='agent'){
							if($_SESSION['utype']!='receptionist'){?>
                            <td>
                             	
							  <a href="paymentdetaildelete.php?id=<?php echo $rtpay['pddid']; ?>&&p3=<?php echo $_GET['id'];?>" onclick='return confirm(&#39;Are you sure you want to delete ?&#39;);' data-toggle='tooltip' data-placement='top' title='Delete' class='far fa-trash-alt fa-lg'>  
                          </a>
                          </td>
							 <?php }} ?>
																	
																</tr>
															<?php } ?>
																</tbody>
															<!--end::Table head-->
														</table>
														<!--end::Table-->
													</div>
												</div>
												<!--end::Card body-->
											</div>
											<!--end::Payment--></div>
											<!--end::Payment-->
											</div>
									<!--end::Payments-->
								<!--begin::Application-->
									<div class="tab-pane fade" id="student_application" role="tab-panel">
									<!--begin::Orders-->
										<div class="d-flex flex-column gap-7 gap-lg-10">
										<!--begin::Service-->
											<div class="card card-flush py-4 flex-row-fluid">
												<!--begin::Card header-->
												<div class="card-header">
													<div class="card-title text-uppercase">
														<h2>Course Finder</h2>
													</div>
													<!--begin::Add user-->
											<?php
														if( $_SESSION['utype']=='counseller' || $_SESSION['utype'] == 'admin' || $_SESSION['utype']=='branchmanager')
										{
											?>		
											<a href="#" data-bs-toggle="modal" data-bs-target="#add_student_course" class="btn btn-sm btn-primary align-self-center"><span class="svg-icon svg-icon-2">
												<svg width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg">
													<rect opacity="0.5" x="11.364" y="20.364" width="16" height="2" rx="1" transform="rotate(-90 11.364 20.364)" fill="currentColor" />
													<rect x="4.36396" y="11.364" width="16" height="2" rx="1" fill="currentColor" />
												</svg>
											</span>Add New</a>
										<?php } ?>
											<!--end::Add user-->
												</div>
												
												<!--end::Card header-->
												<!--begin::Card body-->
												<div class="card-body pt-0">
													<div class="table-responsive">
														<!--begin::Table-->
														<table class="table align-middle table-row-dashed fs-6 gy-5 mb-0">
															<!--begin::Table head-->
															<thead>
																<tr class="text-start text-gray-400 fw-bold fs-7 text-uppercase gs-0">
																	<th class="min-w-100px"> Inquiry Time</th>
																	<th class="min-w-100px"> Country</th>
																	<th class="min-w-175px">College </th>
																	<th class="min-w-175px">Course </th>
																	<th class="min-w-175px">Remarks </th>
																	<th class="min-w-100px">Addedby</th>
<th class="min-w-100px">Addedon</th>
																	
																</tr>
															</thead>
															<!--end::Table head-->
															<!--begin::Table body-->
															<tbody class="fw-semibold text-gray-600">
															<?php
							$i=1;
							$eve1 = "select * from res_counselling_detail where imid=".$_GET['id'];
							$re1 = mysqli_query($conn, $eve1);
							while($rt11 = mysqli_fetch_assoc($re1))
							{
								$stiqmid=$rt11['stiqmid'];
									$siprefferservice='';
									$inquirydate='';
									$eve78 = "select siprefferservice,inquirydate from res_studentinquiry_detail where imid=$imid and stiqmid=$stiqmid";
									$re78 = mysqli_query($conn, $eve78);
									if(mysqli_num_rows($re78) > 0)
									{
										while($rt78 = mysqli_fetch_assoc($re78))
										{
											$siprefferservice=$rt78['siprefferservice'];
											$inquirydate=date("d-m-Y",strtotime($rt78['inquirydate']));
										}
									}
									
									$cdid=$rt11['cdid'];

														$countrymid=$rt11['countrymid'];
														$coursemid=$rt11['coursemid'];
														$collegemid=$rt11['collegemid'];
														//$codate=implode('-', array_reverse(explode('-', $rt11['codate'])));
														//$codate=implode('/', array_reverse(explode('/', $rt11['codate'])));
														$coremarks=$rt11['coremarks'];

														$eve13 = "select * from res_coursename_master where cnmid in(select cnmid from res_course_master where coursemid=$coursemid)";
														$re13 = mysqli_query($conn, $eve13);
														$coursename="";
														while($rt13 = mysqli_fetch_assoc($re13))
														{
														$coursename=$rt13['coursename'];
														}	
														$eve14 = "select * from res_college_master where collegemid=$collegemid";
														$re14 = mysqli_query($conn, $eve14);
														$cmname="";
														while($rt14 = mysqli_fetch_assoc($re14))
														{
														$cmname=$rt14['cmname'];
														}	
														$eve15 = "select * from res_country_master where countrymid=$countrymid";
														$re15 = mysqli_query($conn, $eve15);
														$countryname="";
														while($rt15 = mysqli_fetch_assoc($re15))
														{
														$countryname=$rt15['countryname'];
														}			
																				
														$cdaddedon='';	
														$cdaddedon=date("d-m-Y",strtotime($rt11['cdaddedon']));
														$cdaddedby=$rt11['cdaddedby'];

														$ufullname='';
														$utype='';
														$evea1 = "select ufullname,utype from res_user_master where umid=$cdaddedby";
														$rea1 = mysqli_query($conn, $evea1);
														if(mysqli_num_rows($rea1) > 0)
														{
														while($rta1 = mysqli_fetch_assoc($rea1))
														{
															$ufullname=$rta1['ufullname'];
															$utype=$rta1['utype'];
														}
														}														
									
							?>
																<tr>
																	
																	<td><?php echo $siprefferservice."(".$inquirydate.")"; ?></td>
																	<td><?php echo $countryname; ?></td>
																	
																	<td><?php echo $cmname; ?></td>
																	<td><?php echo $coursename; ?></td>
																	<td><?php echo $coremarks; ?></td>
																	
																	<td><?php echo $ufullname." (".$utype.")"; ?></td>
<td><?php echo $cdaddedon; ?></td>

																	
																	
																	
																</tr>
															<?php } ?>
																</tbody>
															<!--end::Table head-->
														</table>
														<!--end::Table-->
													</div>
												</div>
												<!--end::Card body-->
											</div>
											<!--end::Service-->
											<!--begin::Payment-->
											<div class="card card-flush py-4 flex-row-fluid">
												<!--begin::Card header-->
												<div class="card-header">
													<div class="card-title text-uppercase">
														<h2>College Application</h2>
													</div>
													<!--begin::Add user-->
											<?php
														if( $_SESSION['utype']=='counseller' || $_SESSION['utype'] == 'admin' || $_SESSION['utype']=='branchmanager')
										{
											?>		
											<a href="#" data-bs-toggle="modal" data-bs-target="#student_add_college_application" class="btn btn-sm btn-primary align-self-center"><span class="svg-icon svg-icon-2">
												<svg width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg">
													<rect opacity="0.5" x="11.364" y="20.364" width="16" height="2" rx="1" transform="rotate(-90 11.364 20.364)" fill="currentColor" />
													<rect x="4.36396" y="11.364" width="16" height="2" rx="1" fill="currentColor" />
												</svg>
											</span>Add </a>
										<?php } ?>
											<!--end::Add user-->
												</div>
												
												<!--end::Card header-->
												<!--begin::Card body-->
												<div class="card-body pt-0">
													<div class="table-responsive">
														<!--begin::Table-->
														<table class="table align-middle table-row-dashed fs-6 gy-5 mb-0">
															<!--begin::Table head-->
															<thead>
																<tr class="text-start text-gray-400 fw-bold fs-7 text-uppercase gs-0">
																	 <th>Sr No.
                            </th>
                            <th>Inquiry
                            </th>
							<th>Country
                            </th>
							<th>Course
                            </th>
							<th>College
                            </th>
                            <th>Remark
                            </th>
                            <th>Course Fees
                            </th>
                            <th>Status
                            </th>
                            <th>Student Date
                            </th>
							<th class="min-w-100px">Addedby</th>
<th class="min-w-100px">Addedon</th>
							 <?php if($_SESSION['utype']!='agent'){
							if($_SESSION['utype']!='receptionist'){?>
                            <th>Operation
                            </th>
							 <?php }} ?>
																	
																	
																</tr>
															</thead>
															<!--end::Table head-->
															<!--begin::Table body-->
															<tbody class="fw-semibold text-gray-600">
															<?php
															$i=1;
															$tt1=0;
															$evepay = "select * from res_collegeapp_master where imid=".$_GET['id'];
															$repay = mysqli_query($conn, $evepay);
															$i=1;
															while($rtpay = mysqli_fetch_assoc($repay))
															{
															$coursefees=$rtpay['coursefees'];
								$statusmid=$rtpay['statusmid'];
								$stiqmid=$rtpay['stiqmid'];
								$siprefferservice='';
									$inquirydate='';
									$eve78 = "select siprefferservice,inquirydate from res_studentinquiry_detail where imid=$imid and stiqmid=$stiqmid";
									$re78 = mysqli_query($conn, $eve78);
									if(mysqli_num_rows($re78) > 0)
									{
										while($rt78 = mysqli_fetch_assoc($re78))
										{
											$siprefferservice=$rt78['siprefferservice'];
											$inquirydate=date("d-m-Y",strtotime($rt78['inquirydate']));
										}
									}
								$coursemid=$rtpay['coursemid'];
								$capstatus=$rtpay['capstatus'];
								$collegemid=$rtpay['collegemid'];
								$countrymid=$rtpay['countrymid'];
								$coremarks=$rtpay['coremarks'];
								$doapplication=implode('-', array_reverse(explode('-', $rtpay['doapplication'])));
								
								
								
								
								$eve13 = "select * from res_coursename_master where cnmid in(select cnmid from res_course_master where coursemid=$coursemid)";
								$re13 = mysqli_query($conn, $eve13);
								$coursename="";
								while($rt13 = mysqli_fetch_assoc($re13))
								{
									$coursename=$rt13['coursename'];
								}	
								
								$eve14 = "select * from res_college_master where collegemid=$collegemid";
								$re14 = mysqli_query($conn, $eve14);
								$cmname="";
								while($rt14 = mysqli_fetch_assoc($re14))
								{
									$cmname=$rt14['cmname'];
								}	
								
								$eve15 = "select * from res_country_master where countrymid=$countrymid";
								$re15 = mysqli_query($conn, $eve15);
								$countryname="";
								while($rt15 = mysqli_fetch_assoc($re15))
								{
									$countryname=$rt15['countryname'];
								}
								
								$capaddedon='';	
														$capaddedon=date("d-m-Y",strtotime($rtpay['capaddedon']));
														$capaddedby=$rtpay['capaddedby'];

														$ufullname='';
														$utype='';
														$evea1 = "select ufullname,utype from res_user_master where umid=$capaddedby";
														$rea1 = mysqli_query($conn, $evea1);
														if(mysqli_num_rows($rea1) > 0)
														{
														while($rta1 = mysqli_fetch_assoc($rea1))
														{
															$ufullname=$rta1['ufullname'];
															$utype=$rta1['utype'];
														}
														}
															?>
																<tr>
																	
																	 <td>
                              <?php echo $i++;?>
                            </td>
							<td><?php echo $siprefferservice."(".$inquirydate.")"; ?></td>
																	<td><?php echo $countryname; ?></td>
                            <td>
                              <?php echo $coursename;?>
                            </td>
							<td>
                              <?php echo $cmname;?>
                            </td> 
							<td>
                              <?php echo $coremarks;?>
                            </td>
                            <td>
                              <?php echo $coursefees;?>
                            </td>
                            <td>
                              <?php echo $capstatus;?>
                            </td>
                            <td>
                              <?php echo $doapplication;?>
                            </td>
                           
							<td><?php echo $ufullname." (".$utype.")"; ?></td>
<td><?php echo $capaddedon; ?></td>
							<?php if($_SESSION['utype']!='agent'){
							if($_SESSION['utype']!='receptionist'){?>
                            <td>
                              <a  href="clgapplicationdelete.php?id=<?php echo $rtpay['clgappmid']; ?>&&p3=<?php echo $_GET['id'];?>" onclick='return confirm(&#39;Are you sure you want to delete ?&#39;);' data-toggle='tooltip' data-placement='top' title='Delete' class='fa fa-trash-o fa-lg'>  
                              </a>
                            </td>
							<?php }} ?>
																	
																</tr>
															<?php } ?>
																</tbody>
															<!--end::Table head-->
														</table>
														<!--end::Table-->
													</div>
												</div>
												<!--end::Card body-->
											</div>
											<!--end::Payment-->
											</div>
									<!--end::Application--></div>
									<!--end::Application-->
								<!--begin::Tab pane-->
									<div class="tab-pane fade" id="student_familydetail" role="tab-panel">
									<!--begin::Family Members-->
											<div class="card card-flush py-4 flex-row-fluid">
												<!--begin::Card header-->
													<div class="card-header cursor-pointer">
														<!--begin::Card title-->
														<div class="card-title m-0">
															<h3 class="fw-bold m-0 text-uppercase">Family Members</h3>
														</div>
														<!--end::Card title-->
														<!--begin::Action-->
														<?php
														if($_SESSION['utype']=='branchmanager' || $_SESSION['utype']=='counseller' || $_SESSION['utype'] == 'admin'  )
										{
											?>		
														<a href="#" data-bs-toggle="modal" data-bs-target="#kt_modal_add_family" class="btn btn-sm btn-primary align-self-center"><span class="svg-icon svg-icon-2">
												<svg width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg">
													<rect opacity="0.5" x="11.364" y="20.364" width="16" height="2" rx="1" transform="rotate(-90 11.364 20.364)" fill="currentColor" />
													<rect x="4.36396" y="11.364" width="16" height="2" rx="1" fill="currentColor" />
												</svg>
											</span>Add </a>
										<?php } ?>
														<!--end::Action-->
													</div>
												
												<!--end::Card header-->
												<!--begin::Card body-->
												<div class="card-body pt-0">
													<div class="table-responsive">
														<!--begin::Table-->
														<table class="table align-middle table-row-dashed fs-6 gy-5 mb-0">
															<!--begin::Table head-->
															<thead>
																<tr class="text-start text-gray-400 fw-bold fs-7 text-uppercase gs-0">
																	<th class="min-w-100px">Name</th>
																	<th class="min-w-175px">Relation</th>
																	<th class="min-w-70px">Gender</th>
																	<th class="min-w-100px">Contact Numer</th>
																	<th class="min-w-100px">Email</th>	
																	<th class="min-w-100px">City</th>
																	
																</tr>
															</thead>
															<!--end::Table head-->
															<!--begin::Table body-->
															<tbody class="fw-semibold text-gray-600">
															<?php 
															$eve14 = "select * from res_leadfamily_detail where imid=$imid";
															$re14 = mysqli_query($conn, $eve14);
															while($rt14= mysqli_fetch_assoc($re14))
															{
																
																$lfname=$rt14['lfname'];
																$lfmiddlename=$rt14['lfmiddlename'];
																$lfsurname=$rt14['lfsurname'];
																$name =$lfname." ".$lfmiddlename." ".$lfsurname; 
																$lfgender=$rt14['lfgender'];
																$lfmobile=$rt14['lfmobile'];
																$lfcity=$rt14['lfcity'];
																$lfemail=$rt14['lfemail'];
																$lfrelation=$rt14['lfrelation'];
																
																 

																
																
															
															?>
																<tr>
																	
																	<td><?php echo $name; ?></td>
																	
																	<td><?php echo $lfrelation; ?></td>
																	
																	<td><?php echo $lfgender; ?></td>
																	<td><?php echo $lfmobile; ?></td>
																	<!--begin::Status--
																	<td>
																		
																		<div class="badge badge-light-success">Completed</div>
																		
																	</td>
																	-end::Status-->
																	
																	<td><?php echo $lfemail; ?></td>
																	<td><?php echo $lfcity; ?></td>
																	
																	
																</tr>
															<?php } ?>
																</tbody>
															<!--end::Table head-->
														</table>
														<!--end::Table-->
													</div>
												</div>
												<!--end::Card body-->
											</div>
											<!--end::Family Member-->
											
											</div>
									<!--end::Tab pane-->
								
								</div>
								<!--end::Tab content-->
								
							</div>
							<!--end::Order details page-->
						</div>
						<!--end::Container-->
					</div>
					<!--end::Content-->
					<!--begin::Footer-->
					<?php include('footer.php'); ?>
					<!--end::Footer-->
				</div>
				<!--end::Wrapper-->
			</div>
			<!--end::Page-->
		</div>
		<!--end::Root-->
		<!--begin::Drawers-->
		
		<!--begin::Engage modals-->
		<!--end::Engage modals-->
		<!--begin::Modal - Add task-->
										<!--begin::Modal - Inquiry-->
							<div class="modal fade" id="kt_modal_add_user" tabindex="-1" aria-hidden="true">
								<!--begin::Modal dialog-->
								<div class="modal-dialog modal-dialog-centered mw-750px">
									<!--begin::Modal content-->
									<div class="modal-content rounded">
										<!--begin::Modal header-->
										
										<div class="modal-header pb-10 border-0 ">
										<div class="card-title text-uppercase ">
														<h2>Add Inquiry</h2>
													</div>
											<!--begin::Close-->
											<div class="btn btn-sm btn-icon btn-active-color-primary justify-content-end" data-bs-dismiss="modal">
												<!--begin::Svg Icon | path: icons/duotune/arrows/arr061.svg-->
												<span class="svg-icon svg-icon-1">
													<svg width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg">
														<rect opacity="0.5" x="6" y="17.3137" width="16" height="2" rx="1" transform="rotate(-45 6 17.3137)" fill="currentColor" />
														<rect x="7.41422" y="6" width="16" height="2" rx="1" transform="rotate(45 7.41422 6)" fill="currentColor" />
													</svg>
												</span>
												<!--end::Svg Icon-->
											</div>
											<!--end::Close-->
										</div>
										<!--begin::Modal header-->
										<!--begin::Modal body-->
										<div class="modal-body scroll-y px-10 px-lg-15 pt-0 pb-15">
											<!--begin::Form-->
														<form id="kt_modal_add_user_form1" class="form" action="studentinquiryadd2.php" method="POST">
														<input type="hidden" name="imid" value="<?php echo $imid; ?>">
															<!--begin::Scroll-->
															
																<div class="row row-cols-1 row-cols-sm-2 rol-cols-md-1 row-cols-lg-2">
													<!--begin::Col-->
													<div class="col-md-12 fv-row">
																	<!--begin::Input group-->
																<div class="fv-row mb-7">
																	<!--begin::Label-->
																	<label class="required fw-semibold fs-6 mb-2">Inquiry Date</label>
																	<!--end::Label-->
																	<!--begin::Input-->
																	<input class="form-control form-control-solid fw-bold pe-5" placeholder="Select date" name="inquirydate" id="kt_daterangepicker_2"/>
																	<!--end::Input-->
																</div>
																<!--end::Input group-->
																
													<!--end::Col-->
																</div>
																<!--begin::Col-->
													<div class="col-md-12 fv-row">
																<!--begin::Input group-->
																<div class="fv-row mb-7">
																	<!--begin::Label-->
																	<label class="required fw-semibold fs-6 mb-2">Status </label>
																	<!--end::Label-->
																	<!--begin::Input-->
																	<select class="form-select form-select-solid" data-control="select2"   name="status" >
															<option value="Open" selected>Open</option>
															<option value="Closed" >Closed</option>
															
													</select>
																	<!--end::Input-->
																</div>
																<!--end::Input group-->
																</div>
													<!--end::Col-->
													</div>
																					<!--begin::Row-->
												<div class="row row-cols-1 row-cols-sm-2 rol-cols-md-1 row-cols-lg-2">
													<!--begin::Col-->
													<div class="col-md-6 fv-row">
																<!--begin::Input group-->
																<div class="fv-row mb-7">
																	<!--begin::Label-->
																	<label class="required fw-semibold fs-6 mb-2">Preferred Services </label>
																	<!--end::Label-->
																	<!--begin::Input-->
																	<select class="form-select form-select-solid" data-control="select2"   name="siprefferservice" id="siprefferservice" >
																	<option value="0">Select</option>
													<?php 
																			$eve1 = "select * from res_visatype_master";

																			$re1 = mysqli_query($conn, $eve1);
																			
																			while($rt1 = mysqli_fetch_assoc($re1))

																			{											
																				
																				
																				
																				
																				$visatype=$rt1['visatype'];
																				
																				echo "<option value='$visatype'>$visatype</option>";
																				 
																			}
																			
																	?>
													</select>
																	<!--end::Input-->
																</div>
																<!--end::Input group-->
																</div>
													<!--end::Col-->
													
													<!--begin::Col-->
													<div class="col-md-6 fv-row" id="subservice1">
																<!--begin::Input group-->
																<div class="fv-row mb-7">
																	<!--begin::Label-->
																	<label class="required fw-semibold fs-6 mb-2">Preffered Sub Service</label>
																	<!--end::Label-->
																	<!--begin::Input-->
																	<select class="form-select form-select-solid" data-control="select2"   name="siprefferedsubservice" id="subservice">
												<option value="0">Select</option>
													</select>
																	<!--end::Input-->
																</div>
																<!--end::Input group-->
																</div>
													<!--end::Col-->
													</div>
												<!--end::Row-->
												
																<!--begin::Row-->
												<div class="row row-cols-1 row-cols-sm-2 rol-cols-md-1 row-cols-lg-2" id="intake">
													
													<!--begin::Col-->
													<div class="col-md-6 fv-row" >
																<!--begin::Input group-->
																<div class="fv-row mb-7">
																	<!--begin::Label-->
																	<label class=" fw-semibold fs-6 mb-2">Intake Month</label>
																	<!--end::Label-->
																	<!--begin::Input-->
																	<select class="form-select form-select-solid" data-control="select2"   name="siintakemonth" >
													<option value="January">January</option>
																	<option value="February">February</option>
																	<option value="March">March</option>
																	<option value="April">April</option>
																	<option value="May">May</option>
																	<option value="June">June</option>
																	<option value="July">July</option>
																	<option value="August">August</option>
																	<option value="September">September</option>
																	<option value="October">October</option>
																	<option value="November">November</option>
																	<option value="December">December</option>
													</select>
																	<!--end::Input-->
																</div>
																<!--end::Input group-->
																</div>
													<!--end::Col-->
													<!--begin::Col-->
													<div class="col-md-6 fv-row">
																<!--begin::Input group-->
																<div class="fv-row mb-7">
																	<!--begin::Label-->
																	<label class="required fw-semibold fs-6 mb-2">Intake Year</label>
																	<!--end::Label-->
																	<!--begin::Input-->
																	<select class="form-select form-select-solid" data-control="select2"   name="siintakeyear" id="siintakeyear">
													<?php
																		
																		for($i=2020;$i<=2030;$i++)
																		{																	
																			echo "<option value='$i'> $i </option>";
																				
																		}?>
													</select>
																	<!--end::Input-->
																</div>
																<!--end::Input group-->
																</div>
													<!--end::Col-->
													</div>
												<!--end::Row-->
															<!--begin::Row-->
												<div class="row row-cols-1 row-cols-sm-3 rol-cols-md-1 row-cols-lg-3" id="">
													<!--begin::Col-->
													<div class="col-md-6 fv-row">
																<!--begin::Input group-->
																<div class="fv-row mb-7">
																	<!--begin::Label-->
																	<label class="required fw-semibold fs-6 mb-2">Preffere Country</label>
																	<!--end::Label-->
																	<!--begin::Input-->
																	<select class="form-select form-select-solid" data-control="select2"   name="siprefferedcountry" id="countrymid4">
																	<option value="0">Select</option>
													<?php 
																			$eve = "select * from res_country_master";

																			$re = mysqli_query($conn, $eve);
																			
																			while($rt = mysqli_fetch_assoc($re))

																			{											
																				
																				
																				
																				$countryname=$rt['countryname'];
																				$countrymid=$rt['countrymid'];
																				
																				echo "<option value='$countrymid'>$countryname</option>";
																				 
																			}
																			
																	?>
													</select>
																	<!--end::Input-->
																</div>
																<!--end::Input group-->
																</div>
													<!--end::Col-->
													
													<!--begin::Col-->
													<div class="col-md-6 fv-row" id="college">
																<!--begin::Input group-->
																<div class="fv-row mb-7">
																	<!--begin::Label-->
																	<label class=" fw-semibold fs-6 mb-2">Preferred College </label>
																	<!--end::Label-->
																	<!--begin::Input-->
																	<select class="form-select form-select-solid" data-control="select2"   name="siprfferedcollege" id="collegmid">
																	<option value="0">Select</option>
													<?php 
																			$eve1 = "select * from res_college_master";

																			$re1 = mysqli_query($conn, $eve1);
																			
																			while($rt1 = mysqli_fetch_assoc($re1))

																			{											
																				
																				
																				
																				$collegemid  =$rt1['collegemid'];
																				$cmname=$rt1['cmname'];
																				
																				echo "<option value='$collegemid'>$cmname</option>";
																				 
																			}
																			
																	?>
													</select>
																	<!--end::Input-->
																</div>
																<!--end::Input group-->
																</div>
													<!--end::Col-->
													<!--begin::Col-->
													<div class="col-md-6 fv-row" id="course">
																<!--begin::Input group-->
																<div class="fv-row mb-7">
																	<!--begin::Label-->
																	<label class=" fw-semibold fs-6 mb-2">Preferred Course </label>
																	<!--end::Label-->
																	<!--begin::Input-->
																	<select class="form-select form-select-solid" data-control="select2"   name="sipreffercourse" id="sipreffercourse">
																	<option value="0">Select</option>
													<?php 
																			$eve1 = "select * from res_coursename_master";

																			$re1 = mysqli_query($conn, $eve1);
																			
																			while($rt1 = mysqli_fetch_assoc($re1))

																			{											
																				
																				
																				
																				$cnmid =$rt1['cnmid'];
																				$coursename=$rt1['coursename'];
																				
																				echo "<option value='$cnmid'>$coursename</option>";
																				 
																			}
																			
																	?>
													</select>
																	<!--end::Input-->
																</div>
																<!--end::Input group-->
																</div>
													<!--end::Col-->
													</div>
													
												<!--end::Row-->
																<!--begin::Row-->
												

<!--begin::Input group-->
																<div class="fv-row mb-7">
																	<!--begin::Label-->
																	<label class=" fw-semibold fs-6 mb-2">Remarks/Notes</label>
																	<!--end::Label-->
																	<!--begin::Input-->
																	<textarea class="form-control form-control-solid fw-bold pe-5"  name="siremarks" /></textarea>
																	<!--end::Input-->
																</div>
																<!--end::Input group-->															
															<!--end::Scroll-->
															<!--begin::Actions-->
															<div class="text-center pt-15">
																<button type="reset" class="btn btn-light me-3" data-kt-users-modal-action="cancel" data-bs-dismiss="modal" data-bs-dismiss="modal">Discard</button>
																<button type="submit" class="btn btn-primary" data-kt-users-modal-action="submit">
																	<span class="indicator-label">Submit</span>
																	<span class="indicator-progress">Please wait...
																	<span class="spinner-border spinner-border-sm align-middle ms-2"></span></span>
																</button>
															</div>
															
															<!--end::Actions-->
														</form>
														<!--end::Form-->
													</div>
										<!--end::Modal body-->
									</div>
									<!--end::Modal content-->
								</div>
								<!--end::Modal dialog-->
							</div>
							<!--end::Modal - Inquiry-->
							<!--begin::Modal - Family Member-->
							<div class="modal fade" id="kt_modal_add_family" tabindex="-1" aria-hidden="true">
								<!--begin::Modal dialog-->
								<div class="modal-dialog modal-dialog-centered mw-750px">
									<!--begin::Modal content-->
									<div class="modal-content rounded">
										<!--begin::Modal header-->
										<div class="modal-header pb-0 border-0 ">
										<div class="card-title text-uppercase ">
														<h2>Add Femily Member</h2>
													</div>
											<!--begin::Close-->
											<div class="btn btn-sm btn-icon btn-active-color-primary justify-content-end" data-bs-dismiss="modal">
												<!--begin::Svg Icon | path: icons/duotune/arrows/arr061.svg-->
												<span class="svg-icon svg-icon-1">
													<svg width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg">
														<rect opacity="0.5" x="6" y="17.3137" width="16" height="2" rx="1" transform="rotate(-45 6 17.3137)" fill="currentColor" />
														<rect x="7.41422" y="6" width="16" height="2" rx="1" transform="rotate(45 7.41422 6)" fill="currentColor" />
													</svg>
												</span>
												<!--end::Svg Icon-->
											</div>
											<!--end::Close-->
										</div>
										<!--begin::Modal header-->
										<!--begin::Modal body-->
										<div class="modal-body scroll-y px-10 px-lg-15 pt-0 pb-15">
											<!--begin::Form-->
														<form id="kt_modal_add_user_form3" class="form" action="studentfamilyadd2.php" method="POST">
														<input type="hidden" name="imid" value="<?php echo $imid; ?>">
															<!--begin::Scroll-->
															
																<!--begin::Row-->
												<div class="row row-cols-1 row-cols-sm-3 rol-cols-md-1 row-cols-lg-3">
													<!--begin::Col-->
													<div class="col">
														<!--begin::Input group-->
														<div class="fv-row mb-7">
															<!--begin::Label-->
															<label class="fs-6 fw-semibold form-label mt-3">
																<span class="required">Name</span>
																<i class="fas fa-exclamation-circle ms-1 fs-7" data-bs-toggle="tooltip" title="Enter Name"></i>
															</label>
															<!--end::Label-->
															<!--begin::Input-->
															<div class="w-100">
																<div class="form-floating border rounded">
															<input type="text" class="form-control form-control-solid" name="lfname" value="" required>
													</div>
													</div>
															<!--end::Input-->
														</div>
														<!--end::Input group-->
													</div>
													<!--end::Col-->
													<!--begin::Col-->
													<div class="col">
														<!--begin::Input group-->
														<div class="fv-row mb-7">
															<!--begin::Label-->
															<label class="fs-6 fw-semibold form-label mt-3">
																<span class="required">Middle Name</span>
																<i class="fas fa-exclamation-circle ms-1 fs-7" data-bs-toggle="tooltip" title="Enter Middle Name"></i>
															</label>
															<!--end::Label-->
															<!--begin::Input-->
															<div class="w-100">
																<div class="form-floating border rounded">
													<input type="text" class="form-control form-control-solid" name="lfmiddlename" value="" required>
													</div>
													</div>
															<!--end::Input-->
														</div>
														<!--end::Input group-->
													</div>
													<!--end::Col-->
													<!--begin::Col-->
													<div class="col">
														<!--begin::Input group-->
														<div class="fv-row mb-7">
															<!--begin::Label-->
															<label class="fs-6 fw-semibold form-label mt-3">
																<span class="required">Surname</span>
																<i class="fas fa-exclamation-circle ms-1 fs-7" data-bs-toggle="tooltip" title="Enter Surname"></i>
															</label>
															<!--end::Label-->
															<!--begin::Input-->
															<div class="w-100">
																<div class="form-floating border rounded">
													<input type="text" class="form-control form-control-solid" name="lfsurname" value="" required>
													</div>
													</div>
															<!--end::Input-->
														</div>
														<!--end::Input group-->
													</div>
													<!--end::Col-->
												</div>
												<!--end::Row-->
											<!--begin::Row-->
												<div class="row row-cols-1 row-cols-sm-2 rol-cols-md-1 row-cols-lg-2">
												<div class="col">
														<!--begin::Input group-->
														<div class="fv-row mb-7">
															<!--begin::Label-->
															<label class="fs-6 fw-semibold form-label mt-3">
																<span>Gender</span>
																<i class="fas fa-exclamation-circle ms-1 fs-7" data-bs-toggle="tooltip" ></i>
															</label>
															<!--end::Label-->
															<!--begin::Input-->
															<div class="w-100">
																<div class="form-floating border rounded">
													<select class="form-select form-select-solid" data-control="select2"   name="lfgender">
													<option value="Male">Male</option>
													<option value="Female">Female</option>
													<option value="Other">Other</option>
													</select>
													</div>
													</div>
															<!--end::Input-->
														</div>
														<!--end::Input group-->
													</div>
													
													<!--begin::Col-->
													<div class="col">
														<!--begin::Input group-->
														<div class="fv-row mb-7">
															<!--begin::Label-->
															<label class="fs-6 fw-semibold form-label mt-3">
																<span >Email</span>
																<i class="fas fa-exclamation-circle ms-1 fs-7" data-bs-toggle="tooltip" title="Enter Email"></i>
															</label>
															<!--end::Label-->
															<!--begin::Input-->
															<input type="text" class="form-control form-control-solid" name="lfemail" value="" />
															<!--end::Input-->
														</div>
														<!--end::Input group-->
													</div>
													<!--end::Col-->
													</div>
												<!--end::Row-->
												<!--begin::Row-->
												<div class="row row-cols-1 row-cols-sm-2 rol-cols-md-1 row-cols-lg-2">
												<!--begin::Col-->
													<div class="col">
														<!--begin::Input group-->
														<div class="fv-row mb-7">
															<!--begin::Label-->
															<label class="fs-6 fw-semibold form-label mt-3">
																<span class="">Relation</span>
															</label>
															<!--end::Label-->
															<div class="row row-cols-lg-2 row-cols-2 row-cols-sm-2 rol-cols-md-2">
															
															<select class="form-select form-select-solid" data-control="select2"   name="lfrelation" id="lfrelation" >
															<option value="0">Select</option>
															<option value="Spouse">Spouse</option>
															<option value="Parents">Parents</option>
															<option value="Siblings">Siblings</option>
															<option value="Children">Children</option>
															<option value="Aunt">Aunt</option>
															<option value="Uncle">Uncle</option>
															<option value="Cousin">Cousin</option>
													</select>
															
															
															</div></div>
														<!--end::Input group-->
													</div>
													<!--end::Col-->
													
													<!--begin::Col-->
													<div class="col">
														<!--begin::Input group-->
														<div class="fv-row mb-7">
															<!--begin::Label-->
															<label class="fs-6 fw-semibold form-label mt-3">
																<span class="">Mobile Number</span>
															</label>
															<!--end::Label-->
															<div class="row row-cols-lg-2 row-cols-2 row-cols-sm-2 rol-cols-md-2">
															<div class="col">
															<select class="form-select form-select-solid" data-control="select2"   name="mobilecode" >
													<?php 
																			$eve = "select * from res_country_master";

																			$re = mysqli_query($conn, $eve);
																			
																			while($rt = mysqli_fetch_assoc($re))

																			{											
																				
																				$countrycode=$rt['countrycode'];
																				$countrysortname=$rt['countrysortname'];
																				
																				echo "<option value='$countrycode'>$countrycode ($countrysortname)</option>";
																				 
																			}
																			
																	?>
													</select>
															</div>
															<div class="col-md-9">
															<input type="text" class="form-control form-control-solid" name="lfmobile" value="" />
															</div>
															</div></div>
														<!--end::Input group-->
													</div>
													<!--end::Col-->
												
													
												</div>
												
												<!--end::Row-->
												<!--begin::Row-->
												<div class="row row-cols-1 row-cols-sm-2 rol-cols-md-1 row-cols-lg-2">
													<!--begin::Col-->
													<!--begin::Col-->
													<div class="col">
														<!--begin::Input group-->
														<div class="fv-row mb-7">
															<!--begin::Label-->
															<label class="fs-6 fw-semibold form-label mt-3">
																<span class="">Address</span>
															</label>
															<!--end::Label-->
															<input type="text" class="form-control form-control-solid" name="lfaddress" value="" /></div>
														<!--end::Input group-->
													</div>
													<!--end::Col-->
													<!--begin::Col-->
													<div class="col">
														<!--begin::Input group-->
														<div class="fv-row mb-7">
															<!--begin::Label-->
															<label class="fs-6 fw-semibold form-label mt-3">
																Postcode
															</label>
															<!--end::Label-->
															<input type="text" class="form-control form-control-solid" name="lfpostcode" value="" /></div>
														<!--end::Input group-->
													</div>
													<!--end::Col-->
												
												</div>
												
												<!--end::Row-->
												
																<!--begin::Row-->
												<div class="row row-cols-1 row-cols-sm-3 rol-cols-md-1 row-cols-lg-3">
													<!--begin::Col-->
													<div class="col">
														<!--begin::Input group-->
														<div class="fv-row mb-7">
															<!--begin::Label-->
															<label class="fs-6 fw-semibold form-label mt-3">
																<span class="required"> Country</span>
																<i class="fas fa-exclamation-circle ms-1 fs-7" data-bs-toggle="tooltip" title="Enter Name"></i>
															</label>
															<!--end::Label-->
															<!--begin::Input-->
															
															<select class="form-select form-select-solid" data-control="select2"   name="lfcountry" id="ipbirthcountry">
															<option value="0">Select</option>
													<?php 
																			$eve = "select * from res_country_master";

																			$re = mysqli_query($conn, $eve);
																			
																			while($rt = mysqli_fetch_assoc($re))

																			{											
																				
																				$countrycode=$rt['countrycode'];
																				$countryname=$rt['countryname'];
																				
																				echo "<option value='$countryname'>$countryname </option>";
																				 
																			}
																			
																	?>
													</select>
													
															<!--end::Input-->
														</div>
														<!--end::Input group-->
													</div>
													<!--end::Col-->
													<!--begin::Col-->
													<div class="col">
														<!--begin::Input group-->
														<div class="fv-row mb-7">
															<!--begin::Label-->
															<label class="fs-6 fw-semibold form-label mt-3">
																<span> State</span>
																<i class="fas fa-exclamation-circle ms-1 fs-7" data-bs-toggle="tooltip" title="Select State"></i>
															</label>
															<!--end::Label-->
															<!--begin::Input-->
															
													<select class="form-select form-select-solid" data-control="select2"   name="lfstate" id="ibirthstate">
													
													</select>
													
															<!--end::Input-->
														</div>
														<!--end::Input group-->
													</div>
													<!--end::Col-->
													<!--begin::Col-->
													<div class="col">
														<!--begin::Input group-->
														<div class="fv-row mb-7">
															<!--begin::Label-->
															<label class="fs-6 fw-semibold form-label mt-3">
																<span> City</span>
																<i class="fas fa-exclamation-circle ms-1 fs-7" data-bs-toggle="tooltip" title="Enter Surname"></i>
															</label>
															<!--end::Label-->
															<!--begin::Input-->
															
													<select class="form-select form-select-solid" data-control="select2"   name="lfcity" id="ipbirthcity">
													<option value="0">Select State</option>
													</select>
													
															<!--end::Input-->
														</div>
														<!--end::Input group-->
													</div>
													<!--end::Col-->
												</div>
												<!--end::Row-->
																											
															<!--end::Scroll-->
															<!--begin::Actions-->
															<div class="text-center pt-15">
																<button type="reset" class="btn btn-light me-3" data-kt-users-modal-action="cancel" data-bs-dismiss="modal" data-bs-dismiss="modal">Discard</button>
																<button type="submit" class="btn btn-primary" data-kt-users-modal-action="submit">
																	<span class="indicator-label">Submit</span>
																	<span class="indicator-progress">Please wait...
																	<span class="spinner-border spinner-border-sm align-middle ms-2"></span></span>
																</button>
															</div>
															
															<!--end::Actions-->
														</form>
														<!--end::Form-->
													</div>
										<!--end::Modal body-->
									</div>
									<!--end::Modal content-->
								</div>
								<!--end::Modal dialog-->
							</div>
							<!--end::Modal - Family Member-->
							<!--begin::Modal - Common Document-->
							<div class="modal fade" id="kt_modal_add_document1" tabindex="-1" aria-hidden="true">
								<!--begin::Modal dialog-->
								<div class="modal-dialog modal-dialog-centered mw-750px">
									<!--begin::Modal content-->
									<div class="modal-content rounded">
										<!--begin::Modal header-->
										<div class="modal-header pb-10 border-0 ">
										<div class="card-title text-uppercase ">
														<h2>Add Document</h2>
													</div>
											<!--begin::Close-->
											<div class="btn btn-sm btn-icon btn-active-color-primary justify-content-end" data-bs-dismiss="modal">
												<!--begin::Svg Icon | path: icons/duotune/arrows/arr061.svg-->
												<span class="svg-icon svg-icon-1">
													<svg width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg">
														<rect opacity="0.5" x="6" y="17.3137" width="16" height="2" rx="1" transform="rotate(-45 6 17.3137)" fill="currentColor" />
														<rect x="7.41422" y="6" width="16" height="2" rx="1" transform="rotate(45 7.41422 6)" fill="currentColor" />
													</svg>
												</span>
												<!--end::Svg Icon-->
											</div>
											<!--end::Close-->
										</div>
										<!--begin::Modal header-->
										<!--begin::Modal body-->
										<div class="modal-body scroll-y px-10 px-lg-15 pt-0 pb-15">
											<!--begin::Form-->
														<form id="kt_modal_add_user_form" class="form" action="documentstatus2.php" method="POST"  enctype="multipart/form-data">
														<input type="hidden" name="imid1" value="<?php echo $imid; ?>">
															<!--begin::Scroll-->
																
																<!--begin::Row-->
												<div class="row row-cols-1 row-cols-sm-2 rol-cols-md-1 row-cols-lg-2">
													<!--begin::Col-->
													<div class="col-md-6 fv-row">
																<!--begin::Input group-->
																<div class="fv-row mb-7">
																	<!--begin::Label-->
																	<label class="required fw-semibold fs-6 mb-2">Select Document Type:</label>
																	<!--end::Label-->
																	<!--begin::Input-->
																	<?php
							include("connect.php");
							$eve_category2 = "select * from res_commondocument_master,res_inquirydocs_master where res_inquirydocs_master.idmid = res_commondocument_master.documentmid";
							$re_category2 = mysqli_query($conn, $eve_category2);
							?>
													<select class="form-select form-select-solid" data-control="select2" data-hide-search="true" name="commondocumentmid" id="commondocumentmid">
													  <option value="0">Select
													  </option>
													  <?php		
							while($rt_category2 = mysqli_fetch_assoc($re_category2))
							{
							echo "<option value='$rt_category2[documentmid]'>$rt_category2[idmname]</option>";
							}		
							?>	
                        </select>
																	<!--end::Input-->
																</div>
																<!--end::Input group-->
																</div>
													<!--end::Col-->
													
													<!--begin::Col-->
													<div class="col-md-6 fv-row">
																<!--begin::Input group-->
																<div class="fv-row mb-7">
																	<!--begin::Label-->
																	<label class="required fw-semibold fs-6 mb-2"> Upload Document</label>
																	<!--end::Label-->
																	<!--begin::Input-->
																	<input type="file" name="file11" class="form-control" required>
																	<!--end::Input-->
																</div>
																<!--end::Input group-->
																</div>
													<!--end::Col-->
													</div>
												<!--end::Row-->	
																<!--begin::Row-->
												<div class="row row-cols-1 row-cols-sm-1 rol-cols-md-1 row-cols-lg-1">
													<!--begin::Col-->
													<div class="col-md-12 fv-row">
																<!--begin::Input group-->
																<div class="fv-row mb-7">
																	<!--begin::Label-->
																	<label class="required fw-semibold fs-6 mb-2">Remark</label>
																	<!--end::Label-->
																	<!--begin::Input-->
																		<input type="text" name="idcremark" class="form-control form-control-solid" >
																	<!--end::Input-->
																</div>
																<!--end::Input group-->
																</div>
													<!--end::Col-->
													
														</div>
												<!--end::Row-->			<!--end::Scroll-->
															<!--begin::Actions-->
															<div class="text-center pt-15">
																<button type="reset" class="btn btn-light me-3" data-kt-users-modal-action="cancel" data-bs-dismiss="modal" data-bs-dismiss="modal">Discard</button>
																<button type="submit" class="btn btn-primary" data-kt-users-modal-action="submit">
																	<span class="indicator-label">Submit</span>
																	<span class="indicator-progress">Please wait...
																	<span class="spinner-border spinner-border-sm align-middle ms-2"></span></span>
																</button>
															</div>
															</div>
															<!--end::Actions-->
														</form>
														<!--end::Form-->
													</div>
										<!--end::Modal body-->
									</div>
									<!--end::Modal content-->
								</div>
								<!--end::Modal dialog-->
							
							<!--begin::Modal -  Common Document-->
							<div class="modal fade" id="kt_modal_add_councelling" tabindex="-1" aria-hidden="true">
								<!--begin::Modal dialog-->
								<div class="modal-dialog modal-dialog-centered mw-750px">
									<!--begin::Modal content-->
									<div class="modal-content rounded">
										<!--begin::Modal header-->
										<div class="modal-header pb-10 border-0 ">
										<div class="card-title text-uppercase ">
														<h2>Allocate Task</h2>
													</div>
											<!--begin::Close-->
											<div class="btn btn-sm btn-icon btn-active-color-primary justify-content-end" data-bs-dismiss="modal">
												<!--begin::Svg Icon | path: icons/duotune/arrows/arr061.svg-->
												<span class="svg-icon svg-icon-1">
													<svg width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg">
														<rect opacity="0.5" x="6" y="17.3137" width="16" height="2" rx="1" transform="rotate(-45 6 17.3137)" fill="currentColor" />
														<rect x="7.41422" y="6" width="16" height="2" rx="1" transform="rotate(45 7.41422 6)" fill="currentColor" />
													</svg>
												</span>
												<!--end::Svg Icon-->
											</div>
											<!--end::Close-->
										</div>
										<!--begin::Modal header-->
										<!--begin::Modal body-->
										<div class="modal-body scroll-y px-10 px-lg-15 pt-0 pb-15">
											<!--begin::Form-->
														<form id="kt_modal_add_user_form2" class="form" action="inquirystatus1.php" method="POST">
														<input type="hidden" name="imid" value="<?php echo $imid; ?>">
															<!--begin::Scroll-->
															<!--begin::Input group-->
																<div class="fv-row mb-7">
																	<!--begin::Label-->
																	<label class=" fw-semibold fs-6 mb-2"> Inquiry</label>
																	<!--end::Label-->
																	<!--begin::Input-->
																	<select class="form-select form-select-solid" data-control="select2"   name="stiqmid" id="stiqmid1" >
																	<option value="0">Select</option>
													<?php 
																			$eve1 = "select * from res_studentinquiry_detail where imid=".$_GET['id'];

																			$re1 = mysqli_query($conn, $eve1);
																			
																			while($rt1 = mysqli_fetch_assoc($re1))

																			{	$siprefferservice=$rt1['siprefferservice'];$siprefferedsubservice=$rt1['siprefferedsubservice'];
																			
																			echo $eves = "select * from res_subservice_master where subservicemid = $siprefferedsubservice ";
																			$res = mysqli_query($conn, $eves);
																			
																			while($rts = mysqli_fetch_assoc($res))

																			{
																				$subservicename = $rts['subservicename'];
																			}
																			
																			
																			$siprefferedcountry=$rt1['siprefferedcountry'];
																			
																			$evec = "select * from  res_country_master where countrymid = $siprefferedcountry ";
																			$rec = mysqli_query($conn, $evec);
																			
																			while($rtc = mysqli_fetch_assoc($rec))

																			{
																				$countryname = $rtc['countryname'];
																			}
																			
																			
																			$stiqmid =$rt1['stiqmid'];
																				$inquirydate=date("d-m-Y",strtotime($rt1['inquirydate']));
																				
																				echo "<option value='$stiqmid'>$siprefferservice - $subservicename - $countryname ($inquirydate)</option>";
																				 
																			}
																			
																	?>
													</select>
																	<!--end::Input-->
																</div>
																<!--end::Input group-->
																
																<!--begin::Input group-->
																<div class="fv-row mb-7">
																	<!--begin::Label-->
																	<label class="required fw-semibold fs-6 mb-2">User</label>
																	<!--end::Label-->
																	<!--begin::Input-->
																	<?php
																	include("connect.php");
																	if($_SESSION['utype'] == 'admin')
																	{
																		$eve_category = "select * from res_user_master where  utype not in('admin','branchmanager','receptionist')" ;
																	}else if($_SESSION['utype'] == 'receptionist')
																	{
																		$eve_category = "select * from res_user_master where  utype in ('counseller') and branchmid=".$_SESSION['branchid'];
																	}
																	else{
																		 $eve_category = "select * from res_user_master where umid != ".$_GET['id']." and  utype not in ('admin','branchmanager','receptionist') and branchmid=".$_SESSION['branchid'];
																	}
																	
																	$re_category = mysqli_query($conn, $eve_category);
																	?>
																	<select class="form-select form-select-solid" data-control="select2"   name="umid1" id="umid1">
																	<option value="0">Select
															  </option>
															  <?php		
																while($rt_category = mysqli_fetch_assoc($re_category))
																{
																echo "<option value='$rt_category[umid]'>$rt_category[ufullname] ($rt_category[utype])</option>";
																}		
																?>	
																 </select>
																	<!--end::Input-->
																</div>
																<!--end::Input group-->
																			<!--end::Scroll-->
															<!--begin::Actions-->
															<div class="text-center pt-15">
																<button type="reset" class="btn btn-light me-3" data-kt-users-modal-action="cancel" data-bs-dismiss="modal" data-bs-dismiss="modal">Discard</button>
																<button type="submit" class="btn btn-primary" data-kt-users-modal-action="submit">
																	<span class="indicator-label">Submit</span>
																	<span class="indicator-progress">Please wait...
																	<span class="spinner-border spinner-border-sm align-middle ms-2"></span></span>
																</button>
															</div>
															</div>
															<!--end::Actions-->
														</form>
														<!--end::Form-->
													</div>
										<!--end::Modal body-->
									</div>
									<!--end::Modal content-->
								</div>
								<!--end::Modal dialog-->
							<!--begin::Modal - Document -->
							<div class="modal fade" id="kt_modal_add_document" tabindex="-1" aria-hidden="true">
								<!--begin::Modal dialog-->
								<div class="modal-dialog modal-dialog-centered mw-750px">
									<!--begin::Modal content-->
									<div class="modal-content rounded">
										<!--begin::Modal header-->
										<div class="modal-header pb-10 border-0 ">
										<div class="card-title text-uppercase ">
														<h2>Add Document</h2>
													</div>
											<!--begin::Close-->
											<div class="btn btn-sm btn-icon btn-active-color-primary justify-content-end" data-bs-dismiss="modal">
												<!--begin::Svg Icon | path: icons/duotune/arrows/arr061.svg-->
												<span class="svg-icon svg-icon-1">
													<svg width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg">
														<rect opacity="0.5" x="6" y="17.3137" width="16" height="2" rx="1" transform="rotate(-45 6 17.3137)" fill="currentColor" />
														<rect x="7.41422" y="6" width="16" height="2" rx="1" transform="rotate(45 7.41422 6)" fill="currentColor" />
													</svg>
												</span>
												<!--end::Svg Icon-->
											</div>
											<!--end::Close-->
										</div>
										<!--begin::Modal header-->
										<!--begin::Modal body-->
										<div class="modal-body scroll-y px-10 px-lg-15 pt-0 pb-15">
											<!--begin::Form-->
														<form id="kt_modal_add_user_form6" class="form" action="documentstatus1.php" method="POST"  enctype="multipart/form-data">
														<input type="hidden" name="imid1" value="<?php echo $imid; ?>">
															<!--begin::Scroll-->
															<!-- content will be load here -->
															<div id="dynamic-content3"></div>
																<!--begin::Actions-->
															<div class="text-center pt-15">
																<button type="reset" class="btn btn-light me-3" data-kt-users-modal-action="cancel" data-bs-dismiss="modal" data-bs-dismiss="modal">Discard</button>
																<button type="submit" class="btn btn-primary" data-kt-users-modal-action="submit">
																	<span class="indicator-label">Submit</span>
																	<span class="indicator-progress">Please wait...
																	<span class="spinner-border spinner-border-sm align-middle ms-2"></span></span>
																</button>
															</div>
															</div>
															<!--end::Actions-->
														</form>
														<!--end::Form-->
													</div>
										<!--end::Modal body-->
									</div>
									<!--end::Modal content-->
								</div>
								<!--end::Document-->
							</div>
							<!--end::Modal - Counceller allocation-->
							<!--begin::Modal - Experience-->
							<div class="modal fade" id="student_experience" tabindex="-1" aria-hidden="true">
								<!--begin::Modal dialog-->
								<div class="modal-dialog modal-dialog-centered mw-750px">
									<!--begin::Modal content-->
									<div class="modal-content rounded">
										<!--begin::Modal header-->
										<div class="modal-header pb-10 border-0 ">
										<div class="card-title text-uppercase ">
														<h2>Add Experience</h2>
													</div>
											<!--begin::Close-->
											<div class="btn btn-sm btn-icon btn-active-color-primary justify-content-end" data-bs-dismiss="modal">
												<!--begin::Svg Icon | path: icons/duotune/arrows/arr061.svg-->
												<span class="svg-icon svg-icon-1">
													<svg width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg">
														<rect opacity="0.5" x="6" y="17.3137" width="16" height="2" rx="1" transform="rotate(-45 6 17.3137)" fill="currentColor" />
														<rect x="7.41422" y="6" width="16" height="2" rx="1" transform="rotate(45 7.41422 6)" fill="currentColor" />
													</svg>
												</span>
												<!--end::Svg Icon-->
											</div>
											<!--end::Close-->
										</div>
										<!--begin::Modal header-->
										<!--begin::Modal body-->
										<div class="modal-body scroll-y px-10 px-lg-15 pt-0 pb-15">
											<!--begin::Form-->
														<form id="kt_modal_add_user_form5" class="form" action="experiencestatus1.php" method="POST">
														<input type="hidden" name="imid" value="<?php echo $imid; ?>">
															<!--begin::Scroll-->
															
																<!--begin::Input group-->
																<div class="fv-row mb-7">
																	<!--begin::Label-->
																	<label class="required fw-semibold fs-6 mb-2">Company Name</label>
																	<!--end::Label-->
																	<!--begin::Input-->
																	<input class="form-control form-control-solid fw-bold pe-5"  name="iexpcompanyname" required>
																	<!--end::Input-->
																</div>
																<!--end::Input group-->
																<!--begin::Row-->
												<div class="row row-cols-1 row-cols-sm-2 rol-cols-md-1 row-cols-lg-2">
													
													<!--begin::Col-->
													<div class="col-md-6 fv-row">
																<!--begin::Input group-->
																<div class="fv-row mb-7">
																	<!--begin::Label-->
																	<label class="required fw-semibold fs-6 mb-2">Designation</label>
																	<!--end::Label-->
																	<!--begin::Input-->
																	<input class="form-control form-control-solid fw-bold pe-5"  name="iexpdesignation" required>
																	<!--end::Input-->
																</div>
																<!--end::Input group-->
																</div>
													<!--end::Col-->
													<!--begin::Col-->
													<div class="col-md-6 fv-row">
																<!--begin::Input group-->
																<div class="fv-row mb-7">
																	<!--begin::Label-->
																	<label class="required fw-semibold fs-6 mb-2">Duration</label>
																	<!--end::Label-->
																	<!--begin::Input-->
																	<select class="form-select form-select-solid" data-control="select2"   name="iexpduration">
													<?php
																		
																		for($i=1;$i<=20;$i++)
																		{																	
																			echo "<option value='$i Years'> $i Years </option>";
																				
																		}?>
													</select>
																	<!--end::Input-->
																</div>
																<!--end::Input group-->
																</div>
													<!--end::Col-->
													</div>
												<!--end::Row-->
																<!--begin::Row-->
												<div class="row row-cols-1 row-cols-sm-2 rol-cols-md-1 row-cols-lg-2">
													
													<!--begin::Col-->
													<div class="col-md-6 fv-row">
																<!--begin::Input group-->
																<div class="fv-row mb-7">
																	<!--begin::Label-->
																	<label class="required fw-semibold fs-6 mb-2"> Country</label>
																	<!--end::Label-->
																	<!--begin::Input-->
																	<select class="form-select form-select-solid" data-control="select2"   name="iexpcountry" id="countrymid3">
																	<option value="0">Select</option>
													<?php 
																			$eve = "select * from res_country_master";

																			$re = mysqli_query($conn, $eve);
																			
																			while($rt = mysqli_fetch_assoc($re))

																			{											
																				
																				
																				
																				$countryname=$rt['countryname'];
																				
																				
																				echo "<option value='$countryname'>$countryname</option>";
																				 
																			}
																			
																	?>
													</select>
																	<!--end::Input-->
																</div>
																<!--end::Input group-->
																</div>
													<!--end::Col-->
													<!--begin::Col-->
													<div class="col-md-6 fv-row">
																<!--begin::Input group-->
																<div class="fv-row mb-7">
																	<!--begin::Label-->
																	<label class="required fw-semibold fs-6 mb-2">City</label>
																	<!--end::Label-->
																	<!--begin::Input-->
																	<select class="form-select form-select-solid" data-control="select2"   name="iexpcity" name="iexpcity" >
																	<option value="0">Select</option>
													<?php 
																			$eve1 = "select * from res_city_master";

																			$re1 = mysqli_query($conn, $eve1);
																			
																			while($rt1 = mysqli_fetch_assoc($re1))

																			{	$cityname=$rt1['cityname'];
																				
																				echo "<option value='$cityname'>$cityname</option>";
																				 
																			}
																			
																	?>
													</select>
																	<!--end::Input-->
																</div>
																<!--end::Input group-->
																</div>
													<!--end::Col-->
													</div>
												<!--end::Row-->
																<!--begin::Row-->
												<div class="row row-cols-1 row-cols-sm-2 rol-cols-md-1 row-cols-lg-2">
													
													<!--begin::Col-->
													<div class="col-md-6 fv-row">
																<!--begin::Input group-->
																<div class="fv-row mb-7">
																	<!--begin::Label-->
																	<label class="required fw-semibold fs-6 mb-2">Start Date </label>
																	<!--end::Label-->
																	<!--begin::Input-->
																	<input class="form-control form-control-solid fw-bold pe-5" placeholder="Select date" name="iexpfromdate" id="kt_daterangepicker_8"/>
																	<!--end::Input-->
																</div>
																<!--end::Input group-->
																</div>
													<!--end::Col-->
													<!--begin::Col-->
													<div class="col-md-6 fv-row">
																<!--begin::Input group-->
																<div class="fv-row mb-7">
																	<!--begin::Label-->
																	<label class="required fw-semibold fs-6 mb-2">End Date  </label>
																	<!--end::Label-->
																	<!--begin::Input-->
																	<input class="form-control form-control-solid fw-bold pe-5" placeholder="Select date" name="iexptodate" id="kt_daterangepicker_9"/>
																	<!--end::Input-->
																</div>
																<!--end::Input group-->
																</div>
													<!--end::Col-->
													</div>
												<!--end::Row-->
																			
															<!--end::Scroll-->
															<!--begin::Actions-->
															<div class="text-center pt-15">
																<button type="reset" class="btn btn-light me-3" data-kt-users-modal-action="cancel" data-bs-dismiss="modal" data-bs-dismiss="modal">Discard</button>
																<button type="submit" class="btn btn-primary" data-kt-users-modal-action="submit">
																	<span class="indicator-label">Submit</span>
																	<span class="indicator-progress">Please wait...
																	<span class="spinner-border spinner-border-sm align-middle ms-2"></span></span>
																</button>
															</div>
															</div>
															<!--end::Actions-->
														</form>
														<!--end::Form-->
													</div>
										<!--end::Modal body-->
									</div>
									<!--end::Modal content-->
								</div>
								<!--end::Modal dialog-->
							</div>
							<!--end::Modal - Experience-->
							<!--begin::Modal - IIELts-->
							<div class="modal fade" id="student_ielts" tabindex="-1" aria-hidden="true">
								<!--begin::Modal dialog-->
								<div class="modal-dialog modal-dialog-centered mw-750px">
									<!--begin::Modal content-->
									<div class="modal-content rounded">
										<!--begin::Modal header-->
										<div class="modal-header pb-10 border-0 ">
										<div class="card-title text-uppercase ">
														<h2>Add Exam Score</h2>
													</div>
											<!--begin::Close-->
											<div class="btn btn-sm btn-icon btn-active-color-primary justify-content-end" data-bs-dismiss="modal">
												<!--begin::Svg Icon | path: icons/duotune/arrows/arr061.svg-->
												<span class="svg-icon svg-icon-1">
													<svg width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg">
														<rect opacity="0.5" x="6" y="17.3137" width="16" height="2" rx="1" transform="rotate(-45 6 17.3137)" fill="currentColor" />
														<rect x="7.41422" y="6" width="16" height="2" rx="1" transform="rotate(45 7.41422 6)" fill="currentColor" />
													</svg>
												</span>
												<!--end::Svg Icon-->
											</div>
											<!--end::Close-->
										</div>
										<!--begin::Modal header-->
										<!--begin::Modal body-->
										<div class="modal-body scroll-y px-10 px-lg-15 pt-0 pb-15">
											<!--begin::Form-->
														<form id="kt_modal_add_user_form4" class="form" action="ieltsstatus1.php" method="POST">
														<input type="hidden" name="imid" value="<?php echo $imid; ?>">
															<!--begin::Scroll-->
															
																<!--begin::Input group-->
																<div class="fv-row mb-7">
																	<!--begin::Label-->
																	<label class="required fw-semibold fs-6 mb-2">Test Name</label>
																	<!--end::Label-->
																	<!--begin::Input-->
																	<select class="form-select form-select-solid" data-control="select2"   name="iieltstestname" id="iieltstestname" >
													<option value="0"> Select</option>
													<option value="IELTS"> IELTS</option>
													
																	<option value="PTE">PTE</option>
																	<option value="TOEFL">TOEFL</option>
																	<option value="GRE">GRE</option>
																	<option value="SAT">SAT</option>
																	<option value="CLEB">CLEB</option>
																	<option value="CLEB">TEF</option>
																	
													</select>
																	<!--end::Input-->
																</div>
																<!--end::Input group-->
																<div id="ielts">
																<!--begin::Row-->
												<div class="row row-cols-1 row-cols-sm-2 rol-cols-md-1 row-cols-lg-2">
													
													<!--begin::Col-->
													<div class="col-md-6 fv-row">
																<!--begin::Input group-->
																<div class="fv-row mb-7">
																	<!--begin::Label-->
																	<label class="required fw-semibold fs-6 mb-2">Listening Score</label>
																	<!--end::Label-->
																	<!--begin::Input-->
																	<input class="form-control form-control-solid fw-bold pe-5"  name="iieltslisten" required>
																	<!--end::Input-->
																</div>
																<!--end::Input group-->
																</div>
													<!--end::Col-->
													<!--begin::Col-->
													<div class="col-md-6 fv-row">
																<!--begin::Input group-->
																<div class="fv-row mb-7">
																	<!--begin::Label-->
																	<label class="required fw-semibold fs-6 mb-2">Reading  Score</label>
																	<!--end::Label-->
																	<!--begin::Input-->
																	<input class="form-control form-control-solid fw-bold pe-5"  name="iieltsread" required>
																	<!--end::Input-->
																</div>
																<!--end::Input group-->
																</div>
													<!--end::Col-->
													</div>
												<!--end::Row-->
																<!--begin::Row-->
												<div class="row row-cols-1 row-cols-sm-3 rol-cols-md-1 row-cols-lg-3">
													
													<!--begin::Col-->
													<div class="col-md-6 fv-row">
																<!--begin::Input group-->
																<div class="fv-row mb-7">
																	<!--begin::Label-->
																	<label class="required fw-semibold fs-6 mb-2">Writing  Score</label>
																	<!--end::Label-->
																	<!--begin::Input-->
																	<input class="form-control form-control-solid fw-bold pe-5"  name="iieltswrite" required>
																	<!--end::Input-->
																</div>
																<!--end::Input group-->
																</div>
													<!--end::Col-->
													<!--begin::Col-->
													<div class="col-md-6 fv-row">
																<!--begin::Input group-->
																<div class="fv-row mb-7">
																	<!--begin::Label-->
																	<label class="required fw-semibold fs-6 mb-2">Speaking  Score </label>
																	<!--end::Label-->
																	<!--begin::Input-->
																	<input class="form-control form-control-solid fw-bold pe-5"  name="iieltsspeak" required>
																	<!--end::Input-->
																</div>
																<!--end::Input group-->
																</div>
													<!--end::Col-->
													<!--begin::Col-->
													<div class="col-md-6 fv-row">
																<!--begin::Input group-->
																<div class="fv-row mb-7">
																	<!--begin::Label-->
																	<label class="required fw-semibold fs-6 mb-2">Overall Score</label>
																	<!--end::Label-->
																	<!--begin::Input-->
																	<input class="form-control form-control-solid fw-bold pe-5"  name="iieltsoverall" required>
																	<!--end::Input-->
																</div>
																<!--end::Input group-->
																</div>
													<!--end::Col-->
													</div>
												<!--end::Row-->
												
												</div>
														<div id="sat">
																<!--begin::Row-->
												<div class="row row-cols-1 row-cols-sm-3 rol-cols-md-1 row-cols-lg-3">
													
													<!--begin::Col-->
													<div class="col-md-6 fv-row">
																<!--begin::Input group-->
																<div class="fv-row mb-7">
																	<!--begin::Label-->
																	<label class="required fw-semibold fs-6 mb-2">Maths</label>
																	<!--end::Label-->
																	<!--begin::Input-->
																	<input class="form-control form-control-solid fw-bold pe-5"  name="iieltsmaths" required>
																	<!--end::Input-->
																</div>
																<!--end::Input group-->
																</div>
													<!--end::Col-->
													<!--begin::Col-->
													<div class="col-md-6 fv-row">
																<!--begin::Input group-->
																<div class="fv-row mb-7">
																	<!--begin::Label-->
																	<label class="required fw-semibold fs-6 mb-2">English</label>
																	<!--end::Label-->
																	<!--begin::Input-->
																	<input class="form-control form-control-solid fw-bold pe-5"  name="iieltsenglish" required>
																	<!--end::Input-->
																</div>
																<!--end::Input group-->
																</div>
													<!--end::Col-->
													<div id="overall">
													<!--begin::Col-->
													<div class="col-md-6 fv-row">
																<!--begin::Input group-->
																<div class="fv-row mb-7">
																	<!--begin::Label-->
																	<label class="required fw-semibold fs-6 mb-2">Overall Score</label>
																	<!--end::Label-->
																	<!--begin::Input-->
																	<input class="form-control form-control-solid fw-bold pe-5"  name="iieltsoverall" required>
																	<!--end::Input-->
																</div>
																<!--end::Input group-->
																</div>
													<!--end::Col-->
													</div>
													<div id="tef">
													<!--begin::Col-->
													<div class="col-md-6 fv-row">
																<!--begin::Input group-->
																<div class="fv-row mb-7">
																	<!--begin::Label-->
																	<label class="required fw-semibold fs-6 mb-2">CLB Level </label>
																	<!--end::Label-->
																	<!--begin::Input-->
																	<input class="form-control form-control-solid fw-bold pe-5"  name="iieltsclblevel" required>
																	<!--end::Input-->
																</div>
																<!--end::Input group-->
																</div>
													<!--end::Col-->
													</div>
													
													</div>
												<!--end::Row-->
												
												</div>
														<div id="gre">
																<!--begin::Row-->
												<div class="row row-cols-1 row-cols-sm-2 rol-cols-md-1 row-cols-lg-2">
													
													<!--begin::Col-->
													<div class="col-md-6 fv-row">
																<!--begin::Input group-->
																<div class="fv-row mb-7">
																	<!--begin::Label-->
																	<label class="required fw-semibold fs-6 mb-2">Verbal reasoning</label>
																	<!--end::Label-->
																	<!--begin::Input-->
																	<input class="form-control form-control-solid fw-bold pe-5"  name="iieltsverbalreasoning" required>
																	<!--end::Input-->
																</div>
																<!--end::Input group-->
																</div>
													<!--end::Col-->
													<!--begin::Col-->
													<div class="col-md-6 fv-row">
																<!--begin::Input group-->
																<div class="fv-row mb-7">
																	<!--begin::Label-->
																	<label class="required fw-semibold fs-6 mb-2"> Quantitative Reasoning</label>
																	<!--end::Label-->
																	<!--begin::Input-->
																	<input class="form-control form-control-solid fw-bold pe-5"  name="iieltsquantitativereasoning" required>
																	<!--end::Input-->
																</div>
																<!--end::Input group-->
																</div>
													<!--end::Col-->
													</div>
												<!--end::Row-->
																<!--begin::Row-->
												<div class="row row-cols-1 row-cols-sm-2 rol-cols-md-1 row-cols-lg-2">
													
													<!--begin::Col-->
													<div class="col-md-6 fv-row">
																<!--begin::Input group-->
																<div class="fv-row mb-7">
																	<!--begin::Label-->
																	<label class="required fw-semibold fs-6 mb-2">Analytical writing</label>
																	<!--end::Label-->
																	<!--begin::Input-->
																	<input class="form-control form-control-solid fw-bold pe-5"  name="iieltsanalyticalwriting" required>
																	<!--end::Input-->
																</div>
																<!--end::Input group-->
																</div>
													<!--end::Col-->
													<!--begin::Col-->
													<div class="col-md-6 fv-row">
																<!--begin::Input group-->
																<div class="fv-row mb-7">
																	<!--begin::Label-->
																	<label class="required fw-semibold fs-6 mb-2">Overall Score</label>
																	<!--end::Label-->
																	<!--begin::Input-->
																	<input class="form-control form-control-solid fw-bold pe-5"  name="iieltsoverall" required>
																	<!--end::Input-->
																</div>
																<!--end::Input group-->
																</div>
													<!--end::Col-->
													</div>
												<!--end::Row-->
												
												</div>
												<!--begin::Row-->
												<div class="row row-cols-1 row-cols-sm-2 rol-cols-md-1 row-cols-lg-2">
													
													<!--begin::Col-->
													<div class="col-md-6 fv-row">
																<!--begin::Input group-->
																<div class="fv-row mb-7">
																	<!--begin::Label-->
																	<label class="required fw-semibold fs-6 mb-2">Test Date </label>
																	<!--end::Label-->
																	<!--begin::Input-->
																	<input class="form-control form-control-solid fw-bold pe-5" placeholder="Select date" name="iieltsdexamdate" id="kt_daterangepicker_6" required>
																	<!--end::Input-->
																</div>
																<!--end::Input group-->
																</div>
													<!--end::Col-->
													<!--begin::Col-->
													<div class="col-md-6 fv-row">
																<!--begin::Input group-->
																<div class="fv-row mb-7">
																	<!--begin::Label-->
																	<label class="required fw-semibold fs-6 mb-2">Expire Date  </label>
																	<!--end::Label-->
																	<!--begin::Input-->
																	<input class="form-control form-control-solid fw-bold pe-5" placeholder="Select date" name="iieltsdvalidupto" id="kt_daterangepicker_7" required>
																	<!--end::Input-->
																</div>
																<!--end::Input group-->
																</div>
													<!--end::Col-->
													</div>
												<!--end::Row-->
																<!--begin::Row-->
												<div class="row row-cols-1 row-cols-sm-2 rol-cols-md-1 row-cols-lg-2">
													
													<!--begin::Col-->
													<div class="col-md-6 fv-row">
																<!--begin::Input group-->
																<div class="fv-row mb-7">
																	<!--begin::Label-->
																	<label class="required fw-semibold fs-6 mb-2">Test Center </label>
																	<!--end::Label-->
																	<!--begin::Input-->
																	<input class="form-control form-control-solid fw-bold pe-5"  name="iieltstestcenter" required>
																	<!--end::Input-->
																</div>
																<!--end::Input group-->
																</div>
													<!--end::Col-->
													<!--begin::Col-->
													<div class="col-md-6 fv-row">
																<!--begin::Input group-->
																<div class="fv-row mb-7">
																	<!--begin::Label-->
																	<label class="required fw-semibold fs-6 mb-2"> Report Number </label>
																	<!--end::Label-->
																	<!--begin::Input-->
																	<input class="form-control form-control-solid fw-bold pe-5"  name="iieltsreportnumber" required>
																	<!--end::Input-->
																</div>
																<!--end::Input group-->
																</div>
													<!--end::Col-->
																
															<!--end::Scroll-->
															<!--begin::Actions-->
															<div class="text-center pt-15">
																<button type="reset" class="btn btn-light me-3" data-kt-users-modal-action="cancel" data-bs-dismiss="modal" data-bs-dismiss="modal">Discard</button>
																<button type="submit" class="btn btn-primary" data-kt-users-modal-action="submit">
																	<span class="indicator-label">Submit</span>
																	<span class="indicator-progress">Please wait...
																	<span class="spinner-border spinner-border-sm align-middle ms-2"></span></span>
																</button>
															</div>
															</div>
															<!--end::Actions-->
														</form>
														<!--end::Form-->
													</div>
										<!--end::Modal body-->
									</div>
									<!--end::Modal content-->
								</div>
								<!--end::Modal dialog-->
							</div>
							<!--end::Modal - IIELts-->
							
							<!--begin::Modal - Education-->
							<div class="modal fade" id="kt_modal_add_education" tabindex="-1" aria-hidden="true">
								<!--begin::Modal dialog-->
								<div class="modal-dialog modal-dialog-centered mw-750px">
									<!--begin::Modal content-->
									<div class="modal-content rounded">
										<!--begin::Modal header-->
										<div class="modal-header pb-10 border-0 ">
										<div class="card-title text-uppercase ">
														<h2>Add Education Details</h2>
													</div>
											<!--begin::Close-->
											<div class="btn btn-sm btn-icon btn-active-color-primary justify-content-end" data-bs-dismiss="modal">
												<!--begin::Svg Icon | path: icons/duotune/arrows/arr061.svg-->
												<span class="svg-icon svg-icon-1">
													<svg width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg">
														<rect opacity="0.5" x="6" y="17.3137" width="16" height="2" rx="1" transform="rotate(-45 6 17.3137)" fill="currentColor" />
														<rect x="7.41422" y="6" width="16" height="2" rx="1" transform="rotate(45 7.41422 6)" fill="currentColor" />
													</svg>
												</span>
												<!--end::Svg Icon-->
											</div>
											<!--end::Close-->
										</div>
										<!--begin::Modal header-->
										<!--begin::Modal body-->
										<div class="modal-body scroll-y px-10 px-lg-15 pt-0 pb-15">
											<!--begin::Form-->
														<form id="kt_modal_add_eduvcation_form" class="form" action="educationstatus1.php" method="POST">
														<input type="hidden" name="imid" value="<?php echo $imid; ?>">
															<!--begin::Scroll-->
															
																<!--begin::Input group-->
																<div class="fv-row mb-7">
																	<!--begin::Label-->
																	<label class="required fw-semibold fs-6 mb-2">Education Level</label>
																	<!--end::Label-->
																	<!--begin::Input-->
																	<select class="form-select form-select-solid" data-control="select2"   name="ietypeofcourse" id="ietypeofcourse">
																	<option value="0">Select</option>
																	<option value="HSC">HSC</option>
																	<option value="Bachelor">Bachelor</option>
																	<option value="Master">Master</option>
																	<option value="Post Graduate">Post Graduate</option>
																	</select>
																	
																	<!--end::Input-->
																</div>
																<!--end::Input group-->
																<!--begin::Row-->
												<div class="row row-cols-1 row-cols-sm-2 rol-cols-md-1 row-cols-lg-2">
													
													<!--begin::Col-->
													<div class="col-md-6 fv-row">
																<!--begin::Input group-->
																<div class="fv-row mb-7">
																	<!--begin::Label-->
																	<label class="required fw-semibold fs-6 mb-2">Education Status</label>
																	<!--end::Label-->
																	<!--begin::Input-->
																	<select class="form-select form-select-solid" data-control="select2"   name="iestatus">
													<option value="Completed">Completed </option>
																	<option value="In process">In process </option>
																	
																	</select>
																	<!--end::Input-->
																</div>
																<!--end::Input group-->
																</div>
													<!--end::Col-->
													<!--begin::Col-->
													<div class="col-md-6 fv-row">
																<!--begin::Input group-->
																<div class="fv-row mb-7">
																	<!--begin::Label-->
																	<label class="required fw-semibold fs-6 mb-2">School/ University</label>
																	<!--end::Label-->
																	<!--begin::Input-->
																	<input class="form-control form-control-solid fw-bold pe-5"  name="ieuniversity" />
																	<!--end::Input-->
																</div>
																<!--end::Input group-->
																</div>
													<!--end::Col-->
													</div>
												<!--end::Row-->
																<!--begin::Row-->
												<div class="row row-cols-1 row-cols-sm-2 rol-cols-md-1 row-cols-lg-2">
													
													<!--begin::Col-->
													<div class="col-md-6 fv-row">
																<!--begin::Input group-->
																<div class="fv-row mb-7">
																	<!--begin::Label-->
																	<label class="required fw-semibold fs-6 mb-2">Department</label>
																	<!--end::Label-->
																	<!--begin::Input-->
																	<input class="form-control form-control-solid fw-bold pe-5"  name="iecourse" />
																	<!--end::Input-->
																</div>
																<!--end::Input group-->
																</div>
													<!--end::Col-->
													<!--begin::Col-->
													<div class="col-md-6 fv-row">
																<!--begin::Input group-->
																<div class="fv-row mb-7">
																	<!--begin::Label-->
																	<label class="required fw-semibold fs-6 mb-2">Duration </label>
																	<!--end::Label-->
																	<!--begin::Input-->
																	<select class="form-select form-select-solid" data-control="select2"   name="ieduration">
																	<option value="2 years">2 years</option>
																	<option value="3 years">3 years</option>
																	<option value="4 years">4 years</option>
																	
																	</select>
																	<!--end::Input-->
																</div>
																<!--end::Input group-->
																</div>
													<!--end::Col-->
													</div>
												<!--end::Row-->
																<!--begin::Row-->
												<div class="row row-cols-1 row-cols-sm-2 rol-cols-md-1 row-cols-lg-2">
													
													<!--begin::Col-->
													<div class="col-md-6 fv-row">
																<!--begin::Input group-->
																<div class="fv-row mb-7">
																	<!--begin::Label-->
																	<label class="required fw-semibold fs-6 mb-2">Start Date </label>
																	<!--end::Label-->
																	<!--begin::Input-->
																	<input class="form-control form-control-solid fw-bold pe-5" placeholder="Select date" name="iefromdate" id="kt_daterangepicker_4"/>
																	<!--end::Input-->
																</div>
																<!--end::Input group-->
																</div>
													<!--end::Col-->
													<!--begin::Col-->
													<div class="col-md-6 fv-row">
																<!--begin::Input group-->
																<div class="fv-row mb-7">
																	<!--begin::Label-->
																	<label class="required fw-semibold fs-6 mb-2">End Date </label>
																	<!--end::Label-->
																	<!--begin::Input-->
																		<input class="form-control form-control-solid fw-bold pe-5" placeholder="Select date" name="ietodate" id="kt_daterangepicker_5"/>
																	<!--end::Input-->
																</div>
																<!--end::Input group-->
																</div>
													<!--end::Col-->
													</div>
												<!--end::Row-->
																<!--begin::Row-->
												<div class="row row-cols-1 row-cols-sm-2 rol-cols-md-1 row-cols-lg-2">
													
													<!--begin::Col-->
													<div class="col-md-6 fv-row">
																<!--begin::Input group-->
																<div class="fv-row mb-7">
																	<!--begin::Label-->
																	<label class="required fw-semibold fs-6 mb-2">GPA (Grade)/ Percentage </label>
																	<!--end::Label-->
																	<!--begin::Input-->
																	<input class="form-control form-control-solid fw-bold pe-5"  name="iepercentage"/>
																	<!--end::Input-->
																</div>
																<!--end::Input group-->
																</div>
													<!--end::Col-->
													<!--begin::Col-->
													<div class="col-md-6 fv-row">
																<!--begin::Input group-->
																<div class="fv-row mb-7">
																	<!--begin::Label-->
																	<label class="required fw-semibold fs-6 mb-2">Note </label>
																	<!--end::Label-->
																	<!--begin::Input-->
																	<input class="form-control form-control-solid fw-bold pe-5"  name="ienote"/>
																	<!--end::Input-->
																</div>
																<!--end::Input group-->
																</div>
													<!--end::Col-->
																
															<!--end::Scroll-->
															<!--begin::Actions-->
															<div class="text-center pt-15">
																<button type="reset" class="btn btn-light me-3" data-kt-users-modal-action="cancel" data-bs-dismiss="modal" data-bs-dismiss="modal">Discard</button>
																<button type="submit" class="btn btn-primary" data-kt-users-modal-action="submit">
																	<span class="indicator-label">Submit</span>
																	<span class="indicator-progress">Please wait...
																	<span class="spinner-border spinner-border-sm align-middle ms-2"></span></span>
																</button>
															</div>
															</div>
															<!--end::Actions-->
														</form>
														<!--end::Form-->
													</div>
										<!--end::Modal body-->
									</div>
									<!--end::Modal content-->
								</div>
								<!--end::Modal dialog-->
							</div>
							<!--end::Modal - Education-->
							<!--begin::Modal - Payment-->
							<div class="modal fade" id="student_add_payment" tabindex="-1" aria-hidden="true">
								<!--begin::Modal dialog-->
								<div class="modal-dialog modal-dialog-centered mw-750px">
									<!--begin::Modal content-->
									<div class="modal-content rounded">
										<!--begin::Modal header-->
										<div class="modal-header pb-10 border-0 ">
										<div class="card-title text-uppercase ">
														<h2>Add Payment Details</h2>
													</div>
											<!--begin::Close-->
											<div class="btn btn-sm btn-icon btn-active-color-primary justify-content-end" data-bs-dismiss="modal">
												<!--begin::Svg Icon | path: icons/duotune/arrows/arr061.svg-->
												<span class="svg-icon svg-icon-1">
													<svg width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg">
														<rect opacity="0.5" x="6" y="17.3137" width="16" height="2" rx="1" transform="rotate(-45 6 17.3137)" fill="currentColor" />
														<rect x="7.41422" y="6" width="16" height="2" rx="1" transform="rotate(45 7.41422 6)" fill="currentColor" />
													</svg>
												</span>
												<!--end::Svg Icon-->
											</div>
											<!--end::Close-->
										</div>
										<!--begin::Modal header-->
										<!--begin::Modal body-->
										<div class="modal-body scroll-y px-10 px-lg-15 pt-0 pb-15">
											<!--begin::Form-->
														<form id="kt_modal_add_eduvcation_form1" class="form" action="paymentdetail.php" method="POST">
														<input type="hidden" name="imid" value="<?php echo $imid; ?>">
															<!--begin::Scroll-->
															
												<!--begin::Row-->
												<div class="row row-cols-1 row-cols-sm-2 rol-cols-md-1 row-cols-lg-2">
													
													<!--begin::Col-->
													<div class="col-md-6 fv-row">
																<!--begin::Input group-->
																<div class="fv-row mb-7">
																	<!--begin::Label-->
																	<label class="required fw-semibold fs-6 mb-2">Purpose</label>
																	<!--end::Label-->
																	<!--begin::Input-->
																	<select class="form-select form-select-solid" data-control="select2"   name="isdid" id="isdid">
																	<option value="0">Select</option>
													 <?php	
							 $eve_p = "select * from res_inquiryservice_detail where  imid=".$_GET['id'];
							$re_p = mysqli_query($conn, $eve_p);
							while($rt_p = mysqli_fetch_assoc($re_p))
							{
							echo "<option value='$rt_p[isdid]'>$rt_p[ispurpose]</option>";
							}		
							?>	
																	
																	</select>
																	<!--end::Input-->
																</div>
																<!--end::Input group-->
																</div>
													<!--end::Col-->
													<!--begin::Col-->
													<div class="col-md-6 fv-row">
																<!--begin::Input group-->
																<div class="fv-row mb-7">
																	<!--begin::Label-->
																	<label class="required fw-semibold fs-6 mb-2">Fees</label>
																	<!--end::Label-->
																	<!--begin::Input-->
																	<input class="form-control form-control-solid fw-bold pe-5"  name="ieuniversity" id="paytotalamount1" readonly>
																	<!--end::Input-->
																</div>
																<!--end::Input group-->
																</div>
													<!--end::Col-->
													</div>
												<!--end::Row-->
																<!--begin::Row-->
												<div class="row row-cols-1 row-cols-sm-2 rol-cols-md-1 row-cols-lg-2">
													
													<!--begin::Col-->
													<div class="col-md-6 fv-row">
																<!--begin::Input group-->
																<div class="fv-row mb-7">
																	<!--begin::Label-->
																	<label class="required fw-semibold fs-6 mb-2">Recevied Amount</label>
																	<!--end::Label-->
																	<!--begin::Input-->
																	<input class="form-control form-control-solid fw-bold pe-5"  name="iecourse" id="payrecivedamt1" readonly>
																	<!--end::Input-->
																</div>
																<!--end::Input group-->
																</div>
													<!--end::Col-->
													<!--begin::Col-->
													<div class="col-md-6 fv-row">
																<!--begin::Input group-->
																<div class="fv-row mb-7">
																	<!--begin::Label-->
																	<label class="required fw-semibold fs-6 mb-2">Pending Amount </label>
																	<!--end::Label-->
																	<!--begin::Input-->
																	<input class="form-control form-control-solid fw-bold pe-5"  name="paypendingamt1" id="paypendingamt1" readonly>
																	
																	</select>
																	<!--end::Input-->
																</div>
																<!--end::Input group-->
																</div>
													<!--end::Col-->
													</div>
												<!--end::Row-->
																<!--begin::Row-->
												<div class="row row-cols-1 row-cols-sm-2 rol-cols-md-1 row-cols-lg-2">
													
													<!--begin::Col-->
													<div class="col-md-6 fv-row">
																<!--begin::Input group-->
																<div class="fv-row mb-7">
																	<!--begin::Label-->
																	<label class="required fw-semibold fs-6 mb-2">Payment Amount </label>
																	<!--end::Label-->
																	<!--begin::Input-->
																	<input class="form-control form-control-solid fw-bold pe-5"  name="paidamount"  required>
																	<!--end::Input-->
																</div>
																<!--end::Input group-->
																</div>
													<!--end::Col-->
													<!--begin::Col-->
													<div class="col-md-6 fv-row">
																<!--begin::Input group-->
																<div class="fv-row mb-7">
																	<!--begin::Label-->
																	<label class="required fw-semibold fs-6 mb-2">Payment Date </label>
																	<!--end::Label-->
																	<!--begin::Input-->
																		<input class="form-control form-control-solid fw-bold pe-5" placeholder="Select date" name="paydate" id="kt_daterangepicker_10"required>
																	<!--end::Input-->
																</div>
																<!--end::Input group-->
																</div>
													<!--end::Col-->
													</div>
												<!--end::Row-->
																<!--begin::Row-->
												<div class="row row-cols-1 row-cols-sm-2 rol-cols-md-1 row-cols-lg-2">
													
													<!--begin::Col-->
													<div class="col-md-6 fv-row">
																<!--begin::Input group-->
																<div class="fv-row mb-7">
																	<!--begin::Label-->
																	<label class="required fw-semibold fs-6 mb-2">Payment Mode </label>
																	<!--end::Label-->
																	<!--begin::Input-->
																	<select class="form-select form-select-solid" data-control="select2"   name="paymode" id="paymode" >
																	<option value="0">Select</option>
													 <?php	
							$eve_p = "select * from res_paymentmode_master";
							$re_p = mysqli_query($conn, $eve_p);
							while($rt_p = mysqli_fetch_assoc($re_p))
							{
							echo "<option value='$rt_p[paymentmodemid]'>$rt_p[paymentmodename]</option>";
							}		
							?>	
																	
																	</select>
																	<!--end::Input-->
																</div>
																<!--end::Input group-->
																</div>
													<!--end::Col-->
													<!--begin::Col-->
													</div>
													<!--end::Col-->
																						<!--begin::Row-->
												<div class="row row-cols-1 row-cols-sm-2 rol-cols-md-1 row-cols-lg-2">
													
													<!--begin::Col-->
													<div class="col-md-6 fv-row">
																<!--begin::Input group-->
																<div class="fv-row mb-7">
																	<!--begin::Label-->
																	<label class="required fw-semibold fs-6 mb-2">Company</label>
																	<!--end::Label-->
																	<!--begin::Input-->
																	<select class="form-select form-select-solid" data-control="select2"   name="companymid" id="companymid">
																	<option value="0">Select</option>
													 <?php	
							$eve_p = "select * from res_company_master";
							$re_p = mysqli_query($conn, $eve_p);
							while($rt_p = mysqli_fetch_assoc($re_p))
							{
							echo "<option value='$rt_p[companymid]'>$rt_p[companyname]</option>";
							}		
							?>	
																	
																	</select>
																	<!--end::Input-->
																</div>
																<!--end::Input group-->
																</div>
													<!--end::Col-->
													<!--begin::Col-->
													<div class="col-md-6 fv-row">
																<!--begin::Input group-->
																<div class="fv-row mb-7">
																	<!--begin::Label-->
																	<label class="required fw-semibold fs-6 mb-2">Bank</label>
																	<!--end::Label-->
																	<!--begin::Input-->
																	<select class="form-select form-select-solid" data-control="select2"   name="bankmid" id="bankmid">
																	</select>
																	<!--end::Input-->
																</div>
																<!--end::Input group-->
																</div>
													<!--end::Col-->
													</div>
												<!--end::Row-->
												
																<!--begin::Input group-->
																<div class="fv-row mb-7">
																	<!--begin::Label-->
																	<label class="required fw-semibold fs-6 mb-2">Transcation Detail </label>
																	<!--end::Label-->
																	<!--begin::Input-->
																	<input class="form-control form-control-solid fw-bold pe-5"  name="payremark" required>
																	<!--end::Input-->
																</div>
																<!--end::Input group-->
															<!--end::Scroll-->
															<!--begin::Actions-->
															<div class="text-center pt-15">
																<button type="reset" class="btn btn-light me-3" data-kt-users-modal-action="cancel" data-bs-dismiss="modal" data-bs-dismiss="modal">Discard</button>
																<button type="submit" class="btn btn-primary" data-kt-users-modal-action="submit">
																	<span class="indicator-label">Submit</span>
																	<span class="indicator-progress">Please wait...
																	<span class="spinner-border spinner-border-sm align-middle ms-2"></span></span>
																</button>
															</div>
															</div>
															<!--end::Actions-->
														</form>
														<!--end::Form-->
													</div>
										<!--end::Modal body-->
									</div>
									<!--end::Modal content-->
								</div>
								<!--end::Modal dialog-->
							</div>
							<!--end::Modal - Payment-->
							<!--begin::Modal - Student follow up-->
							<div class="modal fade" id="student_followup" tabindex="-1" aria-hidden="true">
								<!--begin::Modal dialog-->
								<div class="modal-dialog modal-dialog-centered mw-750px">
									<!--begin::Modal content-->
									<div class="modal-content rounded">
										<!--begin::Modal header-->
										<div class="modal-header pb-10 border-0 ">
										<div class="card-title text-uppercase ">
														<h2>Add Followup</h2>
													</div>
											<!--begin::Close-->
											<div class="btn btn-sm btn-icon btn-active-color-primary justify-content-end" data-bs-dismiss="modal">
												<!--begin::Svg Icon | path: icons/duotune/arrows/arr061.svg-->
												<span class="svg-icon svg-icon-1">
													<svg width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg">
														<rect opacity="0.5" x="6" y="17.3137" width="16" height="2" rx="1" transform="rotate(-45 6 17.3137)" fill="currentColor" />
														<rect x="7.41422" y="6" width="16" height="2" rx="1" transform="rotate(45 7.41422 6)" fill="currentColor" />
													</svg>
												</span>
												<!--end::Svg Icon-->
											</div>
											<!--end::Close-->
										</div>
										<!--begin::Modal header-->
										<!--begin::Modal body-->
										<div class="modal-body scroll-y px-10 px-lg-15 pt-0 pb-15">
											<!--begin::Form-->
														<form id="kt_modal_add_user_form" class="form" action="quotationmasterfollowup.php" method="POST">
														<input type="hidden" name="imid" value="<?php echo $imid; ?>">
															<!--begin::Scroll-->
															<!--begin::Row-->
												<div class="row row-cols-1 row-cols-sm-1 rol-cols-md-1 row-cols-lg-1">
													
													<!--begin::Col-->
													<div class="col-md-6 fv-row">
																<!--begin::Input group-->
																<div class="fv-row mb-7">
																	<!--begin::Label-->
																	<label class=" fw-semibold fs-6 mb-2"> Inquiry</label>
																	<!--end::Label-->
																	<!--begin::Input-->
																	<select class="form-select form-select-solid" data-control="select2"   name="stiqmid" >
																	<option value="0">Select</option>
													<?php 
																			$eve1 = "select * from res_studentinquiry_detail where imid=".$_GET['id'];

																			$re1 = mysqli_query($conn, $eve1);
																			
																			while($rt1 = mysqli_fetch_assoc($re1))

																			{	$siprefferservice=$rt1['siprefferservice'];$siprefferedsubservice=$rt1['siprefferedsubservice'];
																			
																			echo $eves = "select * from res_subservice_master where subservicemid = $siprefferedsubservice ";
																			$res = mysqli_query($conn, $eves);
																			
																			while($rts = mysqli_fetch_assoc($res))

																			{
																				$subservicename = $rts['subservicename'];
																			}
																			
																			
																			$siprefferedcountry=$rt1['siprefferedcountry'];
																			
																			$evec = "select * from  res_country_master where countrymid = $siprefferedcountry ";
																			$rec = mysqli_query($conn, $evec);
																			
																			while($rtc = mysqli_fetch_assoc($rec))

																			{
																				$countryname = $rtc['countryname'];
																			}
																			
																			
																			$stiqmid =$rt1['stiqmid'];
																				$inquirydate=date("d-m-Y",strtotime($rt1['inquirydate']));
																				
																				echo "<option value='$stiqmid'>$siprefferservice - $subservicename - $countryname ($inquirydate)</option>";
																				 
																			}
																			
																	?>
													</select>
																	<!--end::Input-->
																</div>
																<!--end::Input group-->
																</div>
													<!--end::Col-->
													</div>
												<!--end::Row-->
																<!--begin::Row-->
												<div class="row row-cols-1 row-cols-sm-2 rol-cols-md-1 row-cols-lg-2">
													
													<!--begin::Col-->
													<div class="col-md-6 fv-row">
																<!--begin::Input group-->
																<div class="fv-row mb-7">
																	<!--begin::Label-->
																	<label class="required fw-semibold fs-6 mb-2">Status </label>
																	<!--end::Label-->
																	<!--begin::Input-->
																	<select class="form-select form-select-solid" data-control="select2"   name="ifstatus" >
															<option value="Hot">Hot</option>
															<option value="Cold" selected>Cold</option>
															<option value="Warm ">Warm </option>
													</select>
																	<!--end::Input-->
																</div>
																<!--end::Input group-->
																</div>
													<!--end::Col-->
													<!--begin::Col-->
													<div class="col-md-6 fv-row">
																<!--begin::Input group-->
																<div class="fv-row mb-7">
																	<!--begin::Label-->
																	<label class="required fw-semibold fs-6 mb-2">Type </label>
																	<!--end::Label-->
																	<!--begin::Input-->
																	<select class="form-select form-select-solid" data-control="select2"   name="iftype" >
															<option value="Call ">Call </option>
															<option value="Walk-in" selected>Walk-in</option>
															<option value=" Appointment"> Appointment </option>
													</select>
																	<!--end::Input-->
																</div>
																<!--end::Input group-->
																</div>
													<!--end::Col-->
													</div>
												<!--end::Row-->
												<!--begin::Input group-->
																<div class="fv-row mb-7">
																	<!--begin::Label-->
																	<label class=" fw-semibold fs-6 mb-2"> Remarks</label>
																	<!--end::Label-->
																	<!--begin::Input-->
																	<textarea class="form-control form-control-solid fw-bold pe-5" placeholder="Add Remarks" name="fremarks" /></textarea>
																	
															
													</select>
																	<!--end::Input-->
																</div>
																<!--end::Input group-->
																
																<!--end::Row-->
												<!--begin::Input group-->
																<div class="fv-row mb-7">
																	<!--begin::Label-->
																	<label class=" fw-semibold fs-6 mb-2"> Next Followup </label>
																	<!--end::Label-->
																	<!--begin::Input-->
																	<select class="form-select form-select-solid" data-control="select2"   name="nextfup" id="nextfup" >
															<option value="1">Yes</option>
															<option value="0" selected>No</option>
															</select>
																	<!--end::Input-->
																</div>
																<!--end::Input group-->
																<!--begin::Row-->
												<div class="row row-cols-1 row-cols-sm-2 rol-cols-md-1 row-cols-lg-2 " id="followup">
													
													<!--begin::Col-->
													<div class="col-md-6 fv-row">
																<!--begin::Input group-->
																<div class="fv-row mb-7">
																	<!--begin::Label-->
																	<label class="required fw-semibold fs-6 mb-2">Next Followup Date</label>
																	<!--end::Label-->
																	<!--begin::Input-->
																	<input class="form-control form-control-solid fw-bold pe-5" placeholder="Select date" name="fdate" data-date-start-date="+0d" id="kt_daterangepicker_3"/>
																	<!--end::Input-->
																</div>
																<!--end::Input group-->
																</div>
													<!--end::Col-->
													<!--begin::Col-->
													<div class="col-md-6 fv-row">
																<!--begin::Input group-->
																<div class="fv-row mb-7">
																	<!--begin::Label-->
																	<label class=" fw-semibold fs-6 mb-2">Next Followup Remark </label>
																	<!--end::Label-->
																	<!--begin::Input-->
																	<textarea class="form-control form-control-solid fw-bold pe-5" placeholder="Add Remarks" name="ifnote" /></textarea>
																	<!--end::Input-->
																</div>
																<!--end::Input group-->
																</div>
													<!--end::Col-->
													</div>
												<!--end::Row-->
																
															<!--end::Scroll-->
															<!--begin::Actions-->
															<div class="text-center pt-15">
																<button type="reset" class="btn btn-light me-3" data-kt-users-modal-action="cancel" data-bs-dismiss="modal" data-bs-dismiss="modal">Discard</button>
																<button type="submit" class="btn btn-primary" data-kt-users-modal-action="submit">
																	<span class="indicator-label">Submit</span>
																	<span class="indicator-progress">Please wait...
																	<span class="spinner-border spinner-border-sm align-middle ms-2"></span></span>
																</button>
															</div>
															
															<!--end::Actions-->
														</form>
														<!--end::Form-->
													</div>
										<!--end::Modal body-->
									</div>
									<!--end::Modal content-->
								</div>
								<!--end::Modal dialog-->
							</div>
							<!--end::Modal - Student follow up-->
						<!--begin::Modal - Student Service-->
							<div class="modal fade" id="student_service" tabindex="-1" aria-hidden="true">
								<!--begin::Modal dialog-->
								<div class="modal-dialog modal-dialog-centered mw-750px">
									<!--begin::Modal content-->
									<div class="modal-content rounded">
										<!--begin::Modal header-->
										<div class="modal-header pb-0 border-0 ">
											<!--begin::Close-->
											<div class="btn btn-sm btn-icon btn-active-color-primary justify-content-end" data-bs-dismiss="modal">
												<!--begin::Svg Icon | path: icons/duotune/arrows/arr061.svg-->
												<span class="svg-icon svg-icon-1">
													<svg width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg">
														<rect opacity="0.5" x="6" y="17.3137" width="16" height="2" rx="1" transform="rotate(-45 6 17.3137)" fill="currentColor" />
														<rect x="7.41422" y="6" width="16" height="2" rx="1" transform="rotate(45 7.41422 6)" fill="currentColor" />
													</svg>
												</span>
												<!--end::Svg Icon-->
											</div>
											<!--end::Close-->
										</div>
										<!--begin::Modal header-->
										<!--begin::Modal body-->
										<div class="modal-body scroll-y px-10 px-lg-15 pt-0 pb-15">
											<!--begin::Form-->
														<form id="kt_modal_add_user_form" class="form" action="leadservice1.php" method="POST">
														<input type="hidden" name="imid" value="<?php echo $imid; ?>">
															<!--begin::Scroll-->
															<!--begin::Row-->
												<div class="row row-cols-1 row-cols-sm-1 rol-cols-md-1 row-cols-lg-1">
													
													<!--begin::Col-->
													<div class="col-md-6 fv-row">
																<!--begin::Input group-->
																<div class="fv-row mb-7">
																	<!--begin::Label-->
																	<label class=" fw-semibold fs-6 mb-2"> Inquiry</label>
																	<!--end::Label-->
																	<!--begin::Input-->
																	<select class="form-select form-select-solid" data-control="select2"   name="stiqmid" >
																	<option value="0">Select</option>
													<?php 
																			$eve1 = "select * from res_studentinquiry_detail where imid=".$_GET['id'];

																			$re1 = mysqli_query($conn, $eve1);
																			
																			while($rt1 = mysqli_fetch_assoc($re1))

																			{	$siprefferservice=$rt1['siprefferservice'];$siprefferedsubservice=$rt1['siprefferedsubservice'];
																			
																			echo $eves = "select * from res_subservice_master where subservicemid = $siprefferedsubservice ";
																			$res = mysqli_query($conn, $eves);
																			
																			while($rts = mysqli_fetch_assoc($res))

																			{
																				$subservicename = $rts['subservicename'];
																			}
																			
																			
																			$siprefferedcountry=$rt1['siprefferedcountry'];
																			
																			$evec = "select * from  res_country_master where countrymid = $siprefferedcountry ";
																			$rec = mysqli_query($conn, $evec);
																			
																			while($rtc = mysqli_fetch_assoc($rec))

																			{
																				$countryname = $rtc['countryname'];
																			}
																			
																			
																			$stiqmid =$rt1['stiqmid'];
																				$inquirydate=date("d-m-Y",strtotime($rt1['inquirydate']));
																				
																				echo "<option value='$stiqmid'>$siprefferservice - $subservicename - $countryname ($inquirydate)</option>";
																				 
																			}
																			
																	?>
													</select>
																	<!--end::Input-->
																</div>
																<!--end::Input group-->
																</div>
													<!--end::Col-->
													</div>
												<!--end::Row-->
																<!--begin::Row-->
												<div class="row row-cols-1 row-cols-sm-2 rol-cols-md-1 row-cols-lg-2">
													
													<!--begin::Col-->
													<div class="col-md-6 fv-row">
																<!--begin::Input group-->
																<div class="fv-row mb-7">
																	<!--begin::Label-->
																	<label class="required fw-semibold fs-6 mb-2">Purpose </label>
																	<!--end::Label-->
																	<!--begin::Input-->
																	<input class="form-control form-control-solid fw-bold pe-5"  name="ispurpose" required>
																	<!--end::Input-->
																</div>
																<!--end::Input group-->
																</div>
													<!--end::Col-->
													<!--begin::Col-->
													<div class="col-md-6 fv-row">
																<!--begin::Input group-->
																<div class="fv-row mb-7">
																	<!--begin::Label-->
																	<label class="required fw-semibold fs-6 mb-2">Fees </label>
																	<!--end::Label-->
																	<!--begin::Input-->
																	<input class="form-control form-control-solid fw-bold pe-5"  name="servicefees" />
																	<!--end::Input-->
																</div>
																<!--end::Input group-->
																</div>
													<!--end::Col-->
													</div>
												<!--end::Row-->
																	<!--begin::Row-->
												<div class="row row-cols-1 row-cols-sm-1 rol-cols-md-1 row-cols-lg-1">
													
													<!--begin::Col-->
													<div class="col-md-6 fv-row">
																<!--begin::Input group-->
																<div class="fv-row mb-7">
																	<!--begin::Label-->
																	<label class="required fw-semibold fs-6 mb-2">Remarks </label>
																	<!--end::Label-->
																	<!--begin::Input-->
																	<textarea class="form-control form-control-solid fw-bold pe-5"  name="isremark" required></textarea>
																	<!--end::Input-->
																</div>
																<!--end::Input group-->
																</div>
													<!--end::Col-->
													</div>
												<!--end::Row-->
																			
															<!--end::Scroll-->
															<!--begin::Actions-->
															<div class="text-center pt-15">
																<button type="reset" class="btn btn-light me-3" data-kt-users-modal-action="cancel" data-bs-dismiss="modal" data-bs-dismiss="modal">Discard</button>
																<button type="submit" class="btn btn-primary" data-kt-users-modal-action="submit">
																	<span class="indicator-label">Submit</span>
																	<span class="indicator-progress">Please wait...
																	<span class="spinner-border spinner-border-sm align-middle ms-2"></span></span>
																</button>
															</div>
															
															<!--end::Actions-->
														</form>
														<!--end::Form-->
													</div>
										<!--end::Modal body-->
									</div>
									<!--end::Modal content-->
								</div>
								<!--end::Modal dialog-->
							</div>
							<!--end::Modal - Student Service-->
						<!--begin::Modal - Student Course-->
							<div class="modal fade" id="add_student_course" tabindex="-1" aria-hidden="true">
								<!--begin::Modal dialog-->
								<div class="modal-dialog modal-dialog-centered mw-750px">
									<!--begin::Modal content-->
									<div class="modal-content rounded">
										<!--begin::Modal header-->
										<div class="modal-header pb-10 border-0 justify-content-end">
										<div class="card-title text-uppercase ">
														<h2>Add Course</h2>
													</div>
											<!--begin::Close-->
											<div class="btn btn-sm btn-icon btn-active-color-primary" data-bs-dismiss="modal">
												<!--begin::Svg Icon | path: icons/duotune/arrows/arr061.svg-->
												<span class="svg-icon svg-icon-1">
													<svg width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg">
														<rect opacity="0.5" x="6" y="17.3137" width="16" height="2" rx="1" transform="rotate(-45 6 17.3137)" fill="currentColor" />
														<rect x="7.41422" y="6" width="16" height="2" rx="1" transform="rotate(45 7.41422 6)" fill="currentColor" />
													</svg>
												</span>
												<!--end::Svg Icon-->
											</div>
											<!--end::Close-->
										</div>
										<!--begin::Modal header-->
										<!--begin::Modal body-->
										<div class="modal-body scroll-y px-10 px-lg-15 pt-0 pb-15">
											<!--begin::Form-->
														<form id="kt_modal_add_user_form" class="form" action="counsellingdetailadd2.php" method="POST">
														<input type="hidden" name="imid1" value="<?php echo $imid; ?>">
															<!--begin::Scroll-->
															<!--begin::Row-->
												<div class="row row-cols-1 row-cols-sm-2 rol-cols-md-1 row-cols-lg-2">
													
													<!--begin::Col-->
													<div class="col-md-6 fv-row">
																<!--begin::Input group-->
																<div class="fv-row mb-7">
																	<!--begin::Label-->
																	<label class=" fw-semibold fs-6 mb-2"> Inquiry</label>
																	<!--end::Label-->
																	<!--begin::Input-->
																	<select class="form-select form-select-solid" data-control="select2"   name="stiqmid" >
																	<option value="0">Select</option>
													<?php 
																			$eve1 = "select * from res_studentinquiry_detail where imid=".$_GET['id'];

																			$re1 = mysqli_query($conn, $eve1);
																			
																			while($rt1 = mysqli_fetch_assoc($re1))

																			{	$siprefferservice=$rt1['siprefferservice'];$siprefferedsubservice=$rt1['siprefferedsubservice'];
																			
																			echo $eves = "select * from res_subservice_master where subservicemid = $siprefferedsubservice ";
																			$res = mysqli_query($conn, $eves);
																			
																			while($rts = mysqli_fetch_assoc($res))

																			{
																				$subservicename = $rts['subservicename'];
																			}
																			
																			
																			$siprefferedcountry=$rt1['siprefferedcountry'];
																			
																			$evec = "select * from  res_country_master where countrymid = $siprefferedcountry ";
																			$rec = mysqli_query($conn, $evec);
																			
																			while($rtc = mysqli_fetch_assoc($rec))

																			{
																				$countryname = $rtc['countryname'];
																			}
																			
																			
																			$stiqmid =$rt1['stiqmid'];
																				$inquirydate=date("d-m-Y",strtotime($rt1['inquirydate']));
																				
																				echo "<option value='$stiqmid'>$siprefferservice - $subservicename - $countryname ($inquirydate)</option>";
																				 
																			}
																			
																	?>
													</select>
																	<!--end::Input-->
																</div>
																<!--end::Input group-->
																</div>
													<!--end::Col-->
													<!--begin::Col-->
													<div class="col-md-6 fv-row">
																<!--begin::Input group-->
																<div class="fv-row mb-7">
																	<!--begin::Label-->
																	<label class=" fw-semibold fs-6 mb-2"> Country</label>
																	<!--end::Label-->
																	<!--begin::Input-->
																	<select class="form-select form-select-solid" data-control="select2"   name="countrymid" id="countrymid2">
																	<option value="0">Select</option>
													<?php 
																			$eve_main = "select * from res_country_master where countrymid in (select countrymid from res_college_master)";
										$re_main = mysqli_query($conn, $eve_main);
										while($rt_main = mysqli_fetch_assoc($re_main))
										{

											$countrymid=$rt_main['countrymid'];
											$countryname=$rt_main['countryname'];
											if($countrymid1==$countrymid)
											{
												echo "<option value='$countrymid' selected>$countryname</option>";
											}
											else
											{
												echo "<option value='$countrymid'>$countryname</option>";
											}

										}
																			
																	?>
													</select>
																	<!--end::Input-->
																</div>
																<!--end::Input group-->
																</div>
													<!--end::Col-->
													</div>
												<!--end::Row-->
																<!--begin::Row-->
												<div class="row row-cols-1 row-cols-sm-2 rol-cols-md-1 row-cols-lg-2">
													
													<!--begin::Col-->
													<div class="col-md-6 fv-row">
																<!--begin::Input group-->
																<div class="fv-row mb-7">
																	<!--begin::Label-->
																	<label class="required fw-semibold fs-6 mb-2">Course </label>
																	<!--end::Label-->
																	<!--begin::Input-->
																	<select class="form-select form-select-solid" data-control="select2" name="coursemid" id="coursemid2">
										<option value="0">Select Course</option>
									</select>
										
									</select>
																	<!--end::Input-->
																</div>
																<!--end::Input group-->
																</div>
													<!--end::Col-->
													
													<!--begin::Col-->
													<div class="col-md-6 fv-row">
																<!--begin::Input group-->
																<div class="fv-row mb-7">
																	<!--begin::Label-->
																	<label class="required fw-semibold fs-6 mb-2">College </label>
																	<!--end::Label-->
																	<!--begin::Input-->
																	<select class="form-select form-select-solid" data-control="select2" name="collegemid" id="collegemid2" required>
										<option value="0">Select College</option>
										
									</select>
																	<!--end::Input-->
																</div>
																<!--end::Input group-->
																</div>
													<!--end::Col-->
													</div>
												<!--end::Row-->
																	<!--begin::Row-->
												<div class="row row-cols-1 row-cols-sm-2 rol-cols-md-1 row-cols-lg-2">
													<!--begin::Col-->
													<div class="col-md-6 fv-row">
																<!--begin::Input group-->
																<div class="fv-row mb-7">
																	<!--begin::Label-->
																	<label class="required fw-semibold fs-6 mb-2">Credentials </label>
																	<!--end::Label-->
																	<!--begin::Input-->
																	
																	<input type="text" name="levelofstudy" id="levelofstudy"  class="form-control form-control-solid fw-bold pe-5" aria-required="true" aria-invalid="false" aria-describedby="name-error" readonly>
																	<!--end::Input-->
																</div>
																<!--end::Input group-->
																</div>
													<!--end::Col-->
													
													<!--begin::Col-->
													<div class="col-md-6 fv-row">
																<!--begin::Input group-->
																<div class="fv-row mb-7">
																	<!--begin::Label-->
																	<label class="required fw-semibold fs-6 mb-2">Duration </label>
																	<!--end::Label-->
																	<!--begin::Input-->
																	<input type="text" name="cmduration" id="cmduration"  class="form-control form-control-solid fw-bold pe-5" aria-required="true" aria-invalid="false" aria-describedby="name-error" readonly>
																	<!--end::Input-->
																</div>
																<!--end::Input group-->
																</div>
													<!--end::Col-->
													</div>
												<!--end::Row-->
																		<!--begin::Row-->
												<div class="row row-cols-1 row-cols-sm-2 rol-cols-md-1 row-cols-lg-2">
													<!--begin::Col-->
													<div class="col-md-6 fv-row">
																<!--begin::Input group-->
																<div class="fv-row mb-7">
																	<!--begin::Label-->
																	<label class="required fw-semibold fs-6 mb-2">Eligiblity </label>
																	<!--end::Label-->
																	<!--begin::Input-->
																	<input type="text" name="cmeligibility" id="cmeligibility"  class="form-control form-control-solid fw-bold pe-5" aria-required="true" aria-invalid="false" aria-describedby="name-error" readonly>
																	<!--end::Input-->
																</div>
																<!--end::Input group-->
																</div>
													<!--end::Col-->
													
													<!--begin::Col-->
													<div class="col-md-6 fv-row">
																<!--begin::Input group-->
																<div class="fv-row mb-7">
																	<!--begin::Label-->
																	<label class="required fw-semibold fs-6 mb-2">Facility </label>
																	<!--end::Label-->
																	<!--begin::Input-->
																	<input type="text" name="cmfacility" id="cmfacility"  class="form-control form-control-solid fw-bold pe-5" aria-required="true" aria-invalid="false" aria-describedby="name-error" readonly>
																	<!--end::Input-->
																</div>
																<!--end::Input group-->
																</div>
													<!--end::Col-->
													</div>
												<!--end::Row-->
																			<!--begin::Row-->
												<div class="row row-cols-1 row-cols-sm-2 rol-cols-md-1 row-cols-lg-2">
													<!--begin::Col-->
													<div class="col-md-6 fv-row">
																<!--begin::Input group-->
																<div class="fv-row mb-7">
																	<!--begin::Label-->
																	<label class="required fw-semibold fs-6 mb-2">Document </label>
																	<!--end::Label-->
																	<!--begin::Input-->
																	<input type="text" name="cmdocument" id="cmdocument"  class="form-control form-control-solid fw-bold pe-5" aria-required="true" aria-invalid="false" aria-describedby="name-error" readonly>
																	<!--end::Input-->
																</div>
																<!--end::Input group-->
																</div>
													<!--end::Col-->
													
													<!--begin::Col-->
													<div class="col-md-6 fv-row">
																<!--begin::Input group-->
																<div class="fv-row mb-7">
																	<!--begin::Label-->
																	<label class="required fw-semibold fs-6 mb-2">Course Fees </label>
																	<!--end::Label-->
																	<!--begin::Input-->
																	<input type="text" name="cmfees" id="cmfees" class="form-control form-control-solid fw-bold pe-5" aria-required="true" readonly>
																	<!--end::Input-->
																</div>
																<!--end::Input group-->
																</div>
													<!--end::Col-->
													
													</div>
												<!--end::Row-->
												<!--begin::Row-->
												<div class="row row-cols-1 row-cols-sm-1 rol-cols-md-1 row-cols-lg-1">
													<!--begin::Col-->
													<div class="col-md-6 fv-row">
																<!--begin::Input group-->
																<div class="fv-row mb-7">
																	<!--begin::Label-->
																	<label class="required fw-semibold fs-6 mb-2">Remark </label>
																	<!--end::Label-->
																	<!--begin::Input-->
																	<textarea type="text" name="coremarks"  class="form-control form-control-solid fw-bold pe-5" aria-required="true" aria-invalid="false" aria-describedby="name-error" ></textarea>
																	<!--end::Input-->
																</div>
																<!--end::Input group-->
																</div>
													<!--end::Col-->
													</div>
												<!--end::Row-->
																			
															<!--end::Scroll-->
															<!--begin::Actions-->
															<div class="text-center pt-15">
																<button type="reset" class="btn btn-light me-3" data-kt-users-modal-action="cancel" data-bs-dismiss="modal" data-bs-dismiss="modal">Discard</button>
																<button type="submit" class="btn btn-primary" data-kt-users-modal-action="submit">
																	<span class="indicator-label">Submit</span>
																	<span class="indicator-progress">Please wait...
																	<span class="spinner-border spinner-border-sm align-middle ms-2"></span></span>
																</button>
															</div>
															
															<!--end::Actions-->
														</form>
														<!--end::Form-->
													</div>
										<!--end::Modal body-->
									</div>
									<!--end::Modal content-->
								</div>
								<!--end::Modal dialog-->
							</div>
							<!--end::Modal - Student Course-->
						<!--begin::Modal - Student College Application-->
							<div class="modal fade" id="student_add_college_application" tabindex="-1" aria-hidden="true">
								<!--begin::Modal dialog-->
								<div class="modal-dialog modal-dialog-centered mw-750px">
									<!--begin::Modal content-->
									<div class="modal-content rounded">
										<!--begin::Modal header-->
										<div class="modal-header pb-10 border-0 ">
										<div class="card-title text-uppercase ">
														<h2>Add College Application</h2>
													</div>
											<!--begin::Close-->
											<div class="btn btn-sm btn-icon btn-active-color-primary justify-content-end" data-bs-dismiss="modal">
												<!--begin::Svg Icon | path: icons/duotune/arrows/arr061.svg-->
												<span class="svg-icon svg-icon-1">
													<svg width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg">
														<rect opacity="0.5" x="6" y="17.3137" width="16" height="2" rx="1" transform="rotate(-45 6 17.3137)" fill="currentColor" />
														<rect x="7.41422" y="6" width="16" height="2" rx="1" transform="rotate(45 7.41422 6)" fill="currentColor" />
													</svg>
												</span>
												<!--end::Svg Icon-->
											</div>
											<!--end::Close-->
										</div>
										<!--begin::Modal header-->
										<!--begin::Modal body-->
										<div class="modal-body scroll-y px-10 px-lg-15 pt-0 pb-15">
											<!--begin::Form-->
														<form id="kt_modal_add_user_form" class="form" action="clgapplication.php" method="POST">
														<input type="hidden" name="imid1" value="<?php echo $imid; ?>">
															<!--begin::Scroll-->
															<!--begin::Row-->
												<div class="row row-cols-1 row-cols-sm-2 rol-cols-md-1 row-cols-lg-2">
													
													<!--begin::Col-->
													<div class="col-md-6 fv-row">
																<!--begin::Input group-->
																<div class="fv-row mb-7">
																	<!--begin::Label-->
																	<label class=" fw-semibold fs-6 mb-2"> Inquiry</label>
																	<!--end::Label-->
																	<!--begin::Input-->
																	<select class="form-select form-select-solid" data-control="select2"   name="stiqmid" >
																	<option value="0">Select</option>
													<?php 
																			$eve1 = "select * from res_studentinquiry_detail where imid=".$_GET['id'];

																			$re1 = mysqli_query($conn, $eve1);
																			
																			while($rt1 = mysqli_fetch_assoc($re1))

																			{	$siprefferservice=$rt1['siprefferservice'];$siprefferedsubservice=$rt1['siprefferedsubservice'];
																			
																			echo $eves = "select * from res_subservice_master where subservicemid = $siprefferedsubservice ";
																			$res = mysqli_query($conn, $eves);
																			
																			while($rts = mysqli_fetch_assoc($res))

																			{
																				$subservicename = $rts['subservicename'];
																			}
																			
																			
																			$siprefferedcountry=$rt1['siprefferedcountry'];
																			
																			$evec = "select * from  res_country_master where countrymid = $siprefferedcountry ";
																			$rec = mysqli_query($conn, $evec);
																			
																			while($rtc = mysqli_fetch_assoc($rec))

																			{
																				$countryname = $rtc['countryname'];
																			}
																			
																			
																			$stiqmid =$rt1['stiqmid'];
																				$inquirydate=date("d-m-Y",strtotime($rt1['inquirydate']));
																				
																				echo "<option value='$stiqmid'>$siprefferservice - $subservicename - $countryname ($inquirydate)</option>";
																				 
																			}
																			
																	?>
													</select>
																	<!--end::Input-->
																</div>
																<!--end::Input group-->
																</div>
													<!--end::Col-->
													<!--begin::Col-->
													<div class="col-md-6 fv-row">
																<!--begin::Input group-->
																<div class="fv-row mb-7">
																	<!--begin::Label-->
																	<label class=" fw-semibold fs-6 mb-2"> Country</label>
																	<!--end::Label-->
																	<!--begin::Input-->
																	<select class="form-select form-select-solid" data-control="select2"   name="countrymid" id="countrymid1">
																	<option value="0">Select</option>
													<?php 
																			$eve_main = "select * from res_country_master where countrymid in (select countrymid from res_college_master)";
										$re_main = mysqli_query($conn, $eve_main);
										while($rt_main = mysqli_fetch_assoc($re_main))
										{

											$countrymid=$rt_main['countrymid'];
											$countryname=$rt_main['countryname'];
											if($countrymid1==$countrymid)
											{
												echo "<option value='$countrymid' selected>$countryname</option>";
											}
											else
											{
												echo "<option value='$countrymid'>$countryname</option>";
											}

										}
																			
																	?>
													</select>
																	<!--end::Input-->
																</div>
																<!--end::Input group-->
																</div>
													<!--end::Col-->
													</div>
												<!--end::Row-->
																<!--begin::Row-->
												<div class="row row-cols-1 row-cols-sm-2 rol-cols-md-1 row-cols-lg-2">
													
													<!--begin::Col-->
													<div class="col-md-6 fv-row">
																<!--begin::Input group-->
																<div class="fv-row mb-7">
																	<!--begin::Label-->
																	<label class="required fw-semibold fs-6 mb-2">Course </label>
																	<!--end::Label-->
																	<!--begin::Input-->
																	<select class="form-select form-select-solid" data-control="select2" name="coursemid" id="coursemid1">
										<option value="0">Select Course</option>
									<?php																				$eve_main = "select * from res_course_master where coursemid in (select coursemid from res_counselling_detail where imid=".$_GET['id'].")";
										$re_main = mysqli_query($conn, $eve_main);
										while($rt_main = mysqli_fetch_assoc($re_main))
										{

											$coursemid=$rt_main['coursemid'];
											$cnmid=$rt_main['cnmid'];
											
											if($countrymid1==$countrymid)
											{
												echo "<option value='$countrymid' selected>$countryname</option>";
											}
											else
											{
												echo "<option value='$countrymid'>$countryname</option>";
											}

										}
										?>
									</select>
										
									
																	<!--end::Input-->
																</div>
																<!--end::Input group-->
																</div>
													<!--end::Col-->
													
													<!--begin::Col-->
													<div class="col-md-6 fv-row">
																<!--begin::Input group-->
																<div class="fv-row mb-7">
																	<!--begin::Label-->
																	<label class="required fw-semibold fs-6 mb-2">College </label>
																	<!--end::Label-->
																	<!--begin::Input-->
																	<select class="form-select form-select-solid" data-control="select2" name="collegemid" id="collegemid1" required>
										<option value="0">Select College</option>
										
									</select>
																	<!--end::Input-->
																</div>
																<!--end::Input group-->
																</div>
													<!--end::Col-->
													</div>
												<!--end::Row-->
																	<!--begin::Row-->
												<div class="row row-cols-1 row-cols-sm-2 rol-cols-md-1 row-cols-lg-2">
													<!--begin::Col-->
													<div class="col-md-6 fv-row">
																<!--begin::Input group-->
																<div class="fv-row mb-7">
																	<!--begin::Label-->
																	<label class=" fw-semibold fs-6 mb-2">Remarks </label>
																	<!--end::Label-->
																	<!--begin::Input-->
																	
																	<input type="text" name="coremarks" id="coremarks"  class="form-control form-control-solid fw-bold pe-5" aria-required="true" aria-invalid="false" aria-describedby="name-error" />
																	<!--end::Input-->
																</div>
																<!--end::Input group-->
																</div>
													<!--end::Col-->
													
													<!--begin::Col-->
													<div class="col-md-6 fv-row">
																<!--begin::Input group-->
																<div class="fv-row mb-7">
																	<!--begin::Label-->
																	<label class="required fw-semibold fs-6 mb-2">Course Fees </label>
																	<!--end::Label-->
																	<!--begin::Input-->
																	<input type="text" name="coursefees" id="coursefees"  class="form-control form-control-solid fw-bold pe-5" aria-required="true" aria-invalid="false" aria-describedby="name-error" required>
																	<!--end::Input-->
																</div>
																<!--end::Input group-->
																</div>
													<!--end::Col-->
													</div>
												<!--end::Row-->
																		<!--begin::Row-->
												<div class="row row-cols-1 row-cols-sm-2 rol-cols-md-1 row-cols-lg-2">
													<!--begin::Col-->
													<div class="col-md-6 fv-row">
																<!--begin::Input group-->
																<div class="fv-row mb-7">
																	<!--begin::Label-->
																	<label class="required fw-semibold fs-6 mb-2">Status </label>
																	<!--end::Label-->
																	<!--begin::Input-->
																	<select class="form-select form-select-solid" data-control="select2"   name="capstatus" id="status12">
																	<option value="0">Select</option>
																	<option value="New">New</option>
																	<option value="Application Recevied">Application Recevied</option>
													
													</select>
																	<!--end::Input-->
																</div>
																<!--end::Input group-->
																</div>
													<!--end::Col-->
													
													<!--begin::Col-->
													<div class="col-md-6 fv-row">
																<!--begin::Input group-->
																<div class="fv-row mb-7">
																	<!--begin::Label-->
																	<label class="required fw-semibold fs-6 mb-2">Inquiry Date </label>
																	<!--end::Label-->
																	<!--begin::Input-->
																	<input class="form-control form-control-solid fw-bold pe-5" placeholder="Select date" name="doapplication" id="kt_daterangepicker_11"/>
																	<!--end::Input-->
																</div>
																<!--end::Input group-->
																</div>
													<!--end::Col-->
													</div>
												<!--end::Row-->
																			
															<!--end::Scroll-->
															<!--begin::Actions-->
															<div class="text-center pt-15">
																<button type="reset" class="btn btn-light me-3" data-kt-users-modal-action="cancel" data-bs-dismiss="modal" data-bs-dismiss="modal">Discard</button>
																<button type="submit" class="btn btn-primary" data-kt-users-modal-action="submit">
																	<span class="indicator-label">Submit</span>
																	<span class="indicator-progress">Please wait...
																	<span class="spinner-border spinner-border-sm align-middle ms-2"></span></span>
																</button>
															</div>
															
															<!--end::Actions-->
														</form>
														<!--end::Form-->
													</div>
										<!--end::Modal body-->
									</div>
									<!--end::Modal content-->
								</div>
								<!--end::Modal dialog-->
							</div>
							<!--end::Modal - Student College Application-->
						
						<!--end::Modal - Add task-->
						<!--begin::Modal - Stage Update-->
							<div class="modal fade" id="view-modal" role="dialog" aria-labelledby="myModalLabel" tabindex="-1" aria-hidden="true">
								<!--begin::Modal dialog-->
								<div class="modal-dialog modal-dialog-centered mw-750px">
									<!--begin::Modal content-->
									<div class="modal-content rounded">
										<!--begin::Modal header-->
										<div class="modal-header pb-10 border-0 justify-content-end">
											<!--begin::Close-->
											<div class="btn btn-sm btn-icon btn-active-color-primary" data-bs-dismiss="modal">
												<!--begin::Svg Icon | path: icons/duotune/arrows/arr061.svg-->
												<span class="svg-icon svg-icon-1">
													<svg width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg">
														<rect opacity="0.5" x="6" y="17.3137" width="16" height="2" rx="1" transform="rotate(-45 6 17.3137)" fill="currentColor" />
														<rect x="7.41422" y="6" width="16" height="2" rx="1" transform="rotate(45 7.41422 6)" fill="currentColor" />
													</svg>
												</span>
												<!--end::Svg Icon-->
											</div>
											<!--end::Close-->
										</div>
										<!--begin::Modal header-->
										<!--begin::Modal body-->
										<div class="modal-body scroll-y px-10 px-lg-15 pt-0 pb-15">
											<!--begin::Form-->
														<form id="kt_modal_add_user_form" class="form" action="stagestatus2.php" method="POST">
														<input type="hidden" name="imid" value="<?php echo $imid; ?>">
															<!--begin::Scroll-->
															<!-- content will be load here -->
															<div id="dynamic-content"></div>
														<!--end::Scroll-->
															<!--begin::Actions-->
															<div class="text-center pt-15">
																<button type="reset" class="btn btn-light me-3" data-kt-users-modal-action="cancel" data-bs-dismiss="modal" data-bs-dismiss="modal">Discard</button>
																<button type="submit" class="btn btn-primary" data-kt-users-modal-action="submit">
																	<span class="indicator-label">Submit</span>
																	<span class="indicator-progress">Please wait...
																	<span class="spinner-border spinner-border-sm align-middle ms-2"></span></span>
																</button>
															</div>
															
															<!--end::Actions-->
														</form>
														<!--end::Form-->
													</div>
										<!--end::Modal body-->
									</div>
									<!--end::Modal content-->
								</div>
								<!--end::Modal dialog-->
							</div>
							<!--end::Modal - Stage Update-->
							<!--begin::Modal - Status Update-->
							<div class="modal fade" id="view-modal1" role="dialog" aria-labelledby="myModalLabel" tabindex="-1" aria-hidden="true">
								<!--begin::Modal dialog-->
								<div class="modal-dialog modal-dialog-centered mw-750px">
									<!--begin::Modal content-->
									<div class="modal-content rounded">
										<!--begin::Modal header-->
										<div class="modal-header pb-0 border-0 justify-content-end">
											<!--begin::Close-->
											<div class="btn btn-sm btn-icon btn-active-color-primary" data-bs-dismiss="modal">
												<!--begin::Svg Icon | path: icons/duotune/arrows/arr061.svg-->
												<span class="svg-icon svg-icon-1">
													<svg width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg">
														<rect opacity="0.5" x="6" y="17.3137" width="16" height="2" rx="1" transform="rotate(-45 6 17.3137)" fill="currentColor" />
														<rect x="7.41422" y="6" width="16" height="2" rx="1" transform="rotate(45 7.41422 6)" fill="currentColor" />
													</svg>
												</span>
												<!--end::Svg Icon-->
											</div>
											<!--end::Close-->
										</div>
										<!--begin::Modal header-->
										<!--begin::Modal body-->
										<div class="modal-body scroll-y px-10 px-lg-15 pt-0 pb-15">
											<!--begin::Form-->
														<form id="kt_modal_add_user_form" class="form" action="status2.php" method="POST">
														<input type="hidden" name="imid" value="<?php echo $imid; ?>">
															<!--begin::Scroll-->
															<!-- content will be load here -->
															<div id="dynamic-content1"></div>
														<!--end::Scroll-->
															<!--begin::Actions-->
															<div class="text-center pt-15">
																<button type="reset" class="btn btn-light me-3" data-kt-users-modal-action="cancel" data-bs-dismiss="modal" data-bs-dismiss="modal">Discard</button>
																<button type="submit" class="btn btn-primary" data-kt-users-modal-action="submit">
																	<span class="indicator-label">Submit</span>
																	<span class="indicator-progress">Please wait...
																	<span class="spinner-border spinner-border-sm align-middle ms-2"></span></span>
																</button>
															</div>
															
															<!--end::Actions-->
														</form>
														<!--end::Form-->
													</div>
										<!--end::Modal body-->
									</div>
									<!--end::Modal content-->
								</div>
								<!--end::Modal dialog-->
							</div>
							<!--end::Modal - Status Update-->
							
									
		<!--end::Modals-->
		<!--begin::Javascript-->
		<script>var hostUrl = "assets/";</script>
		<!--begin::Global Javascript Bundle(mandatory for all pages)-->
		<script src="assets/plugins/global/plugins.bundle.js"></script>
		<script src="assets/js/scripts.bundle.js"></script>
		<!--end::Global Javascript Bundle-->
		<!--begin::Vendors Javascript(used for this page only)-->
		<script src="assets/plugins/custom/datatables/datatables.bundle.js"></script>
		<!--end::Vendors Javascript-->
		<!--begin::Custom Javascript(used for this page only)-->
		<script src="assets/js/widgets.bundle.js"></script>
		<script src="assets/js/custom/widgets.js"></script>
		<script src="assets/js/custom/apps/chat/chat.js"></script>
		<script src="assets/js/custom/utilities/modals/upgrade-plan.js"></script>
		<script src="assets/js/custom/utilities/modals/users-search.js"></script>
		<!--end::Custom Javascript-->
		<script type="text/javascript">
		$(document).ready(function(){
			$("#kt_daterangepicker_1").daterangepicker({
        singleDatePicker: true,
        showDropdowns: true,
        minYear: 1901,
        maxYear: parseInt(moment().format("yyyy"),12),
		locale: {
        format: "DD-M-Y"
    }
    }
);
		});
		</script>
		
		<script type="text/javascript">
		$(document).ready(function(){
			$("#kt_daterangepicker_2").daterangepicker({
        singleDatePicker: true,
		 timePicker: true,
        showDropdowns: true,
        minYear: 1901,
        maxYear: parseInt(moment().format("yyyy"),12),
		  Date: moment().startOf("hour"),
		locale: {
        format: "DD-M-Y hh:mm A"
    }
    }
);
		});
		</script>
		<script type="text/javascript">
		$(document).ready(function(){
			$("#kt_daterangepicker_3").daterangepicker({
        singleDatePicker: true,
		 timePicker: true,
        showDropdowns: true,
        minYear: 1901,
        maxYear: parseInt(moment().format("yyyy"),12),
		  Date: moment().startOf("hour"),
		locale: {
        format: "DD-M-Y hh:mm A"
    }
    }
);
		});
		</script>
		<script type="text/javascript">
		$(document).ready(function(){
			$("#kt_daterangepicker_4").daterangepicker({
        singleDatePicker: true,
        showDropdowns: true,
        minYear: 1901,
        maxYear: parseInt(moment().format("yyyy"),12),
		locale: {
        format: "DD-M-Y"
    }
    }
);
		});
		</script>
		<script type="text/javascript">
		$(document).ready(function(){
			$("#kt_daterangepicker_5").daterangepicker({
        singleDatePicker: true,
        showDropdowns: true,
        minYear: 1901,
        maxYear: parseInt(moment().format("yyyy"),12),
		locale: {
        format: "DD-M-Y"
    }
    }
);
		});
		</script>
		<script type="text/javascript">
		$(document).ready(function(){
			$("#kt_daterangepicker_6").daterangepicker({
        singleDatePicker: true,
        showDropdowns: true,
        minYear: 1901,
        maxYear: parseInt(moment().format("yyyy"),12),
		locale: {
        format: "DD-M-Y"
    }
    }
);
		});
		</script>
		<script type="text/javascript">
		$(document).ready(function(){
			$("#kt_daterangepicker_7").daterangepicker({
        singleDatePicker: true,
        showDropdowns: true,
        minYear: 1901,
        maxYear: parseInt(moment().format("yyyy"),12),
		locale: {
        format: "DD-M-Y"
    }
    }
);
		});
		</script><script type="text/javascript">
		$(document).ready(function(){
			$("#kt_daterangepicker_8").daterangepicker({
        singleDatePicker: true,
        showDropdowns: true,
        minYear: 1901,
        maxYear: parseInt(moment().format("yyyy"),12),
		locale: {
        format: "DD-M-Y"
    }
    }
);
		});
		</script><script type="text/javascript">
		$(document).ready(function(){
			$("#kt_daterangepicker_9").daterangepicker({
        singleDatePicker: true,
        showDropdowns: true,
        minYear: 1901,
        maxYear: parseInt(moment().format("yyyy"),12),
		locale: {
        format: "DD-M-Y"
    }
    }
);
		});
		</script>
		<script type="text/javascript">
		$(document).ready(function(){
			$("#kt_daterangepicker_10").daterangepicker({
        singleDatePicker: true,
        showDropdowns: true,
        minYear: 1901,
        maxYear: parseInt(moment().format("yyyy"),12),
		locale: {
        format: "DD-M-Y"
    }
    }
);
		});
		</script><script type="text/javascript">
		$(document).ready(function(){
			$("#kt_daterangepicker_11").daterangepicker({
        singleDatePicker: true,
        showDropdowns: true,
        minYear: 1901,
        maxYear: parseInt(moment().format("yyyy"),12),
		locale: {
        format: "DD-M-Y"
    }
    }
);
		});
		</script>
		<script type="text/javascript">
		$(document).ready(function(){
			$('#countrymid').on('change',function(){
				var rmid = $(this).val();
				if(rmid){
					$.ajax({
						type:'POST',
						url:'salesdata.php',
						data:'rmid='+rmid,
						success:function(html){
							$('#collegmid').html(html);
						}
					}); 
				}else{
					$('#collegmid').html('<option value="0">No Data Found</option>'); 
				}
			});
		});
		</script>
		<script type="text/javascript">
		$(document).ready(function(){
			
				var rmid = $('#countrymid').val();
				if(rmid){
					$.ajax({
						type:'POST',
						url:'salesdata.php',
						data:'rmid='+rmid,
						success:function(html){
							$('#collegmid').html(html);
						}
					}); 
				}else{
					$('#collegmid').html('<option value="0">No Data Found</option>'); 
				}
			
		});
		</script>
		 <script type="text/javascript">
      $(document).ready(function(){
        $("#followup").hide();
        
       
        $("#nextfup").change(function () {
          if ($(this).val() == "1") {
            $("#followup").show();
          
          }
          else {
            $("#followup").hide();
            
          }
        }
                             );
      }
                       );
    </script> 
	
	<script type="text/javascript">
      $(document).ready(function(){
        $("#intake").hide();
        $("#college").hide();
        $("#course").hide();
       
        $("#siprefferservice").change(function () {
          if ($(this).val() == "Student Visa") {
            $("#intake").show();
            $("#college").show();
            $("#course").show();
          }
          else {
            $("#intake").hide();
            $("#college").hide();
            $("#course").hide();
          }
        }
                             );
      }
                       );
    </script> 


	<script type="text/javascript">
      $(document).ready(function(){
        $("#ielts").show();
        $("#gre").hide();
        $("#sat").hide();
		$("#tef").hide();
      
       
        $("#iieltstestname").change(function () {
          if ($(this).val() == "IELTS" || $(this).val() == "CLEB" || $(this).val() == "TOEFL" || $(this).val() == "PTE" || $(this).val() == "TEF") {
            $("#ielts").show();
            $("#gre").hide();
            $("#sat").hide();
			
			if( $(this).val() == "TEF")
			{
				 $("#tef").show();
				 $("#overall").hide();
			}else{
				$("#tef").hide();
				 $("#overall").show();
			}
           
          }
          else if($(this).val() == "GRE" ){
            $("#ielts").hide();
            $("#gre").show();
            $("#sat").hide();
           
          }else{
			  $("#ielts").hide();
            $("#gre").hide();
            $("#sat").show();
		  }
        }
                             );
      }
                       );
    </script> 
	</script><script type="text/javascript">
		$(document).ready(function(){
			$('#ipbirthcountry').on('change',function(){
				var ipbirthcountry = $(this).val();
				if(ipbirthcountry){
					$.ajax({
						type:'POST',
						url:'getstatedata.php',
						data:'ipbirthcountry='+ipbirthcountry,
						success:function(html){
							$('#ibirthstate').html(html);
						}
					}); 
				}else{
					$('#ibirthstate').html('<option value="0">No Data Found</option>'); 
				}
			});
		});
		</script>
		<script type="text/javascript">
		$(document).ready(function(){
			
				var ipbirthcountry = $('#ipbirthcountry').val();
				//alert(ipbirthcountry);
				if(ipbirthcountry){
					
					$.ajax({
						
						type:'POST',
						url:'getstatedata.php',
						data:'ipbirthcountry='+ipbirthcountry,
						success:function(html){
							
							$('#ibirthstate').html(html);
						}
					}); 
				}else{
					$('#ibirthstate').html('<option value="0">No Data Found</option>'); 
				}
			
		});
		</script>
		<script type="text/javascript">
		$(document).ready(function(){
			$('#ibirthstate').on('change',function(){
				var ibirthstate = $(this).val();
				//alert(ibirthstate);
				if(ibirthstate){
					$.ajax({
						type:'POST',
						url:'getcitydata.php',
						data:'ibirthstate='+ibirthstate,
						success:function(html){
							$('#ipbirthcity').html(html);
						}
					}); 
				}else{
					$('#ipbirthcity').html('<option value="0">No Data Found</option>'); 
				}
			});
		});
		</script>
		<script type="text/javascript">
		$(document).ready(function(){
			
				var ibirthstate = $('#ibirthstate').val();
				//alert(ibirthstate);
				if(ibirthstate){
					$.ajax({
						type:'POST',
						url:'getcitydata.php',
						data:'ibirthstate='+ibirthstate,
						success:function(html){
							$('#ipbirthcity').html(html);
						}
					}); 
				}else{
					$('#ipbirthcity').html('<option value="0">No Data Found1</option>'); 
				}
			
		});
		</script>
		
		<script type="text/javascript">
		$(document).ready(function(){
			$('#companymid').on('change',function(){
				var companymid = $(this).val();
				//alert(ibirthstate);
				if(companymid){
					$.ajax({
						type:'POST',
						url:'getbankdata.php',
						data:'companymid='+companymid,
						success:function(html){
							$('#bankmid').html(html);
						}
					}); 
				}else{
					$('#bankmid').html('<option value="0">No Data Found</option>'); 
				}
			});
		});
		</script>
		<script type="text/javascript">
		$(document).ready(function(){
			
				var companymid = $('#companymid').val();
				//alert(ibirthstate);
				if(companymid){
					$.ajax({
						type:'POST',
						url:'getbankdata.php',
						data:'companymid='+companymid,
						success:function(html){
							$('#bankmid').html(html);
						}
					}); 
				}else{
					$('#bankmid').html('<option value="0">No Data Found1</option>'); 
				}
			
		});
		</script>
		
		<script>
		$('#isdid').on('change',function()
		{
			$.get("paymenttotalamt.php", { isdid : $(this).val() }, function(response) 
			{
				$('#paytotalamount1').val( $.trim(response) );

			});
			$.get("paymentreceivedamt.php", { isdid : $(this).val() }, function(response) 
			{
				$('#payrecivedamt1').val( $.trim(response) );

			});
			$.get("paymentpendingamt.php", { isdid : $(this).val() }, function(response) 
			{
				$('#paypendingamt1').val( $.trim(response) );

			});
		});
		</script>
		<script>
		
			$.get("paymenttotalamt.php", { isdid : $('#isdid').val() }, function(response) 
			{
				$('#paytotalamount1').val( $.trim(response) );

			});
			$.get("paymentreceivedamt.php", { isdid : $('#isdid').val() }, function(response) 
			{
				$('#payrecivedamt1').val( $.trim(response) );

			});
			$.get("paymentpendingamt.php", { isdid : $('#isdid').val() }, function(response) 
			{
				$('#paypendingamt1').val( $.trim(response) );

			});
		
		</script>
		<script type="text/javascript">
		$(document).ready(function(){
			$('#siprefferservice').on('change',function(){
				var siprefferservice = $(this).val();
				//alert(ibirthstate);
				if(siprefferservice){
					$.ajax({
						type:'POST',
						url:'getsubservicedata.php',
						data:'siprefferservice='+siprefferservice,
						success:function(html){
							$('#subservice').html(html);
						}
					}); 
				}else{
					$('#subservice').html('<option value="0">No Data Found</option>'); 
				}
			});
		});
		</script>
		<script type="text/javascript">
		$(document).ready(function(){
			
				var siprefferservice = $('#siprefferservice').val();
				//alert(ibirthstate);
				if(siprefferservice){
					$.ajax({
						type:'POST',
						url:'getsubservicedata.php',
						data:'siprefferservice='+siprefferservice,
						success:function(html){
							$('#subservice').html(html);
						}
					}); 
				}else{
					$('#subservice').html('<option value="0">No Data Found1</option>'); 
				}
			
		});
		</script>
		
		<script type="text/javascript">
		$(document).ready(function(){
			$('#stiqmid').on('change',function(){
				var stiqmid = $(this).val();
				//alert(ibirthstate);
				if(stiqmid){
					$.ajax({
						type:'POST',
						url:'getdocumentdata.php',
						data:'stiqmid='+stiqmid,
						success:function(html){
							$('#idmid').html(html);
						}
					}); 
				}else{
					$('#idmid').html('<option value="0">No Data Found</option>'); 
				}
			});
		});
		</script>
		<script type="text/javascript">
		$(document).ready(function(){
			
				var stiqmid = $('#stiqmid').val();
				//alert(ibirthstate);
				if(stiqmid){
					$.ajax({
						type:'POST',
						url:'getdocumentdata.php',
						data:'stiqmid='+stiqmid,
						success:function(html){
							$('#idmid').html(html);
						}
					}); 
				}else{
					$('#idmid').html('<option value="0">No Data Found1</option>'); 
				}
			
		});
		</script>
		
		<?php

if(isset($_SESSION['msg']))
{
	$tt = $_SESSION['msg'];
	echo "<input type=\"hidden\" id=\"mymsg\" value=\"$tt\"/>";
	unset($_SESSION['msg']);
	
	
?>	
								
		<script lang="javascript">

var a = [
    function () {
	

		var mymsg = document.getElementById("mymsg").value;
		toastr.success(mymsg, "Operation Completed")
		
    },
    function () {
        $('span').show();
    },
    function () {
        $('p').fadeIn(100);
    }
];		
					

a[0]();
</script>


		
	
<?php
}

if(isset($_SESSION['msg1']))
{
	$tt1 = $_SESSION['msg1'];
	echo "<input type=\"hidden\" id=\"mymsg1\" value=\"$tt1\"/>";
	unset($_SESSION['msg1']);
	
	
	?>	
								
		<script lang="javascript">

var a = [
    function () {
	

		var mymsg = document.getElementById("mymsg1").value;
		toastr.warning(mymsg, "Error")
		
    },
    function () {
        $('span').show();
    },
    function () {
        $('p').fadeIn(100);
    }
];		
					

a[0]();
</script>
	
<?php

}
?>	
<script>
		$(document).ready(function(){

		$(document).on('click', '#getUser', function(e){

			e.preventDefault();

			var uid = $(this).data('id');   // it will get id of clicked row
			
			

			$('#dynamic-content').html(''); // leave it blank before ajax call
			      // load ajax loader

			$.ajax({
				url: 'getstagedata.php',
				type: 'POST',
				data: 'id='+uid,
				dataType: 'html'
			})
			.done(function(data){
				console.log(data);
				$('#dynamic-content').html('');
				$('#dynamic-content').html(data); // load response
						  // hide ajax loader
			})
			.fail(function(){
				$('#dynamic-content').html('<i class="glyphicon glyphicon-info-sign"></i> Something went wrong, Please try again...');
				
			});

		});
	});

	

</script>	

	<script>
		$(document).ready(function(){

		$(document).on('click', '#getUser1', function(e){

			e.preventDefault();

			var uid = $(this).data('id');   // it will get id of clicked row
			
			

			$('#dynamic-content1').html(''); // leave it blank before ajax call
			      // load ajax loader

			$.ajax({
				url: 'status.php',
				type: 'POST',
				data: 'id='+uid,
				dataType: 'html'
			})
			.done(function(data){
				console.log(data);
				$('#dynamic-content1').html('');
				$('#dynamic-content1').html(data); // load response
						  // hide ajax loader
			})
			.fail(function(){
				$('#dynamic-content1').html('<i class="glyphicon glyphicon-info-sign"></i> Something went wrong, Please try again...');
				
			});

		});
	});

	

</script>	

<script>
		$(document).ready(function(){

		$(document).on('click', '#documentadd', function(e){

			e.preventDefault();

			var uid = $(this).data('id');   // it will get id of clicked row
			
			

			$('#dynamic-content3').html(''); // leave it blank before ajax call
			      // load ajax loader

			$.ajax({
				url: 'inquirydocumentadd.php',
				type: 'POST',
				data: 'id='+uid,
				dataType: 'html'
			})
			.done(function(data){
				console.log(data);
				$('#dynamic-content3').html('');
				$('#dynamic-content3').html(data); // load response
						  // hide ajax loader
			})
			.fail(function(){
				$('#dynamic-content3').html('<i class="glyphicon glyphicon-info-sign"></i> Something went wrong, Please try again...');
				
			});

		});
	});

	

</script>	
<script type="text/javascript">
	$(function()
	{
		$('#myForm').submit(function(e)
		{
			if($('#countrymid1').val() == '0')
			{
				alert('Select Country!');
				e.preventDefault();
			}

		});
	});
	</script>
    


		<script type="text/javascript">
			$(document).ready(function(){
				$('#countrymid1').on('change',function(){
					var countrymid = $(this).val();
					//alert(countrymid);
					if(countrymid){
						$.ajax({
							type:'POST',
							url:'countrydata.php',
							data:'countrymid='+countrymid,
							success:function(html){
								$('#coursemid1').html(html);
							}
						});
					}else{
						$('#coursemid1').html('<option value=""></option>');
					}
				});
			});
	</script>
	<script type="text/javascript">
			$(document).ready(function(){
				$('#countrymid2').on('change',function(){
					var countrymid = $(this).val();
					//alert(countrymid);
					if(countrymid){
						$.ajax({
							type:'POST',
							url:'countrydata.php',
							data:'countrymid='+countrymid,
							success:function(html){
								$('#coursemid2').html(html);
							}
						});
					}else{
						$('#coursemid2').html('<option value=""></option>');
					}
				});
			});
	</script>
	
	 <script type="text/javascript">
	$(function()
	{
		$('#myForm').submit(function(e)
		{
			if($('#coursemid1').val() == '0')
			{
				alert('Select Course!');
				e.preventDefault();
			}

		});
	});
	</script>
    


		<script type="text/javascript">
			$(document).ready(function(){
				$('#coursemid1').on('change',function(){
					var coursemid = $(this).val();
					if(coursemid){
						$.ajax({
							type:'POST',
							url:'collegedata.php',
							data:'coursemid='+coursemid,
							success:function(html){
								$('#collegemid1').html(html);
							}
						});
					}else{
						$('#collegemid1').html('<option value=""></option>');
					}
				});
			});
	</script>
	<script type="text/javascript">
			$(document).ready(function(){
				$('#coursemid2').on('change',function(){
					var coursemid = $(this).val();
					if(coursemid){
						$.ajax({
							type:'POST',
							url:'collegedata.php',
							data:'coursemid='+coursemid,
							success:function(html){
								$('#collegemid2').html(html);
							}
						});
					}else{
						$('#collegemid2').html('<option value=""></option>');
					}
				});
			});
	</script>
	<script>
$('#coursemid2').on('change',function()
{
	$.get("levelofstudy.php", { coursemid : $(this).val() }, function(response) 
	{
		$('#levelofstudy').val( $.trim(response) );

	});
	$.get("duration.php", { coursemid : $(this).val() }, function(response) 
	{
		$('#cmduration').val( $.trim(response) );

	});
	$.get("eligiblity.php", { coursemid : $(this).val() }, function(response) 
	{
		$('#cmeligibility').val( $.trim(response) );

	});
	$.get("facility.php", { coursemid : $(this).val() }, function(response) 
	{
		$('#cmfacility').val( $.trim(response) );

	});
	$.get("documents.php", { coursemid : $(this).val() }, function(response) 
	{
		$('#cmdocument').val( $.trim(response) );

	});
	$.get("coursefees.php", { coursemid : $(this).val() }, function(response) 
	{
		$('#cmfees').val( $.trim(response) );

	});
});
</script>
<script type="text/javascript">
	
		$('#kt_modal_add_user_form1').submit(function(e)
		{
			if($('#siprefferservice').val() == '0')
			{
				alert('Select Service');
				e.preventDefault();
			}

		});
	
	</script>
	
	
	
	

	
	<script type="text/javascript">
	
		$('#kt_modal_add_user_form2').submit(function(e)
		{
			if($('#stiqmid1').val() == '0')
			{
				alert('Select Inquiry');
				e.preventDefault();
			}

		});
	
	</script><script type="text/javascript">
	
		$('#kt_modal_add_user_form2').submit(function(e)
		{
			if($('#umid1').val() == '0')
			{
				alert('Select User');
				e.preventDefault();
			}

		});
	
	</script>
	<script type="text/javascript">
	
		$('#kt_modal_add_user_form3').submit(function(e)
		{
			if($('#lfrelation').val() == '0')
			{
				alert('Select Relation');
				e.preventDefault();
			}

		});
	
	</script>
 <script type="text/javascript">
	
		$('#kt_modal_add_user_form3').submit(function(e)
		{
			if($('#ipbirthcountry').val() == '0')
			{
				alert('Select Country');
				e.preventDefault();
			}

		});
	
	</script><script type="text/javascript">
	
		$('#kt_modal_add_user_form3').submit(function(e)
		{
			if($('#ibirthstate').val() == '0')
			{
				alert('Select State');
				e.preventDefault();
			}

		});
	
	</script>
	<script type="text/javascript">
	
		$('#kt_modal_add_user_form3').submit(function(e)
		{
			if($('#ipbirthcity').val() == '0')
			{
				alert('Select City');
				e.preventDefault();
			}

		});
	
	</script>
	<script type="text/javascript">
	
		$('#kt_modal_add_user_form5').submit(function(e)
		{
			if($('#iexpcity').val() == '0')
			{
				alert('Select City');
				e.preventDefault();
			}

		});
	
	</script>
	<script type="text/javascript">
	
		$('#kt_modal_add_user_form4').submit(function(e)
		{
			if($('#iieltstestname').val() == '0')
			{
				alert('Select Test ');
				e.preventDefault();
			}

		});
	
	</script><script type="text/javascript">
	
		$('#kt_modal_add_user_form5').submit(function(e)
		{
			if($('#countrymid3').val() == '0')
			{
				alert('Select Country ');
				e.preventDefault();
			}

		});
	
	</script>
	<script type="text/javascript">
	
		$('#kt_modal_add_eduvcation_form').submit(function(e)
		{
			if($('#ietypeofcourse').val() == '0')
			{
				alert('Select Education Level');
				e.preventDefault();
			}

		});
	
	</script>
	<script type="text/javascript">
	
		$('#kt_modal_add_eduvcation_form1').submit(function(e)
		{
			if($('#isdid').val() == '0')
			{
				alert('Select Purpose');
				e.preventDefault();
			}

		});
	
	</script>
 
		<script type="text/javascript">
	
		$('#kt_modal_add_eduvcation_form1').submit(function(e)
		{
			if($('#paymode').val() == '0')
			{
				alert('Select Payment Mode');
				e.preventDefault();
			}

		});
	
	</script>
 <script type="text/javascript">
	
		$('#kt_modal_add_eduvcation_form1').submit(function(e)
		{
			if($('#companymid').val() == '0')
			{
				alert('Select Company');
				e.preventDefault();
			}

		});
	
	</script>
 <script type="text/javascript">
	
		$('#kt_modal_add_eduvcation_form1').submit(function(e)
		{
			if($('#bankmid').val() == '0')
			{
				alert('Select Bank');
				e.preventDefault();
			}

		});
	
	</script>
 <script type="text/javascript">
	
		$('#kt_modal_add_user_form6').submit(function(e)
		{
			if($('#idmid').val() == '0')
			{
				alert('Select Document Type');
				e.preventDefault();
			}

		});
	
	</script>
 
		
	
		<!--end::Javascript-->
	</body>
	<!--end::Body-->
</html>