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

$_SESSION['frompage']='LeadDetail';
include("connect.php");
?>
<!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
					
	
	
	
	date_default_timezone_set("Asia/Kolkata");
		$mdate1= date('Y-m-d H:i:s');
		$mdate= date('d-m-Y');
	$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'];
			}
			
			
			 $full_url = $_SERVER['REQUEST_URI'];

$hash_position = strpos($full_url, "#");

if (isset($_GET['tab'])) {
    $hash_value = $_GET['tab'];
   
} else {
   $hash_value = 'student_detail';
}
	
?>
					<!--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' || $_SESSION['utype'] == 'applicationmanager')
										{
											?>
										<li class="nav-item">
											<a class="nav-link text-active-primary pb-4  <?php if($hash_value == 'student_detail'){ echo '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' )
										
										{
											?>
										<!--begin:::Tab item-->
										<li class="nav-item">
											<a class="nav-link text-active-primary pb-4 <?php if($hash_value == 'student_familydetail'){ echo 'active'; }?> 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 <?php if($hash_value == 'student_education'){ echo 'active'; }?> 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 <?php if($hash_value == 'student_document'){ echo 'active'; }?> 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 <?php if($hash_value == 'student_application'){ echo 'active'; }?> text-uppercase" data-bs-toggle="tab" href="#student_application">Application</a>
										</li>
										<!--end:::Tab item-->
										<?php } if($_SESSION['utype']=='branchmanager' || $_SESSION['utype']=='counseller' || $_SESSION['utype'] == 'admin' || $_SESSION['utype'] == 'receptionist'|| $_SESSION['utype'] == 'visafilemanager'  || $_SESSION['utype'] == 'applicationteammember')
										
										{
											?>
										<!--begin:::Tab item-->
										<li class="nav-item">
											<a class="nav-link text-active-primary pb-4 <?php if($hash_value == 'student_visa'){ echo 'active'; }?> text-uppercase" data-bs-toggle="tab" href="#student_visa">Visa</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 <?php if($hash_value == 'student_payment'){ echo 'active'; }?> text-uppercase" data-bs-toggle="tab" href="#student_payment">Payment</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' || $_SESSION['utype'] == 'applicationmanager')
										
										{
											?>
										<!--begin:::Tab item-->
										<li class="nav-item">
											<a class="nav-link text-active-primary pb-4 <?php if($hash_value == 'student_councelling'){ echo 'active'; }?> text-uppercase" data-bs-toggle="tab" href="#student_councelling">Task Allocation</a>
										</li>
										<!--end:::Tab item-->
										<?php 
											}
										
											?>
									</ul>
									<!--end:::Tabs-->
									<!--begin::Chat-->
									<div class="d-flex align-items-center ms-1 ms-lg-3">
										<!--begin::Menu wrapper-->
										<div class="btn btn-icon btn-active-light-primary position-relative btn btn-icon btn-active-light-primary w-30px h-30px w-md-40px h-md-40px" id="kt_drawer_chat_toggle">
											<!--begin::Svg Icon | path: icons/duotune/communication/com012.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 opacity="0.3" d="M20 3H4C2.89543 3 2 3.89543 2 5V16C2 17.1046 2.89543 18 4 18H4.5C5.05228 18 5.5 18.4477 5.5 19V21.5052C5.5 22.1441 6.21212 22.5253 6.74376 22.1708L11.4885 19.0077C12.4741 18.3506 13.6321 18 14.8167 18H20C21.1046 18 22 17.1046 22 16V5C22 3.89543 21.1046 3 20 3Z" fill="currentColor" />
													<rect x="6" y="12" width="7" height="2" rx="1" fill="currentColor" />
													<rect x="6" y="7" width="12" height="2" rx="1" fill="currentColor" />
												</svg>
											</span>
											<!--end::Svg Icon-->
											<span class="bullet bullet-dot bg-success h-6px w-6px position-absolute translate-middle top-0 start-50 animation-blink"></span>
										</div>
										<!--end::Menu wrapper-->
									</div>
									<!--end::Chat-->
									<!--begin::Chat-->
									<div class="d-flex align-items-center ms-1 ms-lg-3">
										<!--begin::Menu wrapper-->
										<div class="btn btn-icon btn-active-light-primary position-relative btn btn-icon btn-active-light-primary w-30px h-30px w-md-40px h-md-40px" id="kt_drawer_chat_toggle1">
											<!--begin::Svg Icon | path: icons/duotune/communication/com012.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 opacity="0.3" d="M20 3H4C2.89543 3 2 3.89543 2 5V16C2 17.1046 2.89543 18 4 18H4.5C5.05228 18 5.5 18.4477 5.5 19V21.5052C5.5 22.1441 6.21212 22.5253 6.74376 22.1708L11.4885 19.0077C12.4741 18.3506 13.6321 18 14.8167 18H20C21.1046 18 22 17.1046 22 16V5C22 3.89543 21.1046 3 20 3Z" fill="currentColor" />
													<rect x="6" y="12" width="7" height="2" rx="1" fill="currentColor" />
													<rect x="6" y="7" width="12" height="2" rx="1" fill="currentColor" />
												</svg>
											</span>
											<!--end::Svg Icon-->
											<span class="bullet bullet-dot bg-success h-6px w-6px position-absolute translate-middle top-0 start-50 animation-blink"></span>
										</div>
										<!--end::Menu wrapper-->
									</div>
									<!--end::Chat-->
									
									<!--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 <?php if($hash_value == 'student_detail'){ echo '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"> Alternative 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>
                 
                 
                </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' || $_SESSION['utype'] == 'admin')
												{
													$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">Preferred Institutions</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>Upcoming Follow Up</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 } ?>
											
											<!--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>
																	<th class="min-w-70px">Update</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 ustatus=0 and 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'];									
								
								
								$ufmid=$rt1['ufmid'];
								$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']));
										}
									}
								
									$aa = '<a href="#" data-bs-toggle="modal" data-id="'.$ufmid.'" data-bs-target="#kt_modal_update_followp" class="btn btn-sm btn-primary align-self-center" id="updatefollowup">Update</a>';
							?>
																<tr>
																	
																	<td><?php echo $siprefferservice."(".$inquirydate.")"; ?></td>
																	<td><?php echo $ufdate; ?></td>
																	
																
																	
																	<td><?php echo $ufremark; ?></td>
																	<td><?php echo $ifaddedbyname; ?></td>
																	<td><?php echo $aa; ?></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>Follow Up History</h2>
													</div>
													<!--begin::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</th>
																	<th class="min-w-100px"> DateTime</th>
																	<th class="min-w-175px">Status </th>
																	<th class="min-w-70px">Remarks</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-->
																	
																	
																	
																</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 <?php if($hash_value == 'student_education'){ echo 'show active'; }?>" 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>
																	<th class="min-w-100px">Document</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))
															{
																$iedid=$rt1['iedid'];
																$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']));
																$iddocname='';
																$eved = "select iddocname from res_inquirydocs_detail where iddocumentid = $iedid and iddtype='Education'";
																$red = mysqli_query($conn, $eved);
															
																	while($rtd = mysqli_fetch_assoc($red))
																	{
																		$iddocname=$rtd['iddocname'];
																	}
																
																							
															?>
																<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>
																	<td><?php if($iddocname != ''){  ?>
                              <a href='./docs/<?php echo $iddocname;?>' target="_blank">Download Now
                              </a>
																	 <?php } ?></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> Languages Eligibility  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-100px"> Listening Score</th>
																	<th class="min-w-100px"> Reading Score</th>
																	<th class="min-w-100px"> Writing Score</th>
																	<th class="min-w-100px"> Speaking Score</th>
																	<th class="min-w-100px"> Overall Score</th>
																	<th class="min-w-100px"> Minimum 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>
																	<th class="min-w-100px">Document</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']." and iieltstype='Language'";
							$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'])));
								$iieltsdid=$rt1['iieltsdid'];
								$iieltsdstatus=$rt1['iieltsdstatus'];
								$iieltsread=$rt1['iieltsread'];
								$iieltswrite=$rt1['iieltswrite'];
								$iieltsspeak=$rt1['iieltsspeak'];
								$iieltslisten=$rt1['iieltslisten'];
								$iieltsminscore=$rt1['iieltsminscore'];
								$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'];
									}
								}
								
								$iddocname='';
								$eved = "select iddocname from res_inquirydocs_detail where iddocumentid = $iieltsdid and iddtype='Eexam'";
																$red = mysqli_query($conn, $eved);
															
																	while($rtd = mysqli_fetch_assoc($red))
																	{
																		$iddocname=$rtd['iddocname'];
																	}
																	
																	$score = '<a href="#" data-bs-toggle="modal" data-bs-target="#view-modal7" "  data-id="'.$rt1['iieltsdid'].'" id="getUser7" class="fa fa-eye"></a>';
							?>
																<tr>
																	
																	<td><?php echo $iieltstestname; ?></td>
																	<td><?php echo $iieltslisten; ?></td>
																	<td><?php echo $iieltsread; ?></td>
																	<td><?php echo $iieltswrite; ?></td>
																	<td><?php echo $iieltsspeak; ?></td>
																	<td><?php echo $iieltsminscore; ?></td>
																	<td><?php echo $iieltsoverall; ?></td>
																	
																	<td><?php echo $iieltsdexamdate; ?></td>
																	<td><?php echo $iieltsdvalidupto; ?></td>
																	
																	<td><?php echo $iieltstestcenter; ?></td>
																	<td><?php echo $iieltsreportnumber; ?></td>
																	 <td>
																	 <?php if($iddocname != ''){  ?>
                              <a href='./docs/<?php echo $iddocname;?>' target="_blank">Download Now
                              </a>
																	 <?php } ?>
                            </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> Aptitutde 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_ielts1" 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-100px"> Verbal reasoning Score</th>
																	<th class="min-w-100px"> Quantitative Reasoning Score</th>
																	<th class="min-w-100px"> Analytical writing Score</th>
																	<th class="min-w-100px">Overall Score</th>
																	<th class="min-w-100px">Minumum 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>
																	<th class="min-w-100px">Document</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']." and iieltstype='Aptitude'";
							$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'])));
								$iieltsdid=$rt1['iieltsdid'];
								$iieltsdstatus=$rt1['iieltsdstatus'];
								$iieltsverbalreasoning=$rt1['iieltsverbalreasoning'];
								$iieltsquantitativereasoning=$rt1['iieltsquantitativereasoning'];
								$iieltsanalyticalwriting=$rt1['iieltsanalyticalwriting'];
								$iieltsminscore=$rt1['iieltsminscore'];
								$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'];
									}
								}
								
								$iddocname='';
								$eved = "select iddocname from res_inquirydocs_detail where iddocumentid = $iieltsdid and iddtype='Eexam'";
																$red = mysqli_query($conn, $eved);
															
																	while($rtd = mysqli_fetch_assoc($red))
																	{
																		$iddocname=$rtd['iddocname'];
																	}
																	
																	$score = '<a href="#" data-bs-toggle="modal" data-bs-target="#view-modal7" "  data-id="'.$rt1['iieltsdid'].'" id="getUser7" class="fa fa-eye"></a>';
							?>
																<tr>
																	
																	<td><?php echo $iieltstestname; ?></td>
																	<td><?php echo $iieltsverbalreasoning; ?></td>
																	<td><?php echo $iieltsquantitativereasoning; ?></td>
																	<td><?php echo $iieltsanalyticalwriting; ?></td>
																	<td><?php echo $iieltsoverall; ?></td>
																	<td><?php echo $iieltsminscore; ?></td>
																	
																	<td><?php echo $iieltsdexamdate; ?></td>
																	<td><?php echo $iieltsdvalidupto; ?></td>
																	
																	<td><?php echo $iieltstestcenter; ?></td>
																	<td><?php echo $iieltsreportnumber; ?></td>
																	 <td>
																	 <?php if($iddocname != ''){  ?>
                              <a href='./docs/<?php echo $iddocname;?>' target="_blank">Download Now
                              </a>
																	 <?php } ?>
                            </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>	
																	<th class="min-w-100px">Document</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'];
								$iexpdid=$rt1['iexpdid'];
								
								$iddocname='';
																$eved = "select iddocname from res_inquirydocs_detail where iddocumentid = $iexpdid and iddtype='Experience'";
																$red = mysqli_query($conn, $eved);
															
																	while($rtd = mysqli_fetch_assoc($red))
																	{
																		$iddocname=$rtd['iddocname'];
																	}
								
							
							?>
																<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>
																	 <td>
																	 <?php if($iddocname != ''){  ?>
                              <a href='./docs/<?php echo $iddocname;?>' target="_blank">Download Now
                              </a>
																	 <?php } ?>
																	<?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 <?php if($hash_value == 'student_councelling'){ echo 'show active'; }?>" 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'];
																$holdremark=$rt1['holdremark'];
																$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>";
				 $hold =' <a href="#" data-bs-toggle="modal" data-bs-target="#view-modal3" "  data-id="'.$rt1['coudid'].'" id="getUser3">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' || $_SESSION['utype'] == 'applicationmanager' || $_SESSION['utype'] == 'documentmanager' || $_SESSION['utype'] == 'visafilemanager' || $_SESSION['utype'] == 'accountmanager'){?>
											<!--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' || $_SESSION['utype'] == 'applicationmanager' || $_SESSION['utype'] == 'documentmanager' || $_SESSION['utype'] == 'visafilemanager' || $_SESSION['utype'] == 'accountmanager'){?>
													<!--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'];
																$holdremark=$rt1['holdremark'];
																$stiqmid=$rt1['stiqmid'];
																if($rt1['coupdatedon'] == '0000-00-00 00:00:00')
																{
																	$coupdatedon='';
																}else{
																$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>   <i class='fa fa-info fs-2' title='$holdremark' ></i>";
				}
				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 <?php if($hash_value == 'student_document'){ echo 'show active'; }?>" 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>Remark
																		</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'];
$idremark=$rt1['idremark'];
if($idmname == 'Other')
{
	$idmname=$idremark;
}
$iddocverify=$rt1['iddocverify'];

$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 $idremark;?>
                            </td>
                            
							  <td>
                              <?php echo $addedby;?>
                            </td>
							 <?php if($_SESSION['utype']!='receptionist'){
								 if($iddocverify == 0){?>
                            <td>
							<a  href="documentverification.php?id=<?php echo $rt1['iddid']; ?>&p2=<?php echo $_GET['id'];?>"  data-toggle='tooltip' data-placement='top' title='Verify' class='btn btn-sm btn-primary'> Verify
                              </a>
                              <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-->
											<!--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>Education 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_edudocument" 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>
											<a href="#" data-bs-toggle="modal" data-bs-target="#kt_modal_add_examdocument" 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 EXAM  </a>
											<a href="#" data-bs-toggle="modal" data-bs-target="#kt_modal_add_expdocument" 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 EXPERIENCE </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 where iddtype in ('Education','Eexam','Experience') and  imid=".$_GET['id'];
									$re1 = mysqli_query($conn, $eve1);
									$i=1;
									while($rt1 = mysqli_fetch_assoc($re1))
									{
									
									$iddocname=$rt1['iddocname'];
									$iddocumentid=$rt1['iddocumentid'];
									$iddocverify=$rt1['iddocverify'];
									$iddtype=$rt1['iddtype'];
									
									if($iddtype == 'Education')
									{
										$eve232 = "select ietypeofcourse from res_inquiryeduction_detail where iedid=$iddocumentid";
										$re232 = mysqli_query($conn, $eve232);
										if(mysqli_num_rows($re232) > 0)
										{
											while($rt232 = mysqli_fetch_assoc($re232))
											{
												$idmname=$rt232['ietypeofcourse'];
											}
										}
									}else if($iddtype == 'Eexam'){
										$eve232 = "select iieltstestname from res_inquiryielts_detail where iieltsdid=$iddocumentid";
										$re232 = mysqli_query($conn, $eve232);
										if(mysqli_num_rows($re232) > 0)
										{
											while($rt232 = mysqli_fetch_assoc($re232))
											{
												$idmname=$rt232['iieltstestname'];
											}
										}
									}else if($iddtype == 'Experience'){
										$eve232 = "select iexpdesignation from res_inquiryexperience_detail where iexpdid=$iddocumentid";
										$re232 = mysqli_query($conn, $eve232);
										if(mysqli_num_rows($re232) > 0)
										{
											while($rt232 = mysqli_fetch_assoc($re232))
											{
												$idmname=$rt232['iexpdesignation'];
											}
										}
									}

									$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'){
								  if($iddocverify == 0){?>
                            <td>
							<a  href="documentverification.php?id=<?php echo $rt1['iddid']; ?>&p2=<?php echo $_GET['id'];?>"  data-toggle='tooltip' data-placement='top' title='Verify' class='btn btn-sm btn-primary'> Verify
                              </a>
                              <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 
															
															$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>Remark
																		</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'];
$idremark=$rt1['idremark'];
if($idmname == 'Other')
{
	$idmname=$idremark;
}
$iddocverify=$rt1['iddocverify'];
$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 $idremark;?>
                            </td><td>
                              <?php echo $addedby;?>
                            </td>
							 <?php if($_SESSION['utype']!='receptionist'){
								  if($iddocverify == 0){?>
                            <td>
							<a  href="documentverification.php?id=<?php echo $rt1['iddid']; ?>&p2=<?php echo $_GET['id'];?>"  data-toggle='tooltip' data-placement='top' title='Verify' class='btn btn-sm btn-primary'> Verify
                              </a>
                              <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 <?php if($hash_value == 'student_payment'){ echo 'show active'; }?>" 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>Package 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 Package</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">Offer Discount </th>
																	<th class="min-w-175px">Final fees </th>
																	<th class="min-w-175px">Recevied Amount </th>
																	<th class="min-w-175px">Pending Amount </th><th class="min-w-175px">Transcation Detail </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;
								$totalfinalrate=0;	
								$totalreceviedamt=0;	
								$totalpendingamount=0;	
							$eve1 = "select * from res_inquiryservice_detail where imid=".$_GET['id'];
							$re1 = mysqli_query($conn, $eve1);
							while($rt1 = mysqli_fetch_assoc($re1))
							{
								
								
								$isdid=$rt1['isdid'];									
								$ptype=$rt1['ptype'];
$packagename='';
								if($ptype == 'Branch' || $ptype == 'Country')
								{
									$packagemid=$rt1['packagemid'];
									 $evea3 = "select packagename from res_package_master where packagemid=$packagemid";
									$rea3 = mysqli_query($conn, $evea3);
									if(mysqli_num_rows($rea3) > 0)
									{
									while($rta3 = mysqli_fetch_assoc($rea3))
									{
										$packagename=$rta3['packagename'];
										
									}
									}
								}else if($ptype == 'Application'){
									$clgappmid=$rt1['linkmid'];
									$eve23 = "select * from res_course_master,res_collegeapp_master where res_collegeapp_master.coursemid = res_course_master.coursemid  and  res_collegeapp_master.imid=$imid and  res_collegeapp_master.clgappmid=$clgappmid";

									$re23 = mysqli_query($conn, $eve23);

									while($rt23 = mysqli_fetch_assoc($re23))

									{

									$collegemid=$rt23['collegemid'];
									$collegemid=$rt23['collegemid'];
									$cnmid=$rt23['cnmid'];
									$clgappmid=$rt23['clgappmid'];
									$coursename="";
					$eve55= "select * from   res_coursename_master where cnmid=$cnmid";
					$re55 = mysqli_query($conn, $eve55);
					 while($rt55 = mysqli_fetch_assoc($re55))
					{
			
						
						$coursename=$rt55['coursename'];
						
					}
						$eve55= "select * from   res_college_master where collegemid=$collegemid";
					$re55 = mysqli_query($conn, $eve55);
					 while($rt55 = mysqli_fetch_assoc($re55))
					{
			
						
						$cmname=$rt55['cmname'];
						
					}
									

								}
								$packagename = $cmname."-".$coursename." application";
								}else if($ptype == 'Book Lost'){
									$bookmid=$rt1['linkmid'];
									$eve78 = "select bookname,bookprice from res_book_master where  bookmid=$bookmid";
									$re78 = mysqli_query($conn, $eve78);
									if(mysqli_num_rows($re78) > 0)
									{
										while($rt78 = mysqli_fetch_assoc($re78))
										{
											$bookname=$rt78['bookname'];
											
											
										}
									}
									$packagename = $bookname." Lost";
								}else if($ptype == 'College Admission'){
									$admid=$rt1['linkmid'];
										$eve23 = "select * from res_course_master,res_admission_master where res_admission_master.coursemid = res_course_master.coursemid  and  res_admission_master.imid=$imid and  res_admission_master.admid=$admid";

									$re23 = mysqli_query($conn, $eve23);

									while($rt23 = mysqli_fetch_assoc($re23))

									{

									$collegemid=$rt23['collegemid'];
									$collegemid=$rt23['collegemid'];
									$cnmid=$rt23['cnmid'];
									$admid=$rt23['admid'];
									$coursename="";
					$eve55= "select * from   res_coursename_master where cnmid=$cnmid";
					$re55 = mysqli_query($conn, $eve55);
					 while($rt55 = mysqli_fetch_assoc($re55))
					{
			
						
						$coursename=$rt55['coursename'];
						
					}
						$eve55= "select * from   res_college_master where collegemid=$collegemid";
					$re55 = mysqli_query($conn, $eve55);
					 while($rt55 = mysqli_fetch_assoc($re55))
					{
			
						
						$cmname=$rt55['cmname'];
						
					}
									

								}
								$packagename = $cmname."-".$coursename." Admission";
								}
								$packagefees=$rt1['packagefees'];									
								$serviceoffer=$rt1['serviceoffer'];									
								$servicefinalrate=$rt1['servicefinalrate'];	
								$totalfinalrate = $totalfinalrate + $servicefinalrate;
								
								
								$stiqmid=$rt1['stiqmid'];
								$ispurpose=$rt1['ispurpose'];
								$isreceviedamt=$rt1['isreceviedamt'];
								$totalreceviedamt = $totalreceviedamt + $isreceviedamt;
								$ispendingamount=$rt1['ispendingamount'];
								$ispendingamount = number_format($ispendingamount, "2");
								$totalpendingamount = $totalpendingamount + $ispendingamount;
								$totalpendingamount = number_format($totalpendingamount, "2");
									$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']));
										}
									}
									
									
									$transcationdetail = '<a href="#" data-bs-toggle="modal" data-bs-target="#view-modal5" "  data-id="'.$rt1['isdid'].'" id="getUser5" class="fa fa-eye"></a>';
									
									
							?>
																<tr>
																	
																	<td><?php echo $siprefferservice."(".$inquirydate.")"; ?></td>
																	<td><?php echo $packagename; ?></td>
																	
																	<td><?php echo $packagefees; ?></td>
																	<td><?php echo $serviceoffer; ?></td>
																	<td><?php echo $servicefinalrate; ?></td>
																	<td><?php echo $isreceviedamt; ?></td>
																	<td><?php echo $ispendingamount; ?></td>
																	<td><?php echo $transcationdetail; ?></td>
																	<td><?php echo $ufullname." (".$utype.")"; ?></td>
<td><?php echo $isaddedon; ?></td>
																	
																	
																	
																</tr>
															<?php } ?>
															<tr>
															<td></td>
															<td></td>
															<td></td>
															<th>Total:</th>
															<td><?php echo $totalfinalrate; ?></td>
															<td><?php echo $totalreceviedamt; ?></td>
															<td><?php echo $totalpendingamount; ?></td>
															<td></td>
															<td></td>
															<td></td>
															</tr>
																</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>Payment Mode Charge
                            </th>
							<th>Final Payment Amount
                            </th>
							<th>Payment Proof
                            </th>
                            <th>Remarks
                            </th>
							<th class="min-w-100px">Addedby</th>
<th class="min-w-100px">Addedon</th>
							 <?php if($_SESSION['utype']=='accountmanager' || $_SESSION['utype']=='admin'){
							?>
                            <th>Payment Receive
                            </th>
							 <?php } ?>
							 <?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'];
															$pddocname=$rtpay['pddocname'];
															$paidamount=$rtpay['paidamount'];
															$paymode=$rtpay['paymode'];
															$pdstatus=$rtpay['pdstatus'];
															
															 $eve25 = "select *  from res_paymentmode_master where paymentmodemid='$paymode'";
															$re25 = mysqli_query($conn, $eve25);
															$paymentmodename='';
															while($rt25 = mysqli_fetch_assoc($re25))
															{
															$paymentmodename=$rt25['paymentmodename'];
															 $pmodechargetype=$rt25['pmodechargetype'];
															$pmodecharge=$rt25['pmodecharge'];
															}
															$paymodec = $pmodecharge ." (".$pmodechargetype.")";
															$pfinalpayamount=$rtpay['pfinalpayamount'];
															if($rtpay['paydate'] == '0000-00-00')
															{
																$paydate='';
															}else{
															$paydate=date("d-m-Y", strtotime($rtpay['paydate']));
															}
															
															
															
															$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'];
															}
															$companyname='';
															$eve22 = "select companyname  from res_company_master where companymid=$companymid";
															$re22 = mysqli_query($conn, $eve22);
															
															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='';
															while($rt23 = mysqli_fetch_assoc($re23))
															{
															$bankname=$rt23['bankname'];
															}
															
															
															$eve212="select * from res_inquiryservice_detail where  res_inquiryservice_detail.isdid=$isdid";
															$re212=mysqli_query($conn,$eve212);
															$servicename="";
															while($rt212= mysqli_fetch_assoc($re212))
															{
															$ptype=$rt212['ptype'];
$packagename='';
								if($ptype == 'Branch' || $ptype == 'Country')
								{
									$packagemid=$rt212['packagemid'];
									 $evea3 = "select packagename from res_package_master where packagemid=$packagemid";
									$rea3 = mysqli_query($conn, $evea3);
									if(mysqli_num_rows($rea3) > 0)
									{
									while($rta3 = mysqli_fetch_assoc($rea3))
									{
										$packagename=$rta3['packagename'];
										
									}
									}
								}else if($ptype == 'Application'){
									$clgappmid=$rt212['linkmid'];
									$eve23 = "select * from res_course_master,res_collegeapp_master where res_collegeapp_master.coursemid = res_course_master.coursemid  and  res_collegeapp_master.imid=$imid and  res_collegeapp_master.clgappmid=$clgappmid";

									$re23 = mysqli_query($conn, $eve23);

									while($rt23 = mysqli_fetch_assoc($re23))

									{

									$collegemid=$rt23['collegemid'];
									$collegemid=$rt23['collegemid'];
									$cnmid=$rt23['cnmid'];
									$clgappmid=$rt23['clgappmid'];
									$coursename="";
					$eve55= "select * from   res_coursename_master where cnmid=$cnmid";
					$re55 = mysqli_query($conn, $eve55);
					 while($rt55 = mysqli_fetch_assoc($re55))
					{
			
						
						$coursename=$rt55['coursename'];
						
					}
						$eve55= "select * from   res_college_master where collegemid=$collegemid";
					$re55 = mysqli_query($conn, $eve55);
					 while($rt55 = mysqli_fetch_assoc($re55))
					{
			
						
						$cmname=$rt55['cmname'];
						
					}
									

								}
								$packagename = $cmname."-".$coursename." application";
								}else if($ptype == 'Book Lost'){
									$bookmid=$rt212['linkmid'];
									$eve78 = "select bookname,bookprice from res_book_master where  bookmid=$bookmid";
									$re78 = mysqli_query($conn, $eve78);
									if(mysqli_num_rows($re78) > 0)
									{
										while($rt78 = mysqli_fetch_assoc($re78))
										{
											$bookname=$rt78['bookname'];
											
											
										}
										
									}
									$packagename = $bookname." Lost";
								}else if($ptype == 'College Admission'){
									$admid=$rt212['linkmid'];
										$eve23 = "select * from res_course_master,res_admission_master where res_admission_master.coursemid = res_course_master.coursemid  and  res_admission_master.imid=$imid and  res_admission_master.admid=$admid";

									$re23 = mysqli_query($conn, $eve23);

									while($rt23 = mysqli_fetch_assoc($re23))

									{

									$collegemid=$rt23['collegemid'];
									$collegemid=$rt23['collegemid'];
									$cnmid=$rt23['cnmid'];
									$admid=$rt23['admid'];
									$coursename="";
					$eve55= "select * from   res_coursename_master where cnmid=$cnmid";
					$re55 = mysqli_query($conn, $eve55);
					 while($rt55 = mysqli_fetch_assoc($re55))
					{
			
						
						$coursename=$rt55['coursename'];
						
					}
						$eve55= "select * from   res_college_master where collegemid=$collegemid";
					$re55 = mysqli_query($conn, $eve55);
					 while($rt55 = mysqli_fetch_assoc($re55))
					{
			
						
						$cmname=$rt55['cmname'];
						
					}
									

								}
								$packagename = $cmname."-".$coursename." Admission";
								}
								
															}
															$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;
															$payrecived='';
															if($rtpay['pdstatus'] != 'Recevied' && $rtpay['pdstatus'] != 'Approved')
															{
															$payrecived = ' <a href="#" data-bs-toggle="modal" data-bs-target="#view-modal2" class="badge badge-primary"  data-id="'.$pddid.'" id="getUser2">Pending</a>';
															}
															?>
																<tr>
																	
																	 <td>
                              <?php echo $i++;?>
                            </td>
                            <td>
                              <?php echo $packagename;?>
                            </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 $paymodec;?>
                            </td>
							   <td>
                              <?php echo $pfinalpayamount;?>
                            </td>
							  <td>
							  <?php if($pdstatus == 'Approved') { ?>
                              <a href='./paymentreceipt/<?php echo $pddid.".pdf";?>' target="_blank">Download Now
                              </a>
							  <?php } ?>
                            </td>
                            <td>
                              <?php echo $payremark;?>
                            </td>
							<td><?php echo $ufullname." (".$utype.")"; ?></td>
<td><?php echo $pdaddedon; ?></td>
							 <?php if($_SESSION['utype']=='accountmanager' || $_SESSION['utype']=='admin'){
							?>
                            <td>
                             	 <?php echo $payrecived;?>
							  
                          </a>
                          </td>
							 <?php } ?> <?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 <?php if($hash_value == 'student_application'){ echo 'show active'; }?>" 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>Program Shortlist</h2>
													</div>
													<!--begin::Add user-->
											<?php
														if( $_SESSION['utype']=='counseller' || $_SESSION['utype'] == 'admin' || $_SESSION['utype']=='branchmanager' || $_SESSION['utype'] == 'applicationmanager')
										{
											?>		
											<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' || $_SESSION['utype'] == 'applicationmanager')
										{
											?>		
											<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>College
                            </th>
							<th>Course
                            </th>
                            <th>Remark
                            </th>
                            <th>Course Fees
                            </th>
                            <th>Status
                            </th>
                            <th>Student Date
                            </th>
							<th>Student ID
                            </th>
							<th>Offer letter
                            </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))
															{
															$clgappmid=$rtpay['clgappmid'];
															$imid=$rtpay['imid'];
															$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'];
								$status2 = ' <a href="#" data-bs-toggle="modal" data-bs-target="#view-modal6" class="fa fa-edit"  data-id="'.$clgappmid.'" id="getUser6">
												</a>';
								$capstatus=$capstatus." ".$status2;			
								$collegemid=$rtpay['collegemid'];
								$countrymid=$rtpay['countrymid'];
								$cstudentid=$rtpay['cstudentid'];
								$coremarks=$rtpay['coremarks'];
								$cofferdocument=$rtpay['cofferdocument'];
								$doapplication=date("d-m-Y", strtotime($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 $cmname;?>
                            </td> 
							<td>
                              <?php echo $coursename;?>
                            </td>
							<td>
                              <?php echo $coremarks;?>
                            </td>
                            <td>
                              <?php echo $coursefees;?>
                            </td>
                            <td>
                              <?php echo $capstatus;?>
                            </td>
                            <td>
                              <?php echo $doapplication;?>
                            </td>
                            <td>
                              <?php echo $cstudentid;?>
                            </td>
                           <td><?php if($cofferdocument != ''){  ?>
                              <a href='./docs/<?php echo $cofferdocument;?>' target="_blank">View
                              </a>
																	 <?php } ?></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-->
											<!--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 Management</h2>
													</div>
													<!--begin::Add user-->
													
											
											<a href="#" data-bs-toggle="modal" data-bs-target="#application_defferal" 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-->
												</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>Country
                            </th>
							
							<th>College
                            </th>
							<th>Course</th>
							<th>Application Management Type</th>
                            <th>Steps</th>
                            <th>Status</th>
                            <th>Approval</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;
															$tt1=0;
															$evepay = "select * from res_collegeapp_master,res_collegeappman_master where res_collegeappman_master.clgappmid= res_collegeapp_master.clgappmid and  res_collegeapp_master.imid=".$_GET['id'];
															$repay = mysqli_query($conn, $evepay);
															$i=1;
															while($rtpay = mysqli_fetch_assoc($repay))
															{
															$clgappmid=$rtpay['clgappmid'];
															$imid=$rtpay['imid'];
															$clgamid=$rtpay['clgamid'];
															
															
								
								
								$coursemid=$rtpay['coursemid'];
										
								$collegemid=$rtpay['collegemid'];
								$countrymid=$rtpay['countrymid'];
								$camdid=$rtpay['camdid'];
								$clgstatus=$rtpay['clgstatus'];
								
								if($clgstatus == '')
								{
									$clgstatus = 'Pending';
								}
								
								
								if($clgstatus == 'Approved')
								{
									$clgstatus = ' <a href="#" data-bs-toggle="modal" data-bs-target="#view-modal23" class="btn "  data-id="'.$clgamid.'" id="getUser23">Approved</a>';
								
								}
								
								
								$stepdetail = ' <a href="#" data-bs-toggle="modal" data-bs-target="#view-modal13" class="fa fa-edit"  data-id="'.$clgamid.'" id="getUser13"></a>';
								
								
								
								 $eve13 = "select count(*) as a1 from res_collegedefferalsteps_detail where camdid = $camdid";
								$re13 = mysqli_query($conn, $eve13);
								$totalsteps=0;
								while($rt13 = mysqli_fetch_assoc($re13))
								{
									  $totalsteps=$rt13['a1'];
								}
								
								 $eve13 = "select count(*) as a2 from res_collegeappmanstep_detail where clgamid in (select clgamid from res_collegeappman_master where camdid=$camdid and clgamid=$clgamid and clgappmid in (select clgappmid from res_collegeapp_master where clgappmid=$clgappmid)) ";
								$re13 = mysqli_query($conn, $eve13);
								$totalcsteps=0;
								while($rt13 = mysqli_fetch_assoc($re13))
								{
									  $totalcsteps=$rt13['a2'];
								}
								
								if($totalcsteps < $totalsteps)
								{
									$dstatus = 'Pending';
								}else{
									$dstatus = 'Success';
									//$dstatus = ' <a href="#" data-bs-toggle="modal" data-bs-target="#view-modal12" class="fa fa-edit"  data-id="'.$clgamid.'" id="getUser12"> Success</a>';
								
								}
								
								
								$eve13 = "select * from res_collegeappmanagement_detail,res_collegeappliacation_master where res_collegeappliacation_master.collegeappliacationmid = res_collegeappmanagement_detail.collegeapplicationmid and res_collegeappmanagement_detail.camdid = $camdid";
								$re13 = mysqli_query($conn, $eve13);
								$collegeappliacationname="";
								while($rt13 = mysqli_fetch_assoc($re13))
								{
									$collegeappliacationname=$rt13['collegeappliacationname'];
								}
								
								$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['clgmupdatedon']));
														$capaddedby=$rtpay['clgmaddedby'];

														$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 $countryname; ?></td>
                            
							<td>
                              <?php echo $cmname;?>
                            </td> 
							<td>
                              <?php echo $coursename;?>
                            </td>
							<td>
                              <?php echo $collegeappliacationname;?>
                            </td>
                           <td>
                              <?php echo $stepdetail;?>
                            </td>
                            <td>
                              <?php echo $dstatus; ?>
                            </td>
                            <td>
                              <?php echo $clgstatus; ?>
                            </td>
                           
                           
							<td><?php echo $ufullname." (".$utype.")"; ?></td>
<td><?php echo $capaddedon; ?></td>
							<?php if($_SESSION['utype']!='agent'){
							if($_SESSION['utype']!='receptionist'){?>
                           
							<?php }} ?>
																	
																</tr>
															<?php } ?>
																</tbody>
															<!--end::Table head-->
														</table>
														<!--end::Table-->
													</div>
												</div>
												<!--end::Card body-->
											</div>
											<!--end::Payment-->
											
				
											<!--begin::GIC Process-->
											<div class="card card-flush py-4 flex-row-fluid">
												<!--begin::Card header-->
												<div class="card-header">
													<div class="card-title text-uppercase">
														<h2>Guaranteed Investment Certificate Process</h2>
													</div>
													<!--begin::Add user-->
											<?php
														if( $_SESSION['utype']=='counseller' || $_SESSION['utype'] == 'admin' || $_SESSION['utype']=='branchmanager' || $_SESSION['utype'] == 'applicationmanager')
										{
											?>		
											<a href="#" data-bs-toggle="modal" data-bs-target="#student_add_gic_process" 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>Bank Name
                            </th>
							
							<th>Create Date
                            </th>
							<th>Wire Transfer
                            </th>
                            <th>Payment Value
                            </th>
                            <th>Certificate Status
                            </th>
                           
							<th class="min-w-100px">Addedby</th>
<th class="min-w-100px">Addedon</th><th class="min-w-100px">Refund</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_gicprocess_master where imid=".$_GET['id'];
															$repay = mysqli_query($conn, $evepay);
															$i=1;
															while($rtpay = mysqli_fetch_assoc($repay))
															{
															$gicmid=$rtpay['gicmid'];
															$gicbankname=$rtpay['gicbankname'];
								$gwiretransfer=$rtpay['gwiretransfer'];
								$gpaymentvalue=$rtpay['gpaymentvalue'];
								$gcertificatestatus=$rtpay['gcertificatestatus'];
								$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']));
										}
									}
								
								$evee = "select gicmid from res_gicrefund_detail where gicmid=$gicmid";
								$ree = mysqli_query($conn, $evee);
									if(mysqli_num_rows($ree) > 0)
									{
										$refund = 'Refunded';
									}else{
								
								$refund = ' <a href="#" data-bs-toggle="modal" data-bs-target="#view-modal9"   data-id="'.$gicmid.'" id="getUser9">
												Refund</a>';
									}
									
								
								
								$capaddedon='';	
														$capaddedon=date("d-m-Y",strtotime($rtpay['gaddedon']));
														$gcreatedate=date("d-m-Y",strtotime($rtpay['gcreatedate']));
														$capaddedby=$rtpay['gaddedby'];

														$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 $gicbankname;?>
                            </td> 
							<td>
                              <?php echo $gcreatedate;?>
                            </td>
							<td>
                              <?php echo $gwiretransfer;?>
                            </td>
                            <td>
                              <?php echo $gpaymentvalue;?>
                            </td>
                            <td>
                              <?php echo $gcertificatestatus;?>
                            </td>
                          
                           
							<td><?php echo $ufullname." (".$utype.")"; ?></td>
<td><?php echo $capaddedon; ?></td><td><?php echo $refund; ?></td>
							<?php if($_SESSION['utype']!='agent'){
							if($_SESSION['utype']!='receptionist'){?>
                            <td>
                              <a  href="clgapplicationdelete.php?id=<?php echo $rtpay['gicmid']; ?>&&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::GIC Process-->
											</div>
									<!--end::Application--></div>
									<!--end::Application-->
								<!--begin::Visa-->
									<div class="tab-pane fade <?php if($hash_value == 'student_visa'){ echo 'show active'; }?>" id="student_visa" role="tab-panel">
									<!--begin::Orders-->
										<div class="d-flex flex-column gap-7 gap-lg-10">
										<!--begin::Biometric Appointment-->
										<!--begin::Medical Appointment-->
											<div class="card card-flush py-4 flex-row-fluid">
												<!--begin::Card header-->
												<div class="card-header">
													<div class="card-title text-uppercase">
														<h2>Medical Appointment</h2>
													</div>
													<!--begin::Add user-->
											<?php
														if( $_SESSION['utype']=='counseller' || $_SESSION['utype'] == 'admin' || $_SESSION['utype']=='branchmanager' || $_SESSION['utype'] == 'applicationmanager')
										{
											?>		
											<a href="#" data-bs-toggle="modal" data-bs-target="#student_add_medical_appo" 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>Date
                            </th>
							
							<th>Country
                            </th>
							<th>State
                            </th>
                            <th>City
                            </th>
                            <th>Center
                            </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_medicalappointment_detail where imid=".$_GET['id'];
															$repay = mysqli_query($conn, $evepay);
															$i=1;
															while($rtpay = mysqli_fetch_assoc($repay))
															{
															$mamid=$rtpay['mamid'];
															$countrymid=$rtpay['countrymid'];
								$statemid=$rtpay['statemid'];
								$citymid=$rtpay['citymid'];
								$centre=$rtpay['centre'];
								
								$cname='';
				
				$eve2 = "select * from res_country_master where countrymid ='$countrymid'";
				
				$re2 = mysqli_query($conn, $eve2);
				
				if(mysqli_num_rows($re2) > 0)
				{
					
					while($rt2 = mysqli_fetch_assoc($re2))
					{
							$cname=$rt2['countryname'];
					}
				}
				
				
				$sname='';
				
				$eve2 = "select * from res_state_master where statemid ='$statemid'";
				
				$re2 = mysqli_query($conn, $eve2);
				
				if(mysqli_num_rows($re2) > 0)
				{
					
					while($rt2 = mysqli_fetch_assoc($re2))
					{
							$sname=$rt2['statename'];
					}
				}
				
				
				$ciname='';
				
				$eve2 = "select * from res_city_master where citymid ='$citymid'";
				
				$re2 = mysqli_query($conn, $eve2);
				
				if(mysqli_num_rows($re2) > 0)
				{
					
					while($rt2 = mysqli_fetch_assoc($re2))
					{
							$ciname=$rt2['cityname'];
					}
				}
				
								$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']));
										}
									}
								
								
								
								
									
								
								
								$capaddedon='';	
														$capaddedon=date("d-m-Y",strtotime($rtpay['maddedon']));
														$madate=date("d-m-Y",strtotime($rtpay['madate']));
														$capaddedby=$rtpay['maddedby'];

														$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 $madate;?>
                            </td> 
							<td>
                              <?php echo $cname;?>
                            </td>
							<td>
                              <?php echo $sname;?>
                            </td>
                            <td>
                              <?php echo $ciname;?>
                            </td>
                            <td>
                              <?php echo $centre;?>
                            </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['mamid']; ?>&&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::Medical Appointment-->
											
											<div class="card card-flush py-4 flex-row-fluid">
												<!--begin::Card header-->
												<div class="card-header">
													<div class="card-title text-uppercase">
														<h2>Biometric Appointment</h2>
													</div>
													<!--begin::Add user-->
											<?php
														if( $_SESSION['utype']=='counseller' || $_SESSION['utype'] == 'admin' || $_SESSION['utype']=='branchmanager' || $_SESSION['utype'] == 'applicationmanager')
										{
											?>		
											<a href="#" data-bs-toggle="modal" data-bs-target="#student_add_biometric_appo" 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>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_biometricappoinment_detail where imid=".$_GET['id'];
															$repay = mysqli_query($conn, $evepay);
															$i=1;
															while($rtpay = mysqli_fetch_assoc($repay))
															{
															$bamid=$rtpay['bamid'];
															
								$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']));
										}
									}
								
								
								
								
									
								
								
								$capaddedon='';	
														$capaddedon=date("d-m-Y",strtotime($rtpay['baddedon']));
														$bamdate=date("d-m-Y",strtotime($rtpay['bamdate']));
														$capaddedby=$rtpay['baddedby'];

														$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 $bamdate;?>
                            </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['bamid']; ?>&&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::Biometric Appointment-->
											<!--begin::Visa File Submission-->
											<div class="card card-flush py-4 flex-row-fluid">
												<!--begin::Card header-->
												<div class="card-header">
													<div class="card-title text-uppercase">
														<h2>Visa File Submission</h2>
													</div>
													<!--begin::Add user-->
											<?php
														if( $_SESSION['utype']=='counseller' || $_SESSION['utype'] == 'admin' || $_SESSION['utype']=='branchmanager' || $_SESSION['utype'] == 'applicationmanager')
										{
											?>		
											<a href="#" data-bs-toggle="modal" data-bs-target="#student_add_visafile_submission" 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>Date
                            </th>
							<th>Visa Filing Type
                            </th>
							<th>Submission Type
                            </th>
							<th>Receipt No
                            </th>
							<th>Visa File Status
                            </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_visafilesubmission_detail where imid=".$_GET['id'];
															$repay = mysqli_query($conn, $evepay);
															$i=1;
															while($rtpay = mysqli_fetch_assoc($repay))
															{
															$vsmid=$rtpay['vsmid'];
															$vfilingtype=$rtpay['vfilingtype'];
															$vsubmissiontype=$rtpay['vsubmissiontype'];
															$vreceiptno=$rtpay['vreceiptno'];
															$visafilestatus=$rtpay['visafilestatus'];
															
								$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']));
										}
									}
								
								
								
								
									
								
								
								$capaddedon='';	
														$capaddedon=date("d-m-Y",strtotime($rtpay['vsaddedon']));
														$vsdate=date("d-m-Y",strtotime($rtpay['vsdate']));
														$capaddedby=$rtpay['vsaddedby'];

														$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 $vsdate;?>
                            </td> 
							<td>
                              <?php echo $vfilingtype;?>
                            </td> 
							<td>
                              <?php echo $vsubmissiontype;?>
                            </td> 
							<td>
                              <?php echo $vreceiptno;?>
                            </td> 
							<td>
                              <?php echo $visafilestatus;?>
                            </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['vsmid']; ?>&&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::Visa File Submission-->
											</div>
									<!--end::Application--></div>
									<!--end::Visa-->
								<!--begin::Tab pane-->
									<div class="tab-pane fade <?php if($hash_value == 'student_familydetail'){ echo 'show active'; }?>" 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::Chat drawer-->
		<div id="kt_drawer_chat" class="bg-body <?php if(isset($_GET['chat'])){ echo 'drawer-on'; }?>" data-kt-drawer="true" data-kt-drawer-name="chat" data-kt-drawer-activate="true" data-kt-drawer-overlay="true" data-kt-drawer-width="{default:'300px', 'md': '500px'}" data-kt-drawer-direction="end" data-kt-drawer-toggle="#kt_drawer_chat_toggle" data-kt-drawer-close="#kt_drawer_chat_close">
			<!--begin::Messenger-->
			<div class="card w-100 rounded-0 border-0" id="kt_drawer_chat_messenger">
				<!--begin::Card header-->
				<div class="card-header pe-5" id="kt_drawer_chat_messenger_header">
					<!--begin::Title-->
					<div class="card-title">
						<!--begin::User-->
						<div class="d-flex justify-content-center flex-column me-3">
							<a href="#" class="fs-4 fw-bold text-gray-900 text-hover-primary me-1 mb-2 lh-1"><?php echo $ipname; ?></a>
							<!--begin::Info-->
							<div class="mb-0 lh-1">
								<span class="badge badge-success badge-circle w-10px h-10px me-1"></span>
								<span class="fs-7 fw-semibold text-muted">Active</span>
							</div>
							<!--end::Info-->
						</div>
						<!--end::User-->
					</div>
					<!--end::Title-->
					<!--begin::Card toolbar-->
					<div class="card-toolbar">
						<!--begin::Close-->
						<div class="btn btn-sm btn-icon btn-active-light-primary" id="kt_drawer_chat_close">
							<!--begin::Svg Icon | path: icons/duotune/arrows/arr061.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">
									<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>
					<!--end::Card toolbar-->
				
					</div>
				<!--end::Card header-->
				<!--begin::Card body-->
				<div class="card-body" id="kt_drawer_chat_messenger_body">
					<!--begin::Messages-->
					<div class="scroll-y me-n5 pe-5" data-kt-element="messages" data-kt-scroll="true" data-kt-scroll-activate="true" data-kt-scroll-height="auto" data-kt-scroll-dependencies="#kt_drawer_chat_messenger_header, #kt_drawer_chat_messenger_footer" data-kt-scroll-wrappers="#kt_drawer_chat_messenger_body" data-kt-scroll-offset="0px">
					
					<?php 
						$eve98 = "select * from res_chat_detail where imid=$imid ";
						$re98 = mysqli_query($conn, $eve98);
						if(mysqli_num_rows($re98) > 0)
						{
			while($rt98 = mysqli_fetch_assoc($re98))
			{
				$cdmsg = $rt98['cdmsg'];
				$caddedon = date("d-m H:i",strtotime($rt98['caddedon']));
				$ctype = $rt98['ctype'];
				$cdaddedby = $rt98['cdaddedby'];
				$imid = $rt98['imid'];
				$uimage='';
				$chatname='';
				if($ctype == 'Staff')
				{
				$eveag = "select ufullname,utype,uimage from res_user_master where umid=$cdaddedby";
				$reag = mysqli_query($conn, $eveag);
				if(mysqli_num_rows($reag) > 0)
				{
					while($rtag = mysqli_fetch_assoc($reag))
					{
						$chatname=$rtag['ufullname'];
						$utype=$rtag['utype'];
						$uimage=$rtag['uimage'];
						
						if(strlen($uimage)>3)
				{
					$uimage="<img src='docs/$uimage' width='80px' height='80px'>";
				}
					}
				}
				}else{
					$eveag = "select ipname from res_inquiry_master where imid=$cdaddedby";
				$reag = mysqli_query($conn, $eveag);
				if(mysqli_num_rows($reag) > 0)
				{
					while($rtag = mysqli_fetch_assoc($reag))
					{
						$chatname=$rtag['ipname'];
						
					}
				}
				}
				
					?>
						<!--begin::Message(in)-->
						<div class="d-flex justify-content-<?php if($ctype == 'Staff')
				{ echo 'end'; }else{ echo 'start'; } ?> mb-10">
							<!--begin::Wrapper-->
							<div class="d-flex flex-column align-items-<?php if($ctype == 'Staff')
				{ echo 'end'; }else{ echo 'start'; } ?>">
								<!--begin::User-->
								<div class="d-flex align-items-center mb-2">
									<!--begin::Avatar-->
									<div class="symbol symbol-35px symbol-circle">
										<?php echo $uimage; ?>
									</div>
									<!--end::Avatar-->
									<!--begin::Details-->
									<div class="ms-3">
										<a href="#" class="fs-5 fw-bold text-gray-900 text-hover-primary me-1"><?php echo $chatname; ?></a>
										<span class="text-muted fs-7 mb-1"><?php echo $caddedon; ?></span>
									</div>
									<!--end::Details-->
								</div>
								<!--end::User-->
								<!--begin::Text-->
								<div class="p-5 rounded bg-light-<?php if($ctype == 'Staff')
				{ echo 'primary'; }else{ echo 'info'; } ?> text-dark fw-semibold mw-lg-400px text-<?php if($ctype == 'Staff')
				{ echo 'end'; }else{ echo 'start'; } ?>" data-kt-element="message-text"><?php echo $cdmsg; ?></div>
								<!--end::Text-->
							</div>
							<!--end::Wrapper-->
						</div>
						<!--end::Message(in)-->
						<?php } } ?>
						<!--begin::Message(template for out)-->
						<div class="d-flex justify-content-end mb-10 d-none" data-kt-element="template-out">
							<!--begin::Wrapper-->
							<div class="d-flex flex-column align-items-end">
								<!--begin::User-->
								<div class="d-flex align-items-center mb-2">
									<!--begin::Details-->
									<div class="me-3">
										<span class="text-muted fs-7 mb-1">Just now</span>
										<a href="#" class="fs-5 fw-bold text-gray-900 text-hover-primary ms-1">You</a>
									</div>
									<!--end::Details-->
									<!--begin::Avatar-->
									<div class="symbol symbol-35px symbol-circle">
										<img alt="Pic" src="assets/media/avatars/300-1.jpg" />
									</div>
									<!--end::Avatar-->
								</div>
								<!--end::User-->
								<!--begin::Text-->
								<div class="p-5 rounded bg-light-primary text-dark fw-semibold mw-lg-400px text-end" data-kt-element="message-text"></div>
								<!--end::Text-->
							</div>
							<!--end::Wrapper-->
						</div>
						<!--end::Message(template for out)-->
						<!--begin::Message(template for in)-->
						<div class="d-flex justify-content-start mb-10 d-none" data-kt-element="template-in">
							<!--begin::Wrapper-->
							<div class="d-flex flex-column align-items-start">
								<!--begin::User-->
								<div class="d-flex align-items-center mb-2">
									<!--begin::Avatar-->
									<div class="symbol symbol-35px symbol-circle">
										<img alt="Pic" src="assets/media/avatars/300-25.jpg" />
									</div>
									<!--end::Avatar-->
									<!--begin::Details-->
									<div class="ms-3">
										<a href="#" class="fs-5 fw-bold text-gray-900 text-hover-primary me-1">Brian Cox</a>
										<span class="text-muted fs-7 mb-1">Just now</span>
									</div>
									<!--end::Details-->
								</div>
								<!--end::User-->
								<!--begin::Text-->
								<div class="p-5 rounded bg-light-info text-dark fw-semibold mw-lg-400px text-start" data-kt-element="message-text">Right before vacation season we have the next Big Deal for you.</div>
								<!--end::Text-->
							</div>
							<!--end::Wrapper-->
						</div>
						<!--end::Message(template for in)-->
					</div>
					<!--end::Messages-->
				</div>
				<!--end::Card body-->
				<!--begin::Card footer-->
				<div class="card-footer pt-4" id="kt_drawer_chat_messenger_footer">
				<form id="kt_modal_add_user_form123" class="form" action="chatadd2.php" method="POST">
				<input type="hidden" name="imid1" value="<?php echo $imid; ?>">
					<!--begin::Input-->
					<textarea class="form-control form-control-flush mb-3" rows="1" name="cdmsg" placeholder="Type a message"></textarea>
					<!--end::Input-->
					<!--begin:Toolbar-->
					<div class="d-flex flex-stack">
						
						<!--begin::Send-->
						<button class="btn btn-primary" type="submit" data-kt-users-modal-action="submit">Send</button>
						<!--end::Send-->
					</div>
					<!--end::Toolbar-->
					</form>
				</div>
				<!--end::Card footer-->
			</div>
			<!--end::Messenger-->
		</div>
		<!--end::Chat drawer-->
		<!--begin::Chat drawer-->
		<div id="kt_drawer_chat1" class="bg-body <?php if(isset($_GET['chat1'])){ echo 'drawer-on'; }?>" data-kt-drawer="true" data-kt-drawer-name="chat" data-kt-drawer-activate="true" data-kt-drawer-overlay="true" data-kt-drawer-width="{default:'300px', 'md': '500px'}" data-kt-drawer-direction="end" data-kt-drawer-toggle="#kt_drawer_chat_toggle1" data-kt-drawer-close="#kt_drawer_chat_close1">
			<!--begin::Messenger-->
			<div class="card w-100 rounded-0 border-0" id="kt_drawer_chat_messenger">
				<!--begin::Card header-->
				<div class="card-header pe-5" id="kt_drawer_chat_messenger_header1">
					<!--begin::Title-->
					<div class="card-title">
						<!--begin::User-->
						<div class="d-flex justify-content-center flex-column me-3">
							<a href="#" class="fs-4 fw-bold text-gray-900 text-hover-primary me-1 mb-2 lh-1">Internal Chat</a>
							
						</div>
						<!--end::User-->
					</div>
					<!--end::Title--><!--begin::Card toolbar-->
					<div class="card-toolbar">
						<!--begin::Close-->
						<div class="btn btn-sm btn-icon btn-active-light-primary" id="kt_drawer_chat_close1">
							<!--begin::Svg Icon | path: icons/duotune/arrows/arr061.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">
									<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>
					<!--end::Card toolbar-->
				
					</div>
				<!--end::Card header-->
				<!--begin::Card body-->
				<div class="card-body" id="kt_drawer_chat_messenger_body1">
					<!--begin::Messages-->
					<div class="scroll-y me-n5 pe-5" data-kt-element="messages" data-kt-scroll="true" data-kt-scroll-activate="true" data-kt-scroll-height="auto" data-kt-scroll-dependencies="#kt_drawer_chat_messenger_header1, #kt_drawer_chat_messenger_footer1" data-kt-scroll-wrappers="#kt_drawer_chat_messenger_body1" data-kt-scroll-offset="0px">
					
					<?php 
						$eve98 = "select * from res_internalchat_detail where imid=$imid ";
						$re98 = mysqli_query($conn, $eve98);
						if(mysqli_num_rows($re98) > 0)
						{
			while($rt98 = mysqli_fetch_assoc($re98))
			{
				$icdmsg = $rt98['icdmsg'];
				$icaddedon = date("d-m H:i",strtotime($rt98['icaddedon']));
				
				$icdaddedby = $rt98['icdaddedby'];
				$imid = $rt98['imid'];
				$uimage='';
				$chatname='';
				
				$eveag = "select ufullname,utype,uimage from res_user_master where umid=$icdaddedby";
				$reag = mysqli_query($conn, $eveag);
				if(mysqli_num_rows($reag) > 0)
				{
					while($rtag = mysqli_fetch_assoc($reag))
					{
						$chatname=$rtag['ufullname'];
						$utype=$rtag['utype'];
						$uimage=$rtag['uimage'];
						
						if(strlen($uimage)>3)
				{
					$uimage="<img src='docs/$uimage' width='80px' height='80px'>";
				}
					}
				}
				
				
					?>
						<!--begin::Message(in)-->
						<div class="d-flex justify-content-<?php if($_SESSION['umid'] == $icdaddedby)
				{ echo 'end'; }else{ echo 'start'; } ?> mb-10">
							<!--begin::Wrapper-->
							<div class="d-flex flex-column align-items-<?php if($_SESSION['umid'] == $icdaddedby)
				{ echo 'end'; }else{ echo 'start'; } ?>">
								<!--begin::User-->
								<div class="d-flex align-items-center mb-2">
									<!--begin::Avatar-->
									<div class="symbol symbol-35px symbol-circle">
										<?php echo $uimage; ?>
									</div>
									<!--end::Avatar-->
									<!--begin::Details-->
									<div class="ms-3">
										<a href="#" class="fs-5 fw-bold text-gray-900 text-hover-primary me-1"><?php echo $chatname; ?></a>
										<span class="text-muted fs-7 mb-1"><?php echo $icaddedon; ?></span>
									</div>
									<!--end::Details-->
								</div>
								<!--end::User-->
								<!--begin::Text-->
								<div class="p-5 rounded bg-light-<?php if($_SESSION['umid'] == $icdaddedby)
				{ echo 'primary'; }else{ echo 'info'; } ?> text-dark fw-semibold mw-lg-400px text-<?php if($_SESSION['umid'] == $icdaddedby)
				{ echo 'end'; }else{ echo 'start'; } ?>" data-kt-element="message-text"><?php echo $icdmsg; ?></div>
								<!--end::Text-->
							</div>
							<!--end::Wrapper-->
						</div>
						<!--end::Message(in)-->
						<?php } } ?>
						<!--begin::Message(template for out)-->
						<div class="d-flex justify-content-end mb-10 d-none" data-kt-element="template-out">
							<!--begin::Wrapper-->
							<div class="d-flex flex-column align-items-end">
								<!--begin::User-->
								<div class="d-flex align-items-center mb-2">
									<!--begin::Details-->
									<div class="me-3">
										<span class="text-muted fs-7 mb-1">Just now</span>
										<a href="#" class="fs-5 fw-bold text-gray-900 text-hover-primary ms-1">You</a>
									</div>
									<!--end::Details-->
									<!--begin::Avatar-->
									<div class="symbol symbol-35px symbol-circle">
										<img alt="Pic" src="assets/media/avatars/300-1.jpg" />
									</div>
									<!--end::Avatar-->
								</div>
								<!--end::User-->
								<!--begin::Text-->
								<div class="p-5 rounded bg-light-primary text-dark fw-semibold mw-lg-400px text-end" data-kt-element="message-text"></div>
								<!--end::Text-->
							</div>
							<!--end::Wrapper-->
						</div>
						<!--end::Message(template for out)-->
						<!--begin::Message(template for in)-->
						<div class="d-flex justify-content-start mb-10 d-none" data-kt-element="template-in">
							<!--begin::Wrapper-->
							<div class="d-flex flex-column align-items-start">
								<!--begin::User-->
								<div class="d-flex align-items-center mb-2">
									<!--begin::Avatar-->
									<div class="symbol symbol-35px symbol-circle">
										<img alt="Pic" src="assets/media/avatars/300-25.jpg" />
									</div>
									<!--end::Avatar-->
									<!--begin::Details-->
									<div class="ms-3">
										<a href="#" class="fs-5 fw-bold text-gray-900 text-hover-primary me-1">Brian Cox</a>
										<span class="text-muted fs-7 mb-1">Just now</span>
									</div>
									<!--end::Details-->
								</div>
								<!--end::User-->
								<!--begin::Text-->
								<div class="p-5 rounded bg-light-info text-dark fw-semibold mw-lg-400px text-start" data-kt-element="message-text">Right before vacation season we have the next Big Deal for you.</div>
								<!--end::Text-->
							</div>
							<!--end::Wrapper-->
						</div>
						<!--end::Message(template for in)-->
					</div>
					<!--end::Messages-->
				</div>
				<!--end::Card body-->
				<!--begin::Card footer-->
				<div class="card-footer pt-4" id="kt_drawer_chat_messenger_footer1">
				<form id="kt_modal_add_user_form123" class="form" action="internalchatadd2.php" method="POST">
				<input type="hidden" name="imid1" value="<?php echo $imid; ?>">
					<!--begin::Input-->
					<textarea class="form-control form-control-flush mb-3" rows="1" name="icdmsg" placeholder="Type a message"></textarea>
					<!--end::Input-->
					<!--begin:Toolbar-->
					<div class="d-flex flex-stack">
						
						<!--begin::Send-->
						<button class="btn btn-primary" type="submit" data-kt-users-modal-action="submit">Send</button>
						<!--end::Send-->
					</div>
					<!--end::Toolbar-->
					</form>
				</div>
				<!--end::Card footer-->
			</div>
			<!--end::Messenger-->
		</div>
		<!--end::Chat drawer-->
		
		<!--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="inquirydate" data-dropdown-parent="#kt_modal_add_user_form1" value="<?php echo $mdate; ?>"/>
																	<!--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"  data-dropdown-parent="#kt_modal_add_user_form1" 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-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">Preferred Services </label>
																	<!--end::Label-->
																	<!--begin::Input-->
																	<select class="form-select form-select-solid" data-control="select2" data-dropdown-parent="#kt_modal_add_user_form1"  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=" 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" data-dropdown-parent="#kt_modal_add_user_form1"  name="siprefferedsubservice" id="subservice">
														<option value="0">Select</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 class="required">Offer available</span>
															</label>
															<!--end::Label-->
															
															<select class="form-select form-select-solid" data-control="select2" data-dropdown-parent="#kt_modal_add_user_form1"  name="ipoffer" id="offer" >
																<option value="0">Select</option>
															
													</select>
													</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" data-dropdown-parent="#kt_modal_add_user_form1"  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" data-dropdown-parent="#kt_modal_add_user_form1"  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" data-dropdown-parent="#kt_modal_add_user_form1"  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" data-dropdown-parent="#kt_modal_add_user_form1"  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" data-dropdown-parent="#kt_modal_add_user_form1"  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" data-dropdown-parent="#kt_modal_add_user_form3">
													<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"  data-dropdown-parent="#kt_modal_add_user_form3" 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" data-dropdown-parent="#kt_modal_add_user_form3"  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" data-dropdown-parent="#kt_modal_add_user_form3"  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" data-dropdown-parent="#kt_modal_add_user_form3" 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" data-dropdown-parent="#kt_modal_add_user_form3" 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_form11" 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-dropdown-parent="#kt_modal_add_user_form11" 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="student_add_bookset" 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 Book Set Given to Lead</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_form132" class="form" action="booksettolead2.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-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">Select Book Set:</label>
																	<!--end::Label-->
																	<!--begin::Input-->
																	<?php
							include("connect.php");
							$eve_category2 = "select * from res_bookset_master";
							$re_category2 = mysqli_query($conn, $eve_category2);
							?>
													<select class="form-select form-select-solid" data-control="select2"  data-dropdown-parent="#kt_modal_add_user_form132" name="booksetmid" id="booksetmid">
													  <option value="0">Select
													  </option>
													  <?php		
							while($rt_category2 = mysqli_fetch_assoc($re_category2))
							{
							echo "<option value='$rt_category2[booksetmid]'>$rt_category2[booksetname]</option>";
							}		
							?>	
                        </select>
																	<!--end::Input-->
																</div>
																<!--end::Input group-->
																</div>
													<!--end::Col-->
													
													</div>
												<!--end::Row-->	
															<!--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="student_add_book_issue" 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>Issue Book</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_form133" class="form" action="issuebooklead2.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-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">Select Book :</label>
																	<!--end::Label-->
																	<!--begin::Input-->
																	<?php
							include("connect.php");
							$eve_category2 = "select * from res_book_master";
							$re_category2 = mysqli_query($conn, $eve_category2);
							?>
													<select class="form-select form-select-solid" data-control="select2"  data-dropdown-parent="#kt_modal_add_user_form133" name="bookmid" id="bookmid">
													  <option value="0">Select
													  </option>
													  <?php		
							while($rt_category2 = mysqli_fetch_assoc($re_category2))
							{
							echo "<option value='$rt_category2[bookmid]'>$rt_category2[bookname]</option>";
							}		
							?>	
                        </select>
																	<!--end::Input-->
																</div>
																<!--end::Input group-->
																</div>
													<!--end::Col-->
													
													</div>
												<!--end::Row-->	
															<!--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 - education Document-->
							<div class="modal fade" id="kt_modal_add_edudocument" 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_form12" class="form" action="edudocumentstatus2.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 Education:</label>
																	<!--end::Label-->
																	<!--begin::Input-->
																	<?php
							
							$eve_category2 = "select * from res_inquiryeduction_detail where imid=$imid";
							$re_category2 = mysqli_query($conn, $eve_category2);
							?>
													<select class="form-select form-select-solid" data-control="select2"  data-dropdown-parent="#kt_modal_add_user_form12" name="iddocumentid" id="iddocumentid">
													  <option value="0">Select
													  </option>
													  <?php		
							while($rt_category2 = mysqli_fetch_assoc($re_category2))
							{
							echo "<option value='$rt_category2[iedid]'>$rt_category2[ietypeofcourse]</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 - education Document-->
							<div class="modal fade" id="kt_modal_add_expdocument" 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_form13" class="form" action="expdocumentstatus2.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 Experience:</label>
																	<!--end::Label-->
																	<!--begin::Input-->
																	<?php
							
							$eve_category2 = "select * from res_inquiryexperience_detail where imid=$imid";
							$re_category2 = mysqli_query($conn, $eve_category2);
							?>
													<select class="form-select form-select-solid" data-control="select2"  data-dropdown-parent="#kt_modal_add_user_form13" name="iddocumentid" id="iddocumentid3">
													  <option value="0">Select
													  </option>
													  <?php		
							while($rt_category2 = mysqli_fetch_assoc($re_category2))
							{
							echo "<option value='$rt_category2[iexpdid]'>$rt_category2[iexpdesignation]</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 - exam Document-->
							<div class="modal fade" id="kt_modal_add_examdocument" 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_form14" class="form" action="examdocumentstatus2.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 Education:</label>
																	<!--end::Label-->
																	<!--begin::Input-->
																	<?php
							
							$eve_category2 = "select * from res_inquiryielts_detail where imid=$imid";
							$re_category2 = mysqli_query($conn, $eve_category2);
							?>
													<select class="form-select form-select-solid" data-control="select2"  data-dropdown-parent="#kt_modal_add_user_form14" name="iddocumentid" id="iddocumentid2">
													  <option value="0">Select
													  </option>
													  <?php		
							while($rt_category2 = mysqli_fetch_assoc($re_category2))
							{
							echo "<option value='$rt_category2[iieltsdid]'>$rt_category2[iieltstestname]</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 -  exam 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_form211" 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" data-dropdown-parent="#kt_modal_add_user_form211"  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'];
																			
																			 $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') and branchmid in (select inqbranch from res_inquiry_master where imid = ".$_GET['id'].")" ;
																	}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 != ".$_SESSION['umid']." 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"  data-dropdown-parent="#kt_modal_add_user_form211" 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-content4"></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-->
							<!--begin::Modal - Document -->
							<div class="modal fade" id="kt_modal_update_followp" 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>Update 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_form61" class="form" action="updatefollowup1.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-content8"></div>
																<!--begin::Actions-->
																				<!--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"  data-dropdown-parent="#kt_modal_add_user_form61" 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" data-dropdown-parent="#kt_modal_add_user_form61"  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>
												
															<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" data-dropdown-parent="#kt_modal_add_user_form5"  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" data-dropdown-parent="#kt_modal_add_user_form5"  name="iexpcountry" id="iexpcountry">
																	<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'];
																				$countrysortname=$rt['countrysortname'];
																				
																				
																				echo "<option value='$countryname'>$countryname ($countrysortname) </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" data-dropdown-parent="#kt_modal_add_user_form5"  name="iexpcity" id="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 Language 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" data-dropdown-parent="#kt_modal_add_user_form4"  name="iieltstestname" id="iieltstestname" >
																	<option value="0"> Select</option>
																	<?php
																	$eve1 = "select * from res_language_master";

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

																			{	$languagename=$rt1['languagename'];
																				
																				echo "<option value='$languagename'>$languagename</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" id="iieltslisten" >
																	<!--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" id="iieltsread" >
																	<!--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">Writing  Score</label>
																	<!--end::Label-->
																	<!--begin::Input-->
																	<input class="form-control form-control-solid fw-bold pe-5"  name="iieltswrite" id="iieltswrite" >
																	<!--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" id="iieltsspeak" >
																	<!--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="iieltsoverall1" id="iieltsoverall1" >
																	<!--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">Minimum Score</label>
																	<!--end::Label-->
																	<!--begin::Input-->
																	<input class="form-control form-control-solid fw-bold pe-5"  name="iieltsminscore" id="iieltsminscore" >
																	<!--end::Input-->
																</div>
																<!--end::Input group-->
																</div>
													<!--end::Col-->
													</div>
												<!--end::Row-->
												
												</div>
												<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>
																</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>
															
															<!--end::Actions-->
														</form>
														<!--end::Form-->
													</div>
										<!--end::Modal body-->
									</div>
									<!--end::Modal content-->
								</div>
								<!--end::Modal dialog-->
							</div>
							<!--end::Modal - IIELts-->
							<!--begin::Modal - IIELts-->
							<div class="modal fade" id="student_ielts1" 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 Aptitude 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_form41" class="form" action="ieltsstatus2.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" data-dropdown-parent="#kt_modal_add_user_form41"   name="iieltstestname" id="iieltstestname1" >
													<option value="0"> Select</option>
													<?php
																	$eve1 = "select * from res_aptitude_master";

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

																			{	$aptitudename=$rt1['aptitudename'];
																				
																				echo "<option value='$aptitudename'>$aptitudename</option>";
																				 
																			}
																	?>
																	
													</select>
																	<!--end::Input-->
																</div>
																<!--end::Input group-->
																<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" id="iieltsmaths" >
																	<!--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" id="iieltsenglish" >
																	<!--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="iieltsoverall2" id="iieltsoverall2">
																	<!--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" id="iieltsclblevel" >
																	<!--end::Input-->
																</div>
																<!--end::Input group-->
																</div>
													<!--end::Col-->
													</div>
													
													</div>
												<!--end::Row-->
												
												</div>
														<div id="">
																<!--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" id="iieltsverbalreasoning" >
																	<!--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" >
																	<!--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">Analytical writing</label>
																	<!--end::Label-->
																	<!--begin::Input-->
																	<input class="form-control form-control-solid fw-bold pe-5"  name="iieltsanalyticalwriting" id="iieltsanalyticalwriting" >
																	<!--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" id="iieltsoverall3" >
																	<!--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">Minimum Score</label>
																	<!--end::Label-->
																	<!--begin::Input-->
																	<input class="form-control form-control-solid fw-bold pe-5"  name="iieltsminscore" id="iieltsminscore1" >
																	<!--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_21" 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_22" 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>
																</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>
															
															<!--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" data-dropdown-parent="#kt_modal_add_eduvcation_form"   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">Department</label>
																	<!--end::Label-->
																	<!--begin::Input-->
																	
																	<select class="form-select form-select-solid" data-control="select2" data-dropdown-parent="#kt_modal_add_eduvcation_form"  name="iecourse"  >
																	<option value="0">Select</option>
													<?php 
																			$eve1 = "select * from res_edudepartment_master";

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

																			{	$edudepartmentname=$rt1['edudepartmentname'];
																				
																				echo "<option value='$edudepartmentname'>$edudepartmentname</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">Education Status</label>
																	<!--end::Label-->
																	<!--begin::Input-->
																	<select class="form-select form-select-solid" data-control="select2"  data-dropdown-parent="#kt_modal_add_eduvcation_form" name="iestatus">
													<option value="Completed">Completed </option>
																	<option value="In process">In process </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">Board</label>
																	<!--end::Label-->
																	<!--begin::Input-->
																	<input class="form-control form-control-solid fw-bold pe-5"  name="ieboard" />
																	<!--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-->
																	
																	<select class="form-select form-select-solid" data-control="select2" data-dropdown-parent="#kt_modal_add_eduvcation_form"  name="ieuniversity"  >
																	<option value="0">Select</option>
													<?php 
																			$eve1 = "select * from res_school_master";

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

																			{	$schoolname=$rt1['schoolname'];
																				
																				echo "<option value='$schoolname'>$schoolname</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">
													<!--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">Gap Year</label>
																	<!--end::Label-->
																	<!--begin::Input-->
																	<input class="form-control form-control-solid fw-bold pe-5"  name="iegapyear" />
																	<!--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">No of backlogs</label>
																	<!--end::Label-->
																	<!--begin::Input-->
																	<input class="form-control form-control-solid fw-bold pe-5"  name="ienoofbacklogs" />
																	<!--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" data-dropdown-parent="#kt_modal_add_eduvcation_form"  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-->
															</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 - 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" data-dropdown-parent="#kt_modal_add_eduvcation_form1"  name="isdid" id="isdid">
																	<option value="0">Select</option>
													 <?php	
							 $eve_p = "select * from res_inquiryservice_detail,res_package_master where res_package_master.packagemid = res_inquiryservice_detail.packagemid and  res_inquiryservice_detail.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[packagename] - $rt_p[pcurrency] ($rt_p[pcurrencyrate])</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 (INR)</label>
																	<!--end::Label-->
																	<!--begin::Input-->
																	<input class="form-control form-control-solid fw-bold pe-5"  name="ieuniversity" id="paytotalamount1" value="0" 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 (INR)</label>
																	<!--end::Label-->
																	<!--begin::Input-->
																	<input class="form-control form-control-solid fw-bold pe-5"  name="iecourse" id="payrecivedamt1"  value="0" 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 (INR)</label>
																	<!--end::Label-->
																	<!--begin::Input-->
																	<input class="form-control form-control-solid fw-bold pe-5"  name="paypendingamt1" id="paypendingamt1"  value="0" 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 Currency</label>
									<!--end::Label-->
									<!--begin::Input-->
									<select class="form-select form-select-solid" data-control="select2" data-dropdown-parent="#kt_modal_add_eduvcation_form1"  name="paycurrency" id="paycurrency1" >
													<?php 
																			$eve = "select * from res_currencytoinr_master";

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

																			{											
																				
																				$currencyname=$rt['currencyname'];
																				
																				
																				echo "<option value='$currencyname'>$currencyname </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">Payment Amount in Selected Currency</label>
									<!--end::Label-->
									<!--begin::Input-->
									<input class="form-control form-control-solid fw-bold pe-5"  name="paycurrencyvalue" id="paycurrencyvalue1" />
									<!--end::Input-->
									</div>
									<!--end::Input group-->
									</div>
									<!--end::Col-->
												</div>
													<!--end::Col-->
													
												<!--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 (INR)</label>
																	<!--end::Label-->
																	<!--begin::Input-->
																	<input class="form-control form-control-solid fw-bold pe-5"  name="paidamount" id="paidamount"  required>
																	<!--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 - 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_form33" 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" data-dropdown-parent="#kt_modal_add_user_form33"  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" data-dropdown-parent="#kt_modal_add_user_form33"  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" data-dropdown-parent="#kt_modal_add_user_form33"  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" data-dropdown-parent="#kt_modal_add_user_form33"  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" data-dropdown-parent="#kt_modal_add_user_form33" 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_form32" 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" data-dropdown-parent="#kt_modal_add_user_form32"  name="stiqmid" id="stiqmid3" >
																	<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-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">Package Type </label>
									<!--end::Label-->
									<!--begin::Input-->
									<select class="form-select form-select-solid" data-control="select2" data-dropdown-parent="#kt_modal_add_user_form32"  name="ptype" id="ptype">
									<option value="0">select</option>
									<option value='Branch'>Branch Wise</option>
									<option value='Service'>Service Wise</option>
									<option value='Application'>Application Wise </option>

									
									</select>
									<!--end::Input-->
									</div>
									<!--end::Input group-->
									</div>
									<!--end::Col-->
									
									

									<!--begin::Col-->
									<div class="col-md-6 fv-row" id="package">
									<!--begin::Input group-->
									<div class="fv-row mb-7">
									<!--begin::Label-->
									<label class="required fw-semibold fs-6 mb-2">Package </label>
									<!--end::Label-->
									<!--begin::Input-->
									<select class="form-select form-select-solid" data-control="select2" data-dropdown-parent="#kt_modal_add_user_form32"   name="packagemid" id="packagemid">
									<option value="0">select</option>
									<?php
									$eve = "select * from res_package_master";

									$re = mysqli_query($conn, $eve);

									while($rt = mysqli_fetch_assoc($re))

									{

									$packagemid=$rt['packagemid'];
									$packagename=$rt['packagename'];

									echo "<option value='$packagemid'>$packagename</option>";

									}

									?>
									</select>
									<!--end::Input-->
									</div>
									<!--end::Input group-->
									</div>
									<!--end::Col-->
									<!--begin::Col-->
									<div class="col-md-6 fv-row" id="application">
									<!--begin::Input group-->
									<div class="fv-row mb-7">
									<!--begin::Label-->
									<label class="required fw-semibold fs-6 mb-2">College Application </label>
									<!--end::Label-->
									<!--begin::Input-->
									<select class="form-select form-select-solid" data-control="select2" data-dropdown-parent="#kt_modal_add_user_form32"  name="clgappmid" id="clgappmid">
									<option value="0">select</option>
									<?php
									$eve23 = "select * from res_course_master,res_collegeapp_master where res_collegeapp_master.coursemid = res_course_master.coursemid  and  res_collegeapp_master.imid=$imid ";

									$re23 = mysqli_query($conn, $eve23);

									while($rt23 = mysqli_fetch_assoc($re23))

									{

									$collegemid=$rt23['collegemid'];
									$collegemid=$rt23['collegemid'];
									$cnmid=$rt23['cnmid'];
									$clgappmid=$rt23['clgappmid'];
									$coursename="";
					$eve55= "select * from   res_coursename_master where cnmid=$cnmid";
					$re55 = mysqli_query($conn, $eve55);
					 while($rt55 = mysqli_fetch_assoc($re55))
					{
			
						
						$coursename=$rt55['coursename'];
						
					}
						$eve55= "select * from   res_college_master where collegemid=$collegemid";
					$re55 = mysqli_query($conn, $eve55);
					 while($rt55 = mysqli_fetch_assoc($re55))
					{
			
						
						$cmname=$rt55['cmname'];
						
					}
									

									echo "<option value='$clgappmid'>$cmname - $coursename</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">Currency </label>
									<!--end::Label-->
									<!--begin::Input-->
									<input class="form-control form-control-solid fw-bold pe-5" id="pcurrency" name="pcurrency" 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">Fees in Currency  </label>
									<!--end::Label-->
									<!--begin::Input-->
									<input class="form-control form-control-solid fw-bold pe-5" id="pcurrencyrate" name="pcurrencyrate" 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">Fees (INR) </label>
									<!--end::Label-->
									<!--begin::Input-->
									<input class="form-control form-control-solid fw-bold pe-5" id="pcurrencyinr" name="packagefees" readonly>
									<!--end::Input-->
									</div>
									<!--end::Input group-->
									</div>
									<!--end::Col-->
									</div>
									<!--end::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">Offers </label>
									<!--end::Label-->
									<!--begin::Input-->
									<select class="form-select form-select-solid" data-control="select2" data-dropdown-parent="#kt_modal_add_user_form32"   name="offermid" id="offermid">
									<option value="0">select</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">Offers/Discount(%) </label>
									<!--end::Label-->
									<!--begin::Input-->
									<input class="form-control form-control-solid fw-bold pe-5"  name="serviceoffer" id="serviceoffer" type="number" value="0"/>
									<!--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">Final rate (INR)</label>
									<!--end::Label-->
									<!--begin::Input-->
									<input class="form-control form-control-solid fw-bold pe-5"  name="servicefinalrate" id="servicefinalrate" />
									<!--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">Payment Type</label>
									<!--end::Label-->
									<!--begin::Input-->
									<select class="form-select form-select-solid" data-control="select2" data-hide-search="true"  name="spaymenttype" data-dropdown-parent="#kt_modal_add_user_form32"  id="spaymenttype">
									<option value="0">select</option>
									<option value="Full Payment">Full Payment</option>
									<option value="Part Payment">Part Payment</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">Payment Currency</label>
									<!--end::Label-->
									<!--begin::Input-->
									<select class="form-select form-select-solid" data-dropdown-parent="#kt_modal_add_user_form32"  data-control="select2"   name="paycurrency" id="paycurrency" >
													<?php 
																			$eve = "select * from res_currencytoinr_master";

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

																			{											
																				
																				$currencyname=$rt['currencyname'];
																				
																				
																				echo "<option value='$currencyname'>$currencyname </option>";
																				 
																			}
																			
																	?>
													</select>
									<!--end::Input-->
									</div>
									<!--end::Input group-->
									</div>
									<!--end::Col-->
									</div>
					<!--begin::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 in Selected Currency</label>
									<!--end::Label-->
									<!--begin::Input-->
									<input class="form-control form-control-solid fw-bold pe-5"  name="paycurrencyvalue" id="paycurrencyvalue" />
									<!--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 Amount in INR</label>
									<!--end::Label-->
									<!--begin::Input-->
									<input class="form-control form-control-solid fw-bold pe-5"  name="servicepayamount" id="servicepayamount" readonly>
									<!--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" id="reminder">
									<!--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 Payment Reminder</label>
									<!--end::Label-->
									<!--begin::Input-->
									<input class="form-control form-control-solid fw-bold pe-5" placeholder="Select date" name="prdate" data-date-start-date="+0d" id="kt_daterangepicker_13"/>
									<!--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">Reminder Remark</label>
									<!--end::Label-->
									<!--begin::Input-->
									<input class="form-control form-control-solid fw-bold pe-5"  name="prremark" id="prremark" />
									<!--end::Input-->
									</div>
									<!--end::Input group-->
									</div>
									<!--end::Col-->
									</div>
					<!--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_form31" 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-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" data-dropdown-parent="#kt_modal_add_user_form31"   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=" fw-semibold fs-6 mb-2"> Country</label>
																	<!--end::Label-->
																	<!--begin::Input-->
																	<select class="form-select form-select-solid" data-control="select2" data-dropdown-parent="#kt_modal_add_user_form31"  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-->
													
													
													<!--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" data-dropdown-parent="#kt_modal_add_user_form31" name="collegemid" id="collegemid2" required>
										<option value="0">Select College</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 Campus</label>
																	<!--end::Label-->
																	<!--begin::Input-->
																	<select class="form-select form-select-solid" data-control="select2" data-dropdown-parent="#kt_modal_add_user_form31" name="ccampusmid" id="ccampusmid" required>
										<option value="0">Select Campus</option>
										
									</select>
																	<!--end::Input-->
																</div>
																<!--end::Input group-->
																</div>
													
													<!--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" data-dropdown-parent="#kt_modal_add_user_form31" name="coursemid" id="coursemid2">
										<option value="0">Select Course</option>
									</select>
										
									</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">Program Length </label>
																	<!--end::Label-->
																	<!--begin::Input-->
																	<input type="text" name="cmduration" id="cprogramlength"  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">Gross Annual Tuition fees</label>
																	<!--end::Label-->
																	<!--begin::Input-->
																	<input type="text" name="cmfees" id="cgrosstutionfess" 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_form34" 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" data-dropdown-parent="#kt_modal_add_user_form34"  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"> Course</label>
																	<!--end::Label-->
																	<!--begin::Input-->
																	<select class="form-select form-select-solid" data-control="select2" data-dropdown-parent="#kt_modal_add_user_form34"  name="coursemid" id="coursemid1">
																	<option value="0">Select</option>
													<?php 
																			 $eve_main = "select * from res_counselling_detail where coursemid not in (select coursemid from res_collegeapp_master where  imid = ".$_GET['id'].") and   imid = ".$_GET['id'];
										$re_main = mysqli_query($conn, $eve_main);
										while($rt_main = mysqli_fetch_assoc($re_main))
										{

											$coursemid=$rt_main['coursemid'];
											$eve22 = "select countryname,cmname,coursename from res_course_master,res_college_master,res_country_master,res_coursename_master where res_course_master.coursemid=$coursemid and  res_college_master.collegemid = res_course_master.collegemid and  res_country_master.countrymid = res_course_master.countrymid and  res_coursename_master.cnmid = res_course_master.cnmid";
											$re22 = mysqli_query($conn, $eve22);
											while($rt22 = mysqli_fetch_assoc($re22))
										{
											$countryname = $rt22['countryname'];
											$cmname = $rt22['cmname'];
											$coursename = $rt22['coursename'];
										}
												echo "<option value='$coursemid' >$countryname - $cmname - $coursename </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-->
																<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="required">Intake Month </span>
																
															</label>
															<!--end::Label-->
															<!--begin::Input-->
															
															<select class="form-select form-select-solid fw-bold" data-control="select2"  name="cintakemonth" id="citdid">
														<option value="0">Select<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 class="required">Intake Year </span>
																
															</label>
															<!--end::Label-->
															<!--begin::Input-->
															
															<select class="form-select form-select-solid fw-bold" data-control="select2"   name="cintakeyear">
														<?php
														for($i= 2022;$i<2040; $i++)
														{
															echo "<option value='$i' >$i </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 - Student College Application-->
							<!--begin::Modal - Student College Application-->
							<div class="modal fade" id="application_defferal" 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>Application Managemnet</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_form56" class="form" action="clgapplicationman.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"> College Application</label>
																	<!--end::Label-->
																	<!--begin::Input-->
																	<select class="form-select form-select-solid" data-control="select2" data-dropdown-parent="#kt_modal_add_user_form56"  name="clgappmid" id="clgappmid1">
																	<option value="0">Select</option>
													<?php
									$eve23 = "select * from res_course_master,res_collegeapp_master where res_collegeapp_master.coursemid = res_course_master.coursemid  and  res_collegeapp_master.imid= $imid ";

									$re23 = mysqli_query($conn, $eve23);

									while($rt23 = mysqli_fetch_assoc($re23))

									{

									$collegemid=$rt23['collegemid'];
									$collegemid=$rt23['collegemid'];
									$cnmid=$rt23['cnmid'];
									$clgappmid=$rt23['clgappmid'];
									$coursename="";
					$eve55= "select * from   res_coursename_master where cnmid=$cnmid";
					$re55 = mysqli_query($conn, $eve55);
					 while($rt55 = mysqli_fetch_assoc($re55))
					{
			
						
						$coursename=$rt55['coursename'];
						
					}
						$eve55= "select * from   res_college_master where collegemid=$collegemid";
					$re55 = mysqli_query($conn, $eve55);
					 while($rt55 = mysqli_fetch_assoc($re55))
					{
			
						
						$cmname=$rt55['cmname'];
						
					}
									

									echo "<option value='$clgappmid'>$cmname - $coursename</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"> Application Type</label>
																	<!--end::Label-->
																	<!--begin::Input-->
																	<select class="form-select form-select-solid" data-control="select2"  data-dropdown-parent="#kt_modal_add_user_form56" name="camdid" id="camdid">
													<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">
													<!--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="">Start Date</span>
														
													</label>
													<!--end::Label-->
													<!--begin::Input-->
													<input type="text" class="form-control form-control-solid" name="camstartdate" value="" id="camstartdate" readonly>
													<!--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 class="">End Date</span>
														
													</label>
													<!--end::Label-->
													<!--begin::Input-->
													<input type="text" class="form-control form-control-solid" name="camdeadline" value="" id="camdeadline" readonly>
													<!--end::Input-->
												</div>
												<!--end::Input group-->
												</div>
												</div>
													<!--begin::Row-->
												<div class="row row-cols-1 row-cols-sm-1 rol-cols-md-1 row-cols-lg-1">
													<!--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="">Specific Condition </span>
														
													</label>
													<!--end::Label-->
													<!--begin::Input-->
													<textarea type="text" class="form-control form-control-solid" name="camcondition" id="camcondition" value="" readonly></textarea>
													<!--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 class="">Process Detail</span>
														
													</label>
													<!--end::Label-->
													<!--begin::Input-->
													<textarea type="text" class="form-control form-control-solid" name="camprocessdetail" id="camprocessdetail" value="" readonly></textarea>
													<!--end::Input-->
												</div>
												<!--end::Input group-->
												</div>
												
												</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 - Student College Application-->
						<!--begin::Modal - GIC Process-->
							<div class="modal fade" id="student_add_gic_process" 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 GIC Process</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_form35" class="form" action="gicprocessadd.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" data-dropdown-parent="#kt_modal_add_user_form35"  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"> Bank Name</label>
																	<!--end::Label-->
																	<!--begin::Input-->
																	<input type="text" name="gicbankname" id="gicbankname"  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-->
													</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">Username </label>
																	<!--end::Label-->
																	<!--begin::Input-->
																	<input type="text" name="gusername" id="gusername"  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">Password </label>
																	<!--end::Label-->
																	<!--begin::Input-->
																	<input type="text" name="gpassword" id="gpassword"  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-->
													
													</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">Create Date </label>
																	<!--end::Label-->
																	<!--begin::Input-->
																	
																	
																	<input class="form-control form-control-solid fw-bold pe-5" placeholder="Select date" name="gcreatedate" id="kt_daterangepicker_14"/>
																	<!--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">Wire transfer details</label>
																	<!--end::Label-->
																	<!--begin::Input-->
																	<select class="form-select form-select-solid" data-control="select2"   name="gwiretransfer" id="gwiretransfer">
																	<option value="0">Select</option>
																	<option value="Recevied">Recevied</option>
																	<option value="Pending">Pending</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">Wire Trnasfer recevied Date </label>
																	<!--end::Label-->
																	<!--begin::Input-->
																	<input class="form-control form-control-solid fw-bold pe-5" placeholder="Select date" name="gwiretransferrecevieddate" id="kt_daterangepicker_15"/>
																	<!--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">Wire Transfer Document </label>
																	<!--end::Label-->
																	<!--begin::Input-->
																	<input type="file" name="gwiretransferdocument" id="gwiretransferdocument"  class="form-control form-control-solid fw-bold pe-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">Mode of Payment </label>
																	<!--end::Label-->
																	<!--begin::Input-->
																	
																	<select class="form-select form-select-solid" data-control="select2"  data-dropdown-parent="#kt_modal_add_user_form35" name="gmodeofpayment" id="gmodeofpayment">
																	<option value="0">Select</option>
																	<option value="Wire Transfer">Wire Transfer</option>
																	<option value="RTGC">RTGC</option>
																	<option value="NEFT">NEFT</option>
																	<option value="Cheque">Cheque</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">Amount </label>
																	<!--end::Label-->
																	<!--begin::Input-->
																	<input type="text" name="gpaymentvalue" id="gpaymentvalue"  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-->
													</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">Currency </label>
																	<!--end::Label-->
																	<!--begin::Input-->
																	
																	<select class="form-select form-select-solid" data-control="select2" data-dropdown-parent="#kt_modal_add_user_form35"  name="gcurrency" id="gcurrency">
																	<option value="0">Select</option>
																	<?php
																	$eve_p = "select * from res_country_master group by countrycurrency";
																		$re_p = mysqli_query($conn, $eve_p);
																		while($rt_p = mysqli_fetch_assoc($re_p))
																		{
																		echo "<option value='$rt_p[countrycurrency]'>$rt_p[countrycurrency]</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">Rate </label>
																	<!--end::Label-->
																	<!--begin::Input-->
																	<input type="text" name="grate" id="grate"  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-->
													</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 Status </label>
																	<!--end::Label-->
																	<!--begin::Input-->
																	
																	<select class="form-select form-select-solid" data-control="select2" data-dropdown-parent="#kt_modal_add_user_form35"  name="gpaystatus" id="gpaystatus">
																	<option value="0">Select</option>
																	<option value="Paid">Paid</option>
																	<option value="Pending">Pending</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">Payment Date </label>
																	<!--end::Label-->
																	<!--begin::Input-->
																	<input type="text" name="gpaydate" id="kt_daterangepicker_16"  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-->
													</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"> Certificate Status </label>
																	<!--end::Label-->
																	<!--begin::Input-->
																	
																	<select class="form-select form-select-solid" data-control="select2" data-dropdown-parent="#kt_modal_add_user_form35"  name="gcertificatestatus" id="gcertificatestatus">
																	<option value="0">Select</option>
																	
																	<option value="Pending">Pending</option>
																	<option value="Recevied">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">Certificate Recevied Date </label>
																	<!--end::Label-->
																	<!--begin::Input-->
																	<input type="text" name="gcertificatereceiveddate" id="kt_daterangepicker_17"  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-->
													</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"> Certificate Document </label>
																	<!--end::Label-->
																	<!--begin::Input-->
																	
																	<input type="file" name="gcertificatedocument" id="gcertificatedocument"  class="form-control form-control-solid fw-bold pe-5" aria-required="true" aria-invalid="false" aria-describedby="name-error" />
																	<!--end::Input-->
																	<!--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">Transcation Charges </label>
																	<!--end::Label-->
																	<!--begin::Input-->
																	<input type="text" name="gtranscationcharges" id="gtranscationcharges"  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-->
													</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 - GIC Process-->
						<!--begin::Medical Appointment-->
							<div class="modal fade" id="student_add_medical_appo" 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 Medical Appointment</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_form36" class="form" action="medicalappointmentadd.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"  data-dropdown-parent="#kt_modal_add_user_form36" 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"> Appointment Date</label>
																	<!--end::Label-->
																	<!--begin::Input-->
																	<input type="text" name="madate" id="kt_daterangepicker_18"  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-->
													</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>Country</span>
																
															</label>
															<!--end::Label-->
															<!--begin::Input-->
													<select class="form-select form-select-solid" data-control="select2"  name="countrymid" data-dropdown-parent="#kt_modal_add_user_form36" id="agentcountry">
													<option value="0">select</option>
													<?php 
																			$eve = "select * from res_country_master";

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

																			{											
																				
																				$countrymid=$rt['countrymid'];
																				$countryname=$rt['countryname'];
																				
																				echo "<option value='$countrymid'>$countryname</option>";
																				 
																			}
																			
																	?>
													</select>
													<!--end::Input-->
														</div>
														<!--end::Input group-->
													</div>
													  <!--end::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>
																
															</label>
															<!--end::Label-->
															<!--begin::Input-->
													<select class="form-select form-select-solid" data-control="select2" name="statemid" data-dropdown-parent="#kt_modal_add_user_form36" id="agentstate">
													<option value="0">select</option>
													</select>
													<!--end::Input-->
														</div>
														<!--end::Input group-->
													</div>
													<!--end::Col-->
													</div>
													<!--begin::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>City</span>
																
															</label>
															<!--end::Label-->
															<!--begin::Input-->
													<select class="form-select form-select-solid" data-control="select2" name="citymid" data-dropdown-parent="#kt_modal_add_user_form36" id="agentcity">
													 <option value="0">select</option>
													</select>
													<!--end::Input-->
														</div>
														<!--end::Input group-->
													</div>
													
													<!--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">Center</label>
																	<!--end::Label-->
																	<!--begin::Input-->
																	<input type="text" name="centre" id="centre"  class="form-control form-control-solid fw-bold pe-5"  />
																	<!--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 - Medical Appointment-->
							<!--begin::Biometric Appointment-->
							<div class="modal fade" id="student_add_biometric_appo" 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 Biometric Appointment</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_form37" class="form" action="biometricappointmentadd.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" data-dropdown-parent="#kt_modal_add_user_form37"  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"> Appointment Date</label>
																	<!--end::Label-->
																	<!--begin::Input-->
																	<input type="text" name="bamdate" id="kt_daterangepicker_19"  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-->
													</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 - Biometric Appointment-->
						<!--begin::Visa File Submission---->
							<div class="modal fade" id="student_add_visafile_submission" 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 Visa File Submission</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_form38" class="form" action="visafilesubmissionadd.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" data-dropdown-parent="#kt_modal_add_user_form38"   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"> Submission Date</label>
																	<!--end::Label-->
																	<!--begin::Input-->
																	<input type="text" name="vsdate" id="kt_daterangepicker_20"  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-->
													</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>Visa Filing TYpe</span>
																
															</label>
															<!--end::Label-->
															<!--begin::Input-->
													<select class="form-select form-select-solid" data-control="select2"  name="vfilingtype" data-dropdown-parent="#kt_modal_add_user_form38" id="vfilingtype">
													<option value="0">select</option>
													<option value="SDS">SDS</option>
													<option value="NON SDS">NON SDS</option>
													
													</select>
													<!--end::Input-->
														</div>
														<!--end::Input group-->
													</div>
													  <!--end::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>Submission Type</span>
																
															</label>
															<!--end::Label-->
															<!--begin::Input-->
													<select class="form-select form-select-solid" data-control="select2" name="vsubmissiontype" data-dropdown-parent="#kt_modal_add_user_form38" id="vsubmissiontype">
													<option value="0">select</option>
													<option value="Online">Online</option>
													<option value="Offline">Offline</option>
													</select>
													<!--end::Input-->
														</div>
														<!--end::Input group-->
													</div>
													<!--end::Col-->
													</div>
													<!--begin::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>Receipt</span>
																
															</label>
															<!--end::Label-->
															<!--begin::Input-->
													<input type="text" name="vreceiptno" id="vreceiptno"  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>
													
													<!--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">visafilestatus</label>
																	<!--end::Label-->
																	<!--begin::Input-->
																	<select class="form-select form-select-solid" data-control="select2" data-dropdown-parent="#kt_modal_add_user_form38" name="visafilestatus" id="visafilestatus">
													<option value="0">select</option>
													<option value="Submitted">Submitted</option>
													<option value="Pending">Pending</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-1 rol-cols-md-1 row-cols-lg-1">
													<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>Remarks</span>
																
															</label>
															<!--end::Label-->
															<!--begin::Input-->
													<textarea type="text" name="vsremarks" id="vsremarks"  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>
													
													</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 - Visa File Submission-->
						
						<!--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>
															<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">Stage</label>
																	<!--end::Label-->
																	<!--begin::Input-->
																	<select class="form-select form-select-solid" data-control="select2"   name="sistatus" >
													 <?php	
							$eve_p = "select * from res_stage_master";
							$re_p = mysqli_query($conn, $eve_p);
							while($rt_p = mysqli_fetch_assoc($re_p))
							{
							echo "<option value='$rt_p[stagename]'>$rt_p[stagename]</option>";
							}		
							?>	
																	
																	</select>
																	<!--end::Input-->
																</div>
																<!--end::Input group-->
																</div>
													<!--end::Col-->
													<!--begin::Col-->
													</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 - Stage Update-->
							<div class="modal fade" id="view-modal9" 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_form40" class="form" action="gicrefund2.php" method="POST" enctype="multipart/form-data">
														<input type="hidden" name="imid" value="<?php echo $imid; ?>">
															<!--begin::Scroll-->
															<!-- content will be load here -->
															<div id="dynamic-content9"></div>
														<!--end::Scroll-->
																				<!--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>Reason Of Refund</span>
																
															</label>
															<!--end::Label-->
															<!--begin::Input-->
													<select class="form-select form-select-solid" data-control="select2" name="grreason" id="grreason" data-dropdown-parent="#kt_modal_add_user_form40">
													<option value="0">select</option>
													<option value="Visa refusal">Visa refusal</option>
													<option value="Personal Reason">Personal Reason</option>
													</select>
													<!--end::Input-->
														</div>
														<!--end::Input group-->
													</div>
													
													<!--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">Refund Status</label>
																	<!--end::Label-->
																	<!--begin::Input-->
																	<select class="form-select form-select-solid" data-control="select2" name="grefundstatus" id="grefundstatus" data-dropdown-parent="#kt_modal_add_user_form40">
													<option value="0">select</option>
													<option value="Refund applied">Refund applied</option>
													<option value="Pending">Pending</option>
													<option value="In Process">In Process</option>
													</select>
																	<!--end::Input-->
																</div>
																<!--end::Input group-->
																</div>
													<!--end::Col-->
													</div><!--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">Refund Document</label>
																	<!--end::Label-->
																	<!--begin::Input-->
																	<input type="file" name="vreceiptno" id="vreceiptno"  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::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>
															<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">Status</label>
																	<!--end::Label-->
																	<!--begin::Input-->
																	<select class="form-select form-select-solid" data-control="select2"   name="status" >
													<option value="Open">Open</option>
													<option value="Close">Close</option>
													<option value="Cancel">Cancel</option>
																	<!--end::Input-->
																	</select>
																</div>
																<!--end::Input group-->
																</div>
													<!--end::Col-->
													<!--begin::Col-->
													</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>
															
															<!--end::Actions-->
														</form>
														<!--end::Form-->
													</div>
										<!--end::Modal body-->
									</div>
									<!--end::Modal content-->
								</div>
								<!--end::Modal dialog-->
							</div>
							<!--end::Modal - Status Update-->
							<!--begin::Modal -collage application Status Update-->
							<div class="modal fade" id="view-modal6" 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="collegeappstatus2.php" method="POST">
														<input type="hidden" name="imid" value="<?php echo $imid; ?>">
															<!--begin::Scroll-->
															<!-- content will be load here -->
															<div id="dynamic-content6"></div>
																<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="capstatus" >
													<?php
						$eve_main = "select * from res_status_master where statustype = 'College Application'";
						$re_main = mysqli_query($conn, $eve_main);
						while($rt_main = mysqli_fetch_assoc($re_main))
						{

							$statusmid=$rt_main['statusmid'];
							$statusname=$rt_main['statusname'];
							if($statusmid1==$statusmid)
							{
								echo "<option value='$statusname' selected>$statusname</option>";
							}
							else
							{
								echo "<option value='$statusname'>$statusname</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">Application Number </label>
																	<!--end::Label-->
																	<!--begin::Input-->
																	<input type="text" name="cappnumber" id="cappnumber"  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-->
													<!--begin::Col-->
													</div>
												<div class="row row-cols-1 row-cols-sm-2 rol-cols-md-1 row-cols-lg-2" id="offer">
													
													<!--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">Offer Letter</label>
																	<!--end::Label-->
																	<!--begin::Input-->
																	<input type="file" name="cofferdocument" id="cofferdocument"  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">Student Id</label>
																	<!--end::Label-->
																	<!--begin::Input-->
																	<input type="text" name="cstudentid" id="cstudentid"  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>
													<!--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>
															
															<!--end::Actions-->
														</form>
														<!--end::Form-->
													</div>
										<!--end::Modal body-->
									</div>
									<!--end::Modal content-->
								</div>
								<!--end::Modal dialog-->
							</div>
							<!--end::Modal -collage application Status Update-->
							<!--begin::Modal - Payment Recevied-->
							<div class="modal fade" id="view-modal2" 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_form21" class="form" action="payrecived2.php" method="POST" enctype="multipart/form-data">
														<input type="hidden" name="imid" value="<?php echo $imid; ?>">
															<!--begin::Scroll-->
															<!-- content will be load here -->
															<div id="dynamic-content2"></div>
														<!--end::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">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_12"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 Mode </label>
																	<!--end::Label-->
																	<!--begin::Input-->
																	<select class="form-select form-select-solid" data-control="select2" data-dropdown-parent="#kt_modal_add_user_form21"  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-->
													</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 Charge </label>
																	<!--end::Label-->
																	<!--begin::Input-->
																		<input class="form-control form-control-solid fw-bold pe-5"  name="paymentmodecharge" id="paymentmodecharge" 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 Mode </label>
																	<!--end::Label-->
																	<!--begin::Input-->
																	<input class="form-control form-control-solid fw-bold pe-5"  name="pfinalpayamount" id="pfinalpayamount" 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">Company</label>
																	<!--end::Label-->
																	<!--begin::Input-->
																	<select class="form-select form-select-solid" data-control="select2" data-dropdown-parent="#kt_modal_add_user_form21"  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" data-dropdown-parent="#kt_modal_add_user_form21"  name="bankmid" id="bankmid">
																	<option value="0">Select</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="required fw-semibold fs-6 mb-2">Payment Prrof </label>
																	<!--end::Label-->
																	<!--begin::Input-->
																	<input type="file" name="file2" class="form-control" required>
																	<!--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">Transcation Detail </label>
																	<!--end::Label-->
																	<!--begin::Input-->
																	<textarea class="form-control form-control-solid fw-bold pe-5"  name="payremark" required></textarea>
																	<!--end::Input-->
																</div>
																<!--end::Input group-->
													
															<!--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 - Payment Recevied-->
							<!--begin::Modal - Hold Status-->
							<div class="modal fade" id="view-modal3" 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_form22" class="form" action="holdstatus2.php" method="POST">
														<input type="hidden" name="imid" value="<?php echo $imid; ?>">
															<!--begin::Scroll-->
															<!-- content will be load here -->
															<div id="dynamic-content3"></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 - Hold Status-->
							<!--begin::Modal - Payment Transcation-->
							<div class="modal fade" id="view-modal5" 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-->
														
															<!--begin::Scroll-->
															<!-- content will be load here -->
															<div id="dynamic-content5"></div>
														<!--end::Scroll-->
													
															<!--end::Actions-->
														
														<!--end::Form-->
													</div>
										<!--end::Modal body-->
									</div>
									<!--end::Modal content-->
								</div>
								<!--end::Modal dialog-->
							</div>
							<!--end::Modal - Payment Transcation-->
							<!--begin::Modal - View Score-->
							<div class="modal fade" id="view-modal7" 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-->
														
															<!--begin::Scroll-->
															<!-- content will be load here -->
															<div id="dynamic-content7"></div>
														<!--end::Scroll-->
													
															<!--end::Actions-->
														
														<!--end::Form-->
													</div>
										<!--end::Modal body-->
									</div>
									<!--end::Modal content-->
								</div>
								<!--end::Modal dialog-->
							</div>
							<!--end::Modal - View Score-->
							<!--begin::Modal - Payment Transcation-->
							<div class="modal fade" id="view-modal13" 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-->
														
															<!--begin::Scroll-->
															<!-- content will be load here -->
															<div id="dynamic-content13"></div>
														<!--end::Scroll-->
													<!--end::Actions-->
														</form>
														<!--end::Form-->
													</div>
										<!--end::Modal body-->
									</div>
									<!--end::Modal content-->
								</div>
								<!--end::Modal dialog-->
							</div>
							<!--end::Modal - Payment Transcation-->
							<!--begin::Modal - Payment Transcation-->
							<div class="modal fade" id="view-modal23" 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-->
														
															<!--begin::Scroll-->
															<!-- content will be load here -->
															<div id="dynamic-content23"></div>
														<!--end::Scroll-->
													<!--end::Actions-->
														</form>
														<!--end::Form-->
													</div>
										<!--end::Modal body-->
									</div>
									<!--end::Modal content-->
								</div>
								<!--end::Modal dialog-->
							</div>
							<!--end::Modal - Payment Transcation-->
							
							
									
		<!--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").flatpickr({
        enableTime:!1,dateFormat:"d-m-Y"
    }
   
);
		});
		</script>
		
		<script type="text/javascript">
		$(document).ready(function(){
			$("#kt_daterangepicker_2").flatpickr({
        enableTime:!1,dateFormat:"d-m-Y"
    });
		});
		</script>
		<script type="text/javascript">
		$(document).ready(function(){
			$("#kt_daterangepicker_3").flatpickr({
       dateFormat:"d-m-Y"
    });
		});
		</script>
		<script type="text/javascript">
		$(document).ready(function(){
			$("#kt_daterangepicker_4").flatpickr({
        enableTime:!1,dateFormat:"d-m-Y"
    });
		});
		</script>
		<script type="text/javascript">
		$(document).ready(function(){
			$("#kt_daterangepicker_5").flatpickr({
        enableTime:!1,dateFormat:"d-m-Y"
    });
		});
		</script>
		<script type="text/javascript">
		$(document).ready(function(){
			$("#kt_daterangepicker_6").flatpickr({
        enableTime:!1,dateFormat:"d-m-Y"
    });
		});
		</script>
		<script type="text/javascript">
		$(document).ready(function(){
			$("#kt_daterangepicker_7").flatpickr({
        enableTime:!1,dateFormat:"d-m-Y"
    });
		});
		</script>
		<script type="text/javascript">
		$(document).ready(function(){
			$("#kt_daterangepicker_8").flatpickr({
        enableTime:!1,dateFormat:"d-m-Y"
    });
		});
		</script>
		<script type="text/javascript">
		$(document).ready(function(){
			$("#kt_daterangepicker_9").flatpickr({
        enableTime:!1,dateFormat:"d-m-Y"
    });
		});
		</script>
		<script type="text/javascript">
		$(document).ready(function(){
			$("#kt_daterangepicker_10").flatpickr({
        enableTime:!1,dateFormat:"d-m-Y"
    });
		});
		</script>
		<script type="text/javascript">
		$(document).ready(function(){
			$("#kt_daterangepicker_11").flatpickr({
        enableTime:!1,dateFormat:"d-m-Y"
    });
		});
		</script>
		<script type="text/javascript">
		$(document).ready(function(){
			$("#kt_daterangepicker_12").flatpickr({
        enableTime:!1,dateFormat:"d-m-Y"
    });
		});
		</script>
		<script type="text/javascript">
		$(document).ready(function(){
			$("#kt_daterangepicker_13").flatpickr({
        enableTime:!1,dateFormat:"d-m-Y"
    });
		});
		</script><script type="text/javascript">
		$(document).ready(function(){
			$("#kt_daterangepicker_14").flatpickr({
        enableTime:!1,dateFormat:"d-m-Y"
    });
		});
		</script><script type="text/javascript">
		$(document).ready(function(){
			$("#kt_daterangepicker_15").flatpickr({
        enableTime:!1,dateFormat:"d-m-Y"
    });
		});
		</script><script type="text/javascript">
		$(document).ready(function(){
			$("#kt_daterangepicker_16").flatpickr({
        enableTime:!1,dateFormat:"d-m-Y"
    });
		});
		</script><script type="text/javascript">
		$(document).ready(function(){
			$("#kt_daterangepicker_17").flatpickr({
        enableTime:!1,dateFormat:"d-m-Y"
    });
		});
		</script><script type="text/javascript">
		$(document).ready(function(){
			$("#kt_daterangepicker_18").flatpickr({
        enableTime:!1,dateFormat:"d-m-Y"
    });
		});
		</script><script type="text/javascript">
		$(document).ready(function(){
			$("#kt_daterangepicker_19").flatpickr({
        enableTime:!1,dateFormat:"d-m-Y"
    });
		});
		</script>
		<script type="text/javascript">
		$(document).ready(function(){
			$("#kt_daterangepicker_20").flatpickr({
        enableTime:!1,dateFormat:"d-m-Y"
    });
		});
		</script><script type="text/javascript">
		$(document).ready(function(){
			$("#kt_daterangepicker_21").flatpickr({
        enableTime:!1,dateFormat:"d-m-Y"
    });
		});
		</script><script type="text/javascript">
		$(document).ready(function(){
			$("#kt_daterangepicker_22").flatpickr({
        enableTime:!1,dateFormat:"d-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(){
        
        
       $("#application").hide();
        $("#ptype").change(function () {
			
          if ($(this).val() == "Application") {
            $("#application").show();
           $("#package").hide();
          }
          else {
            $("#application").hide();
           $("#package").show();
            
          }
		  
		/*   if ($(this).val() == "Branch" || $(this).val() == "Country") {
            $("#package").show();
          
          }
          else {
            $("#application").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() == "CELPIP" || $(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(companymid);
				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>
		$('#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(){
			$('#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: 'status1.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', '#getUser6', function(e){

			e.preventDefault();

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

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

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

		});
	});

	

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

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

			e.preventDefault();

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

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

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

		});
	});

	

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

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

			e.preventDefault();

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

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

			$.ajax({
				url: 'paymenttranscation.php',
				type: 'POST',
				data: 'id='+uid,
				dataType: 'html'
			})
			.done(function(data){
				console.log(data);
				$('#dynamic-content5').html('');
				$('#dynamic-content5').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>
		$(document).ready(function(){

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

			e.preventDefault();

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

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

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

		});
	});

	

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

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

			e.preventDefault();

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

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

			$.ajax({
				url: 'holdstatus.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>
		$(document).ready(function(){

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

			e.preventDefault();

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

			$('#dynamic-content4').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-content4').html('');
				$('#dynamic-content4').html(data); // load response
						  // hide ajax loader
			})
			.fail(function(){
				$('#dynamic-content4').html('<i class="glyphicon glyphicon-info-sign"></i> Something went wrong, Please try again...');
				
			});

		});
	});

	

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

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

			e.preventDefault();

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

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

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

		});
	});

	

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

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

			e.preventDefault();

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

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

			$.ajax({
				url: 'gicrefund.php',
				type: 'POST',
				data: 'id='+uid,
				dataType: 'html'
			})
			.done(function(data){
				console.log(data);
				$('#dynamic-content9').html('');
				$('#dynamic-content9').html(data); // load response
						  // hide ajax loader
			})
			.fail(function(){
				$('#dynamic-content9').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:'countrytocollegedata.php',
							data:'countrymid='+countrymid,
							success:function(html){
								$('#collegemid1').html(html);
							}
						});
					}else{
						$('#collegemid1').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:'countrytocollegedata.php',
							data:'countrymid='+countrymid,
							success:function(html){
								$('#collegemid2').html(html);
							}
						});
					}else{
						$('#collegemid2').html('<option value=""></option>');
					}
				});
			});
	</script>
	<script type="text/javascript">
			$(document).ready(function(){
				$('#ccampusmid').on('change',function(){
					var ccampusmid = $(this).val();
					if(ccampusmid){
						$.ajax({
							type:'POST',
							url:'coursecampusdata.php',
							data:'ccampusmid='+ccampusmid,
							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(){
				$('#collegemid1').on('change',function(){
					var collegemid = $(this).val();
					if(collegemid){
						$.ajax({
							type:'POST',
							url:'coursetocollegedata.php',
							data:'collegemid='+collegemid,
							success:function(html){
								$('#coursemid1').html(html);
							}
						});
					}else{
						$('#coursemid1').html('<option value=""></option>');
					}
				});
			});
	</script>
	<script type="text/javascript">
			$(document).ready(function(){
				$('#collegemid2').on('change',function(){
					var collegemid = $(this).val();
					if(collegemid){
						$.ajax({
							type:'POST',
							url:'collegecampus.php',
							data:'collegemid='+collegemid,
							success:function(html){
								$('#ccampusmid').html(html);
							}
						});
					}else{
						$('#ccampusmid').html('<option value=""></option>');
					}
				});
			});
	</script>

	
	<script type="text/javascript">
			$(document).ready(function(){
				$('#ptype').on('change',function(){
					var ptype = $(this).val();
					
					var stiqmid = $('#stiqmid3').val();
					if(ptype){
						//alert(ptype);
						//alert(stiqmid);
						$.ajax({
							type:'POST',
							url:'packagedata.php',
							data:'ptype='+ptype+'&stiqmid='+stiqmid,
							success:function(html){
								$('#packagemid').html(html);
							}
						});
					}else{
						$('#packagemid').html('<option value=""></option>');
					}
				});
			});
	</script>
	<script type="text/javascript">
			$(document).ready(function(){
				$('#stiqmid3').on('change',function(){
					
					
					var stiqmid = $(this).val();
					if(stiqmid){
						//alert(ptype);
						//alert(stiqmid);
						$.ajax({
							type:'POST',
							url:'offerdata.php',
							data:'stiqmid='+stiqmid,
							success:function(html){
								$('#offermid').html(html);
							}
						});
					}else{
						$('#offermid').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) 
	{
		$('#cprogramlength').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) 
	{
		$('#cgrosstutionfess').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_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_form21').submit(function(e)
		{
			if($('#paymode').val() == '0')
			{
				alert('Select Payment Mode');
				e.preventDefault();
			}

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

		});
	
	</script>
 <script type="text/javascript">
	
		$('#kt_modal_add_eduvcation_form21').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>
 <script>

 $('#packagemid').on('change',function(){



$.get("packagetofees.php", { packagemid : $(this).val() }, function(response) {

//alert(response);

$('#pcurrencyinr').val( $.trim(response) );
$('#servicefinalrate').val( $.trim(response) );


});

$.get("packagecurrency.php", { packagemid : $(this).val() }, function(response) {

//alert(response);

$('#pcurrency').val( $.trim(response) );

});
$.get("packagecurrencyrate.php", { packagemid : $(this).val() }, function(response) {

//alert(response);

$('#pcurrencyrate').val( $.trim(response) );

});


});

</script>
<script>

 $('#offermid').on('change',function(){



$.get("getofferdiscount.php", { offermid : $(this).val() }, function(response) {

//alert(response);

$('#serviceoffer').val( $.trim(response) );

});


});

</script>
	<script>

 $('#clgappmid').on('change',function(){



$.get("coursetofees.php", { clgappmid : $(this).val() }, function(response) {

//alert(response);

$('#pcurrencyrate').val( $.trim(response) );


});

$.get("coursecurrency.php", { clgappmid : $(this).val() }, function(response) {

//alert(response);

$('#pcurrency').val( $.trim(response) );

});
$.get("coursefeesinr.php", { clgappmid : $(this).val() }, function(response) {

//alert(response);

$('#pcurrencyinr').val( $.trim(response) );

});

$.get("packagdiscount.php", { serviceoffer : $('#serviceoffer').val() , pcurrencyinr : $('#pcurrencyinr').val() }, function(response) {

				//alert(response);
				
				$('#servicefinalrate').val( $.trim(response) );
				
				});
});

</script>
		<script>

 $('#pcurrencyinr').on('keyup',function(){



$.get("packagdiscount.php", { pcurrencyinr : $(this).val(), serviceoffer : $('#serviceoffer').val() }, function(response) {

//alert(response);

$('#servicefinalrate').val( $.trim(response) );

});
});

</script>
<script>

 $('#spaymenttype').on('change',function(){


if($(this).val() == 'Full Payment')
{


//alert(response);

$('#servicepayamount').val( $('#servicefinalrate').val() );
$.get("paycurrencyvalue.php", { servicefinalrate : $('#servicefinalrate').val() , paycurrency : $('#paycurrency').val() }, function(response) {

				//alert(response);
				
				$('#paycurrencyvalue').val( $.trim(response) );
				
				});
}


});

</script>

<script>
$('#reminder').hide();
 $('#spaymenttype').on('change',function(){


if($(this).val() == 'Part Payment')
{


//alert(response);

$('#reminder').show();
}else{
	$('#reminder').hide();
}


});

</script>
	<script>
		 
		  $('#serviceoffer').on('keyup',function(){


				
				$.get("packagdiscount.php", { serviceoffer : $(this).val() , pcurrencyinr : $('#pcurrencyinr').val() }, function(response) {

				//alert(response);
				
				$('#servicefinalrate').val( $.trim(response) );
				
				});
			});
		</script>
		<script>
		 
		 


				
				$.get("packagdiscount.php", { serviceoffer : $('#serviceoffer').val() , pcurrencyinr : $('#pcurrencyinr').val() }, function(response) {

				//alert(response);
				
				$('#servicefinalrate').val( $.trim(response) );
				
				});
		
		</script>
		<script>
		 
		  $('#paycurrencyvalue').on('keyup',function(){


				
				$.get("currencytoinr.php", { pcurrencyrate : $(this).val() , pcurrency : $('#paycurrency').val() }, function(response) {

				//alert(response);
				
				$('#servicepayamount').val( $.trim(response) );
				
				});
			});
		</script>
		<script>
		 
		  $('#paycurrency1').on('change',function(){


				
				$.get("currencytoinr.php", { pcurrency : $(this).val() , pcurrencyrate : $('#paycurrencyvalue1').val()  }, function(response) {

				//alert(response);
				
				$('#paidamount').val( $.trim(response) );
				
				});
			});
		</script>
		<script>
		 
		  $('#paymode').on('change',function(){


				
				$.get("paymentmodecharge.php", { paymode : $(this).val()   }, function(response) {

				//alert(response);
				
				$('#paymentmodecharge').val( $.trim(response) );
				
				});
			$.get("pfinalpayamount.php", { paymode : $(this).val() ,paycurrency : $('#paycurrency23').val(),paycurrencyvalue : $('#paycurrencyvalue23').val()  }, function(response) {

				//alert(response);
				
				$('#pfinalpayamount').val( $.trim(response) );
				
				});
			});
		</script>
		<script>
		 
		  $('#paycurrencyvalue1').on('keyup',function(){


				
				$.get("currencytoinr.php", { pcurrencyrate : $(this).val() , pcurrency : $('#paycurrency1').val() }, function(response) {

				//alert(response);
				
				$('#paidamount').val( $.trim(response) );
				
				});
			});
		</script>
		<script>
		 
		  $('#paycurrency').on('change',function(){

				$.get("paycurrencyvalue.php", { servicefinalrate : $('#servicefinalrate').val() , paycurrency : $(this).val() }, function(response) {

				//alert(response);
				
				$('#paycurrencyvalue').val( $.trim(response) );
				});
				
				
				
			});
		</script>
		
	<script type="text/javascript">

$('#agentcountry').on('change',function(){
var agentcountry = $(this).val();

if(agentcountry){
$.ajax({
	
type:'POST',
url:'getstatedata1.php',
data:'countrymid='+agentcountry,
success:function(html){
$('#agentstate').html(html);
}
});
}else{
$('#agentstate').html('<option value="0">No Data Found</option>');
}
});

</script>
<script type="text/javascript">

$('#iexpcountry').on('change',function(){
var iexpcountry = $(this).val();

if(iexpcountry){
$.ajax({
	
type:'POST',
url:'getcitycountry.php',
data:'countrymid='+iexpcountry,
success:function(html){
$('#iexpcity').html(html);
}
});
}else{
$('#iexpcity').html('<option value="0">No Data Found</option>');
}
});

</script>

<script type="text/javascript">
$(document).ready(function(){
$('#agentstate').on('change',function(){
var agentstate = $(this).val();
//alert(agentstate);
if(agentstate){
$.ajax({
type:'POST',
url:'getcitydata1.php',
data:'statemid='+agentstate,
success:function(html){
$('#agentcity').html(html);
}
});
}else{
$('#agentcity').html('<option value="0">No Data Found</option>');
}
});
});
</script>
<script type="text/javascript">
		$(document).ready(function(){
			$('#subservice').on('change',function(){
				var subservice = $(this).val();
				var inquirydate = $('#inquirydate').val();
				//alert(ibirthstate);
				if(subservice){
					$.ajax({
						type:'POST',
						url:'getofferdata.php',
						data:'subservice='+subservice+'&inquirydate='+inquirydate,
						success:function(html){
							$('#offer').html(html);
						}
					}); 
				}else{
					$('#offer').html('<option value="0">No Data Found</option>'); 
				}
			});
		});
		</script>
		<script type="text/javascript">
			$(document).ready(function(){
				
					
					var coursemid = $('#coursemid1').val();
					//alert(collegemid);
					if(coursemid){
						$.ajax({
							type:'POST',
							url:'courseintake.php',
							data:'coursemid='+coursemid,
							success:function(html){
								$('#citdid').html(html);
							}
						});
					}else{
						$('#citdid').html('<option value=""></option>');
					}
				
			});
	</script>
	<script type="text/javascript">
			$(document).ready(function(){
				$('#coursemid1').on('change',function(){
					
					var coursemid = $(this).val();
					
					if(coursemid){
						
						$.ajax({
							type:'POST',
							url:'courseintake.php',
							data:'coursemid='+coursemid,
							success:function(html){
								$('#citdid').html(html);
							}
						});
					}else{
						$('#citdid').html('<option value=""></option>');
					}
				});
			});
	</script>
	
	<script type="text/javascript">
			$(document).ready(function(){
				$('#clgappmid1').on('change',function(){
					
					var clgappmid = $(this).val();
					
					if(clgappmid){
						
						$.ajax({
							type:'POST',
							url:'collegeapplicationmanage.php',
							data:'clgappmid='+clgappmid,
							success:function(html){
								$('#camdid').html(html);
							}
						});
					}else{
						$('#camdid').html('<option value=""></option>');
					}
				});
			});
	</script>
	<script type="text/javascript">
			$(document).ready(function(){
				$('#camdid').on('change',function(){
					
					var camdid = $(this).val();
					
					if(camdid){
						
						$.ajax({
							type:'POST',
							url:'applicationsteps.php',
							data:'camdid='+camdid,
							success:function(html){
								$('#steps').html(html);
							}
						});
					}else{
						$('#steps').html('<option value=""></option>');
					}
				});
			});
	</script>
	<script>
$('#coursemid1').on('change',function()
{
	
	
	
	$.get("coursefees.php", { coursemid : $(this).val() }, function(response) 
	{
		$('#cgrosstutionfess2').val( $.trim(response) );

	});
});
</script>
<script>
$('#camdid').on('change',function()
{
	
	
	
	$.get("camstartdate.php", { camdid : $(this).val() }, function(response) 
	{
		$('#camstartdate').val( $.trim(response) );

	});
	
	$.get("camdeadline.php", { camdid : $(this).val() }, function(response) 
	{
		$('#camdeadline').val( $.trim(response) );

	});
	
	$.get("camcondition.php", { camdid : $(this).val() }, function(response) 
	{
		$('#camcondition').val( $.trim(response) );

	});
	$.get("camprocessdetail.php", { camdid : $(this).val() }, function(response) 
	{
		$('#camprocessdetail').val( $.trim(response) );

	});
});
</script>
<script type="text/javascript">
      $(document).ready(function(){
        $("#offer").hide();
        
        $("#capstatus").change(function () {
          if ($(this).val() == "Conditional Offer Received" || $(this).val() == "Unconditional Offer Received") {
            $("#offer").show();
            }
          else {
            $("#offer").hide();
            }
        }
                             );
      }
                       );
    </script> 
	<script>
		$(document).ready(function(){

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

			e.preventDefault();

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

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

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

		});
	});

	

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

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

			e.preventDefault();

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

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

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

		});
	});

	

</script>	

		<!--end::Javascript-->
	</body>
	<!--end::Body-->
</html>