<!doctype html>
<html class="fixed">
<head>

	<!-- Basic -->
	<meta charset="UTF-8">

	<title>Survey</title>
	<meta name="keywords" content="HTML5 Admin Template" />
	<meta name="description" content="Porto Admin - Responsive HTML5 Template">
	<meta name="author" content="okler.net">
	<meta name="csrf-token" content="{{ csrf_token() }}">
	<!-- Mobile Metas -->
	<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no" />

	<!-- Web Fonts  -->
	<link href="http://fonts.googleapis.com/css?family=Open+Sans:300,400,600,700,800|Shadows+Into+Light" rel="stylesheet" type="text/css">

	<!-- Vendor CSS -->
	<link rel="stylesheet" href="{{asset('backend/assets/vendor/bootstrap/css/bootstrap.css')}}" />
	<link rel="stylesheet" href="{{asset('backend/assets/vendor/font-awesome/css/font-awesome.css')}}" />
	<link rel="stylesheet" href="{{asset('backend/assets/vendor/magnific-popup/magnific-popup.css')}}" />
	<link rel="stylesheet" href="{{asset('backend/assets/vendor/bootstrap-datepicker/css/datepicker3.css')}}" />

	<!-- Specific Page Vendor CSS -->
	<link rel="stylesheet" href="{{asset('backend/assets/vendor/select2/select2.css')}}" />
	<link rel="stylesheet" href="{{asset('backend/assets/vendor/jquery-datatables-bs3/assets/css/datatables.css')}}" />

	<!-- Theme CSS -->
	<link rel="stylesheet" href="{{asset('backend/assets/stylesheets/theme.css')}}" />

	<!-- Skin CSS -->
	<link rel="stylesheet" href="{{asset('backend/assets/stylesheets/skins/default.css')}}" />

	<!-- Theme Custom CSS -->
	<link rel="stylesheet" href="{{asset('backend/assets/stylesheets/theme-custom.css')}}">

	<!-- Head Libs -->
	<script src="{{asset('backend/assets/vendor/modernizr/modernizr.js')}}"></script>

	<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.4.1/css/bootstrap.min.css">
	<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.5.1/jquery.min.js"></script>
	<script src="https://maxcdn.bootstrapcdn.com/bootstrap/3.4.1/js/bootstrap.min.js"></script>

	<!--  <link href="https://fonts.googleapis.com/css2?family=Poppins&display=swap" rel="stylesheet"> -->
        <link href="https://fonts.googleapis.com/css2?family=Ramabhadra&amp;display=swap" rel="stylesheet">
        <link href="https://fonts.googleapis.com/css2?family=Inter&display=swap" rel="stylesheet">

	<style>


		table {
			width: 100%;
			margin: 20px auto;
			table-layout: auto;
		}

		.fixed {
			table-layout: fixed;
		}

		table,
		td,
		th {
			border-collapse: collapse;
			color:black;
		}

		th,
		td {
			padding: 10px;
			border: solid 1px;
			text-align: center;
		}

		.w {
			width: 400px;
		}
		table,
		td
		{
			color:black;
		}
		
	</style>

</head>
<body>
	<section class="body">


		<!-- start: header -->
		<header class="header">
			@if(session()->get('role')==6 or session()->get('role')==1 or session()->get('role')==3 or session()->get('role')==0)

			<div class="container-fluid ">
			<div class="container">

				  <div class="row">
                    <div class="col-xs-2 col-lg-2 my-auto pr-0">
                        <div class="pt-lg-3 pt-5 pull-left">
                            <a href="#" class="">
                                <img src="{{asset('backend/assets/images/logo-1.svg')}}" alt="logo1" class="img-responsive">
                            </a>
                        </div>
                    </div>
                    <div class="col-xs-8 col-lg-8 my-auto">
                            <div class="web-name-div">
                                <div class="web-name">Telangana State Renewable Energy Development Corporation Ltd., (TSREDCO)</div>
                                <div class="telugu-web-name"><small>తెలంగాణ రాష్ట్ర పునరుద్ధరణీయ ఇంధన వనరుల అభివృద్ధి సంస్థ లిమిటెడ్</small></div>
                                 
      
                                  <div class="telugu-web-name"></div>
                            </div>

                        </div>
                    <div class="col-xs-2 col-lg-2 my-auto pl-0">
                        <div class="pt-lg-3 pt-5 pull-right">
                            <a href="#" class="">
                                <img src="{{asset('backend/assets/images/logo-2.svg')}}" alt="logo2" class="img-responsive">
                            </a>
                        </div>
                    </div>
                </div>
				<!-- <div class="row">
					<div class="col-xs-12">
					 	<div class="py-2 py-md-0">
							<img src="{{asset('backend/assets/images/header.png')}}" alt="header" class="img-responsive">
						</div> 
							 <div class="d-block d-md-none">
								<img src="{{asset('backend/assets/images/header.png')}}" alt="header" class="img-responsive" style="height: 100px;">
							</div> 
						</div>
					</div> -->
					<!-- div class="row">
						<div class="col-lg-2 my-auto pr-0">
							<div class="pull-right">
								<a href="{{url('index')}}" class="logo">
									<img src="{{asset('backend/assets/images/TSREDCO Logo.svg')}}" alt="Joseph Doe" class="img-fluid">
								</a>
							</div>
						</div>
						<div class="col-lg-8 my-auto">
								<div class="web-name-div">
									<div class="web-name">Telangana State Renewable Energy Development Corporation Ltd., (TSREDCO)</div>
									<div class="telugu-web-name"><small>తెలంగాణ రాష్ట్ర పునరుద్ధరణీయ ఇంధన వనరుల అభివృద్ధి సంస్థ లిమిటెడ్</small></div>
								</div>
							</div>
						<div class="col-lg-2 my-auto pl-0">
							<div class="logo1">
								<a href="{{url('index')}}" class="">
									<img src="{{asset('backend/assets/images/government-of-telangana-logo-4949BC8A09-seeklogo.com.svg')}}" alt="Joseph Doe" class="img-fluid">
								</a>
							</div>
						</div>
					</div> -->
					<div class="visible-xs toggle-sidebar-left" data-toggle-class="sidebar-left-opened" data-target="html" data-fire-event="sidebar-left-opened">
						<i class="fa fa-bars" aria-label="Toggle sidebar"></i>
					</div>
				</div>
			</div>
			@else
			<div class="container-fluid d-none d-lg-block">
			<div class="container">

				  <div class="row">
                    <div class="col-xs-2 col-lg-2 my-auto pr-0">
                        <div class="pt-3 pull-left">
                            <a href="#" class="">
                                <img src="{{asset('backend/assets/images/logo-1.svg')}}" alt="logo1" class="img-responsive">
                            </a>
                        </div>
                    </div>
                    <div class="col-xs-8 col-lg-8 my-auto">
                            <div class="web-name-div">
                                <div class="web-name">Telangana State Renewable Energy Development Corporation Ltd., (TSREDCO)</div>
                                <div class="telugu-web-name"><small>తెలంగాణ రాష్ట్ర పునరుద్ధరణీయ ఇంధన వనరుల అభివృద్ధి సంస్థ లిమిటెడ్</small></div>
                                 
      
                                  <div class="telugu-web-name"></div>
                            </div>

                        </div>
                    <div class="col-xs-2 col-lg-2 my-auto pl-0">
                        <div class="pt-3 pull-right">
                            <a href="#" class="">
                                <img src="{{asset('backend/assets/images/logo-2.svg')}}" alt="logo2" class="img-responsive">
                            </a>
                        </div>
                    </div>
                </div>
				
					<div class="visible-xs toggle-sidebar-left" data-toggle-class="sidebar-left-opened" data-target="html" data-fire-event="sidebar-left-opened">
						<i class="fa fa-bars" aria-label="Toggle sidebar"></i>
					</div>
				</div>
			</div>
			@endif
			<div class="container-fluid roles" >
<div class="container">
<div class="row">
<div class="col-12 ">
<div style="text-align: right;font-size: 14px; color: white; line-height: 22px;">
	@if(session()->get('role')==6)
	<span class="pr-5 " >Vendor Name:<span class="font-weight-normal"> {{(session()->get('uname'))}}</span></span>
		<span class="">Cluster Name: <span class="font-weight-normal">( {{implode(",",session()->get('clusternames'))}})</span></span>

                    <select name="jillas_id" class="my-1" style=" color: black; line-height: 17px;height: 33px; max-width:100px;margin:auto;" id="jillas_id" required>
                       
                          <option value="0">All</option>
                        @foreach(session()->get('district_lists') as $disc)
                        <option value="{{$disc['id']}}" 
            			@if(count(session()->get('districts'))==1 && in_array($disc['id'], session()->get('districts')))
						    Selected 
						@endif>{{$disc['area_name']}}</option>

                        @endforeach
                        </select>

		@else
<span class="pr-5 " >Role: <span class="font-weight-normal">{{(session()->get('uname'))}}</span></span>
@endif
</div>
</div>
</div>
</div>
</div>
			

				<!-- start: search & user box -->
				
				<!-- end: search & user box -->
			</header>
			

				
			<!-- end: header -->

			<div class="inner-wrapper">
				<!-- start: sidebar -->
				<aside id="sidebar-left" class="sidebar-left">

					<div class="sidebar-header">
						
						<div class="sidebar-toggle hidden-xs" data-toggle-class="sidebar-left-collapsed" data-target="html" data-fire-event="sidebar-left-toggle">
							<i class="fa fa-bars" aria-label="Toggle sidebar"></i>
						</div>
					</div>

					<div class="nano">
						<div class="nano-content">
							<nav id="menu" class="nav-main" role="navigation">
								@if(session()->get('role')==0 )
								<ul class="nav nav-main">
									
									<li class="nav-parent">
										<a href="{{url('index')}}">
											<i class="fa fa-list-alt" aria-hidden="true"></i>
											<span>Dashboard</span>
										</a>

									</li>

								
									
									<li class="nav-parent">
										<a>
											<i class="fa fa-list-alt" aria-hidden="true"></i>
											<span>Masters</span>
										</a>
										<ul class="nav nav-children">
											<li>
												<a href="{{url('/jilla/create')}}">

													<span style="padding:20px;">District</span>
												</a>
											</li>
											<li>
												<a href="{{url('/taluka/create')}}">
													<span style="padding:20px;">Mandal</span>
												</a>
											</li>
											<li>
												<a href="{{url('/gram/create')}}">
													<span style="padding:20px;">Gram Panchayat</span>
												</a>
											</li>
											<li>
												<a href="{{url('/make_view')}}">

													<span style="padding: 20px;">Make</span>
												</a>
											</li>

											<li>
												<a href="{{url('/role_view')}}">

													<span style="padding: 20px;">Roles</span>
												</a>
											</li>

											<li>
												<a href="{{url('/cluster')}}">

													<span style="padding: 20px;">Cluster Creation</span>
												</a>
											</li>
										
										</ul>
									</li>
									<li class="nav-parent">
										<a>
											<i class="fa fa-list-alt" aria-hidden="true"></i>
											<span>Survey / Installation</span>
										</a>
										<ul class="nav nav-children">
											<li>
												<a href="{{url('ps_distict_view')}}">
													<span style="padding:20px;">Preliminary Survey </span>
												</a>
											</li>
											<li>
												<a href="{{url('survey_info')}}">
													<span style="padding:20px;">Survey </span>
												</a>
											</li>
											<li>
												<a href="{{url('dic_view')}}">
													<span style="padding:20px;">DIC Installation</span>
												</a>
											</li>
											<!--<li>
												<a href="{{url('abstract_survey')}}">
												<span style="padding:20px;">Abstract Of Survey</span>
											</a> -->
										</li>
										<li>
											<a href="{{url('/survey_material_handing')}}">
												<span style="padding:20px;">Material Handing</span>
											</a>
										</li>
										<li>
											<a href="{{url('/stock_register')}}">
												<span style="padding:20px;">Stock Register</span>
											</a>
										</li>
										
										<li>
											<a href="{{url('/districtwise_report')}}">
												<span style="padding:20px;">Report</span>
											</a>
										</li> 
										<li>
											<a href="{{url('/abstractreport_view')}}">
												<span style="padding:20px;">Abstract Report</span>
											</a>
										</li>
										<li>

											<a href="{{url('/approve_reject_report')}}">
												<span style="padding:20px;">Approve & Reject Report</span>
											</a>
										</li>
										<li>

											<a href="{{url('/approved_districtwise_report')}}">
												<span style="padding:20px;">Approved Report</span>
											</a>
										</li>

										<li>

											<a href="{{url('/pending_districtwise_report')}}">
												<span style="padding:20px;">Pending Report</span>
											</a>
										</li>

										<li>
											<li>

											<a href="{{url('/district_list_ccms')}}">
												<span style="padding:20px;">CCMS Installation Report</span>
											</a>
										</li>

										<li>
											<a href="{{url('/gp_completion_list')}}">
												<span style="padding:20px;">GP Completion Report</span>
											</a>
										</li>
										<li>
											<a href="{{url('/district_completion_list')}}">
												<span style="padding:20px;">District Completion Report</span>
											</a>
										</li>
										<li>
											<a href="{{url('districtlist_mandalcompletion')}}">
												<span style="padding:20px;">Mandal Completion Report</span>
											</a>
										</li>
										<li>
											<a href="{{url('admin_abstract_districtnames')}}">
												<span style="padding:20px;">Admin District abstract report</span>
											</a>
										</li>
										



											<!-- <li>
												<a href="{{url('/make_view')}}">
												<span style="padding:20px;">Make</span>
												</a>
											</li> -->
										</ul>
									</li>
									
									<li class="nav-parent">
										<a href="{{url('/gramuser/create')}}">
											<i class="fa fa-list-alt" aria-hidden="true"></i>
											<span>Gram User</span>
										</a> 
										
									</li>

									
									<li>
										<a href="{{url('/pr_distict_view')}}">
											<i class="fa fa-list-alt" aria-hidden="true"></i>
											<span >PR Resolution</span>
										</a>
									</li>


									<li class="nav-parent">
										<a>
											<i class="fa fa-list-alt" aria-hidden="true"></i>
											<span>In Wards</span>
										</a>
										<ul class="nav nav-children">
											<li>
												<a href="{{url('/inwards_view')}}">
													<span style="padding:20px;">Lights </span>
												</a>
											</li>
											<li>
												<a href="{{url('/armsclamps_view')}}">
													<span style="padding:20px;">Arms/Clamps</span>
												</a>
											</li>
											
									
										<li>
											<a href="{{url('/ccmstypes_view')}}">
												<span style="padding:20px;">CCMS</span>
											</a>
										</li>
									</ul>
								</li>

                                   <li class="nav-parent">
										<a>
											<i class="fa fa-list-alt" aria-hidden="true"></i>
											<span>Out Wards</span>
										</a>
										<ul class="nav nav-children">
											<li>
												<a href="{{url('/outwards_view')}}">
													<span style="padding:20px;">Assigned Lights </span>
												</a>
											</li>
										 <li>
										 	<!-- admin_outwards_armsclamps -->
												<a href="{{url('/outwards_armsclampsview')}}">
													<span style="padding:20px;">Arms/Clamps</span>
												</a>
											
											
									<!-- admin_outwards_ccms -->
										<li>
											<a href="{{url('/outwards_ccmsview')}}">
												<span style="padding:20px;">CCMS</span>
											</a>
										</li> 
									</ul>
								</li>
								  <li class="nav-parent">
										<a>
											<i class="fa fa-list-alt" aria-hidden="true"></i>
											<span>Move Inventory</span>
										</a>
										<ul class="nav nav-children">
											<li>
											<a href="{{url('/move_inventory')}}">
												<span style="padding:20px;">Move Inventory Light Report</span>
											</a>
										</li>
										<li>
											<a href="{{url('/move_inventoryarm')}}">
												<span style="padding:20px;">Move ARM Inventory Report</span>
											</a>
										</li>
										<li>
											<a href="{{url('/move_inventoryccms')}}">
												<span style="padding:20px;">Move CCMS Inventory Report</span>
											</a>
										</li>
									</ul>
								</li>
									
									<li>
										<a href="{{url('logout')}}">
											<i class="fa fa-sign-out" aria-hidden="true"></i>

											<span >Logout</span>
										</a>

										

									</li>

									
								</ul>
								
								@elseif(session()->get('role')==6 or session()->get('role')==1)
								<ul class="nav nav-main">
									
									<li class="nav-parent">
										<a href="{{url('index')}}">
											<i class="fa fa-list-alt" aria-hidden="true"></i>
											<span>Dashboard</span>
										</a>

									</li>
									<li class="nav-parent">
										<a>
											<i class="fa fa-list-alt" aria-hidden="true"></i>
											<span>Masters</span>
										</a>
										<ul class="nav nav-children">
										
											<li>
												<a href="{{url('/gram/create')}}">
													<span style="padding:20px;">Gram Panchayat</span>
												</a>
											</li>
											

										
										
										</ul>
									</li>
									<li class="nav-parent">
										<a>
											<i class="fa fa-list-alt" aria-hidden="true"></i>
											<span>Survey / Installation</span>
										</a>
										<ul class="nav nav-children">
											<li>
												<a href="{{url('survey_info')}}">
													<span style="padding:20px;">Survey </span>
												</a>
											</li>
											<li>
												<a href="{{url('dic_view')}}">
													<span style="padding:20px;">DIC Installation</span>
												</a>
											</li>
											<!--<li>
												<a href="{{url('abstract_survey')}}">
												<span style="padding:20px;">Abstract Of Survey</span>
											</a> -->
										</li>
										<li>
											<a href="{{url('/survey_material_handing')}}">
												<span style="padding:20px;">Material Handing</span>
											</a>
										</li>
										<li>
												<a href="{{url('ps_distict_view')}}">
													<span style="padding:20px;">Preliminary Survey </span>
												</a>
											</li>	
										
										<li>
											<a href="{{url('/districtwise_report')}}">
												<span style="padding:20px;">Report</span>
											</a>
										</li> 
										<li>
											<a href="{{url('/abstractreport_view')}}">
												<span style="padding:20px;">Abstract Report</span>
											</a>
										</li>
										<li>
											<a href="{{url('/stock_register')}}">
												<span style="padding:20px;">Stock Register</span>
											</a>
										</li>
										<li>

											<a href="{{url('/approve_reject_report')}}">
												<span style="padding:20px;">Approve & Reject Report</span>
											</a>
										</li>
										<li>

											<a href="{{url('/approved_districtwise_report')}}">
												<span style="padding:20px;">Approved Report</span>
											</a>
										</li>

										<li>

											<a href="{{url('/pending_districtwise_report')}}">
												<span style="padding:20px;">Pending Report</span>
											</a>
										</li>

										<li>
											<a href="{{url('/gp_completion_list')}}">
												<span style="padding:20px;">GP Completion Report</span>
											</a>
										</li>
										<li>
											<a href="{{url('/district_completion_list')}}">
												<span style="padding:20px;">District Completion Report</span>
											</a>
										</li>
										<li>
											<a href="{{url('districtlist_mandalcompletion')}}">
												<span style="padding:20px;">Mandal Completion Report</span>
											</a>
										</li>
										<li>

											<a href="{{url('admin_abstract_districtnames')}}">
												<span style="padding:20px;">Admin District abstract report</span>
											</a>
										</li>
										</ul>
											<li class="nav-parent">
										<a href="{{url('/gramuser/create')}}">
											<i class="fa fa-list-alt" aria-hidden="true"></i>
											<span>Gram User</span>
										</a> 
										
									</li>

									<li class="nav-parent">
										<a>
											<i class="fa fa-list-alt" aria-hidden="true"></i>
											<span>In Wards</span>
										</a>
										<ul class="nav nav-children">
											<li>
												<a href="{{url('/outwards_view')}}">
													<span style="padding:20px;">Lights </span>
												</a>
											</li>
											<li>
												<a href="{{url('/outwards_armsclampsview')}}">
													<span style="padding:20px;">Arms/Clamps</span>
												</a>
											</li>
											<li>
												<a href="{{url('/outwards_ccmsview')}}">
													<span style="padding:20px;">ccms</span>
												</a>
											</li>
										</ul>
									</li>
										<li class="nav-parent">
										<a>
											<i class="fa fa-list-alt" aria-hidden="true"></i>
											<span>OutWards</span>
										</a>
										<ul class="nav nav-children">
											<li>
												<a href="{{url('/vendor_outward_lights_list')}}">
													<span style="padding:20px;">Lights </span>
												</a>
											</li>
											<li>
												<a href="{{url('/vendor_outward_armsclamps_list')}}">
													<span style="padding:20px;">Arms/Clamps</span>
												</a>
											</li>
											<li>
												<a href="{{url('/subvendor_ccms_list')}}">
													<span style="padding:20px;">Ccms</span>
												</a>
											</li>
										</ul>
									</li>

								<li>
										<a href="{{url('logout')}}">
											<i class="fa fa-sign-out" aria-hidden="true"></i>

											<span >Logout</span>
										</a>

										

									</li>

									
								</ul>

								@elseif(session()->get('role')==7 )
								<ul class="nav nav-main">
									
									<li class="nav-parent">
										<a href="{{url('index')}}">
											<i class="fa fa-list-alt" aria-hidden="true"></i>
											<span>Dashboard</span>
										</a>

									</li>
									<li class="nav-parent">
										<a>
											<i class="fa fa-list-alt" aria-hidden="true"></i>
											<span>Survey / Installation</span>
										</a>
										<ul class="nav nav-children">
				
										
									
										<li>
											<a href="{{url('/mandalstock_list')}}">
												<span style="padding:20px;">Stock Register</span>
											</a>
										</li>
					
										</ul>
										

									<li class="nav-parent">
										<a>
											<i class="fa fa-list-alt" aria-hidden="true"></i>
											<span>In Wards</span>
										</a>
										<ul class="nav nav-children">
											<li>
												<a href="{{url('/subvendor_inwardslights')}}">
													<span style="padding:20px;">Lights </span>
												</a>
											</li>
											<li>
												<a href="{{url('/subvendor_inwardsarmsclamps')}}">
													<span style="padding:20px;">Arms/Clamps</span>
												</a>
											</li>
											<li>
												<a href="{{url('/subvendor_inwardsccms')}}">
													<span style="padding:20px;">Ccms</span>
												</a>
											</li>
										</ul>
									</li>
									<!-- 	<li class="nav-parent">
										<a>
											<i class="fa fa-list-alt" aria-hidden="true"></i>
											<span>OutWards</span>
										</a>
										<ul class="nav nav-children">
											<li>
												<a href="{{url('/vendor_outward_lights_list')}}">
													<span style="padding:20px;">Lights </span>
												</a>
											</li>
											<li>
												<a href="{{url('/vendor_outward_armsclamps_list')}}">
													<span style="padding:20px;">Arms/Clamps</span>
												</a>
											</li>
											<li>
												<a href="{{url('/subvendor_ccms_list')}}">
													<span style="padding:20px;">Ccms</span>
												</a>
											</li>
										</ul>
									</li> -->

								<li>
										<a href="{{url('logout')}}">
											<i class="fa fa-sign-out" aria-hidden="true"></i>

											<span >Logout</span>
										</a>

										

									</li>

									
								</ul>
								@else(session()->get('role')==8 )
								<ul class="nav nav-main">
									
									<li class="nav-parent">
										<a href="{{url('index')}}">
											<i class="fa fa-list-alt" aria-hidden="true"></i>
											<span>Dashboard</span>
										</a>

									</li>
									<li class="nav-parent">
										<a>
											<i class="fa fa-list-alt" aria-hidden="true"></i>
											<span>Survey / Installation</span>
										</a>
										<ul class="nav nav-children">
				
										
									
										<li>
											<a href="{{url('/premilinary_subvendorsurvey')}}">
												<span style="padding:20px;">Premilinary report</span>
											</a>
										</li>
					
										</ul>
										

									<!-- <li class="nav-parent">
										<a>
											<i class="fa fa-list-alt" aria-hidden="true"></i>
											<span>In Wards</span>
										</a>
										<ul class="nav nav-children">
											<li>
												<a href="{{url('/subvendor_inwardslights')}}">
													<span style="padding:20px;">Lights </span>
												</a>
											</li>
											<li>
												<a href="{{url('/subvendor_inwardsarmsclamps')}}">
													<span style="padding:20px;">Arms/Clamps</span>
												</a>
											</li>
											<li>
												<a href="{{url('/subvendor_inwardsccms')}}">
													<span style="padding:20px;">Ccms</span>
												</a>
											</li>
										</ul>
									</li> -->
									<!-- 	<li class="nav-parent">
										<a>
											<i class="fa fa-list-alt" aria-hidden="true"></i>
											<span>OutWards</span>
										</a>
										<ul class="nav nav-children">
											<li>
												<a href="{{url('/vendor_outward_lights_list')}}">
													<span style="padding:20px;">Lights </span>
												</a>
											</li>
											<li>
												<a href="{{url('/vendor_outward_armsclamps_list')}}">
													<span style="padding:20px;">Arms/Clamps</span>
												</a>
											</li>
											<li>
												<a href="{{url('/subvendor_ccms_list')}}">
													<span style="padding:20px;">Ccms</span>
												</a>
											</li>
										</ul>
									</li> -->

								<li>
										<a href="{{url('logout')}}">
											<i class="fa fa-sign-out" aria-hidden="true"></i>

											<span >Logout</span>
										</a>

										

									</li>

									
								</ul>


								@endif

							</nav>

							
							

						</div>

					</div>

				</aside>
				<!-- end: sidebar -->
				@yield('index-content')
				
				
			</div>
			

			<aside id="sidebar-right" class="sidebar-right">
				<div class="nano">
					<div class="nano-content">
						<a href="#" class="mobile-close visible-xs">
							Collapse <i class="fa fa-chevron-right"></i>
						</a>

						<div class="sidebar-right-wrapper">

							<div class="sidebar-widget widget-calendar">
								<h6>Upcoming Tasks</h6>
								<div data-plugin-datepicker data-plugin-skin="dark" ></div>

								<ul>
									<li>
										<time datetime="2014-04-19T00:00+00:00">04/19/2014</time>
										<span>Company Meeting</span>
									</li>
								</ul>
							</div>

							<div class="sidebar-widget widget-friends">
								<h6>Friends</h6>
								<ul>
									<li class="status-online">
										<figure class="profile-picture">
											<img src="{{asset('backend/assets/images/!sample-user.jpg')}}" alt="Joseph Doe" class="img-circle">
										</figure>
										<div class="profile-info">
											<span class="name">Joseph Doe Junior</span>
											<span class="title">Hey, how are you?</span>
										</div>
									</li>
									<li class="status-online">
										<figure class="profile-picture">
											<img src="{{asset('backend/assets/images/!sample-user.jpg')}}" alt="Joseph Doe" class="img-circle">
										</figure>
										<div class="profile-info">
											<span class="name">Joseph Doe Junior</span>
											<span class="title">Hey, how are you?</span>
										</div>
									</li>
									<li class="status-offline">
										<figure class="profile-picture">
											<img src="{{asset('backend/assets/images/!sample-user.jpg')}}" alt="Joseph Doe" class="img-circle">
										</figure>
										<div class="profile-info">
											<span class="name">Joseph Doe Junior</span>
											<span class="title">Hey, how are you?</span>
										</div>
									</li>
									<li class="status-offline">
										<figure class="profile-picture">
											<img src="{{asset('backend/assets/images/!sample-user.jpg')}}" alt="Joseph Doe" class="img-circle">
										</figure>
										<div class="profile-info">
											<span class="name">Joseph Doe Junior</span>
											<span class="title">Hey, how are you?</span>
										</div>
									</li>
								</ul>
							</div>

						</div>
					</div>
				</div>
			</aside>
		</section>


		<!-- Vendor -->
		<script src="{{asset('backend/assets/vendor/jquery/jquery.js')}}"></script>
		<script src="{{asset('backend/assets/vendor/jquery-browser-mobile/jquery.browser.mobile.js')}}"></script>
		<script src="{{asset('backend/assets/vendor/bootstrap/js/bootstrap.js')}}"></script>
		<script src="{{asset('backend/assets/vendor/nanoscroller/nanoscroller.js')}}"></script>
		<script src="{{asset('backend/assets/vendor/bootstrap-datepicker/js/bootstrap-datepicker.js')}}"></script>
		<script src="{{asset('backend/assets/vendor/magnific-popup/magnific-popup.js')}}"></script>
		<script src="{{asset('backend/assets/vendor/jquery-placeholder/jquery.placeholder.js')}}"></script>
		
		<!-- Specific Page Vendor -->
		<script src="{{asset('backend/assets/vendor/select2/select2.js')}}"></script>
		<script src="{{asset('backend/assets/vendor/jquery-datatables/media/js/jquery.dataTables.js')}}"></script>
		<script src="{{asset('backend/assets/vendor/jquery-datatables/extras/TableTools/js/dataTables.tableTools.min.js')}}"></script>
		<script src="{{asset('backend/assets/vendor/jquery-datatables-bs3/assets/js/datatables.js')}}"></script>
		
		<!-- Theme Base, Components and Settings -->
		<script src="{{asset('backend/assets/javascripts/theme.js')}}"></script>
		
		<!-- Theme Custom -->
		<script src="{{asset('backend/assets/javascripts/theme.custom.js')}}"></script>
		
		<!-- Theme Initialization Files -->
		<script src="{{asset('backend/assets/javascripts/theme.init.js')}}"></script>


		<!-- Examples -->
		<script src="{{asset('backend/assets/javascripts/tables/examples.datatables.default.js')}}"></script>
		<script src="{{asset('backend/assets/javascripts/tables/examples.datatables.row.with.details.js')}}"></script>
		<script src="{{asset('backend/assets/javascripts/tables/examples.datatables.tabletools.js')}}"></script>
		<script src="https://code.jquery.com/jquery-3.5.1.min.js"></script>
		<script>
			$(document).ready(function(){
				   var myArray=[];
				$("#jilla_id").on("change",function()
				{
					var id=$(this).val();
					$.ajax({
						url:'{{url("/jillaid")}}/'+id,
						method:'get',
						success:function(data)
						{
					//var test=data.split("::");
					$("#taluka").html(data);
				},	
				error:function(data)
				{
					$("#taluka").html("");
				}
			});
				});
				$("#user_id").on("change",function()
				{
					var id=$(this).val();
			//alert(id);
			$.ajax({
				url:'{{url("/userid")}}/'+id,
				method:'get',
				success:function(data)
				{
					//var test=data.split("::");
					$("#usersid").val(id);
					$("#grams").html(data);
				},	
				error:function(data)
				{
					$("#grams").html("");
				}
			});
		});
				$("#taluka").change(function(){
					var name=$(this).val();
					$.ajax({
						url:'{{url("/getgram")}}/'+name,
						method:'get',
						success:function(data){
							var dt="<option value=''>Please Select Gram</option>";
							var res=data.split("-");
							for(var i=0;i<res.length-1;i++)
							{
								var tdt = res[i].split("_");
								dt +="<option value='"+tdt[0]+"'>"+tdt[1]+"</option>";
							}
							$('#gram_id').html(dt);	
						},
						error:function(data){
							alert(data);
						}

					});
				});
				$("#jilla_id_gram").on("change",function()
				{
					var id=$(this).val();
					var loginid=$(".loginid").val();
					var data={
						id:id,
						loginid:loginid
					};
					console.log(data);

					$.ajax({

						url:'{{url("/jillaidgram")}}',
						method:'get',
						data:data,
						success:function(data)
						{
							console.log(data);
					//alert(data);
					//var test=data.split("::");
					$("#taluka_id_gram").html(data);
				},	
				error:function(data)
				{
					$("#taluka_id_gram").html("");
				}
			});
				});

				$("#taluka_id_gram").change(function(){
					var name=$(this).val();
					var loginid=$(".loginid").val();
					var data={
						name:name,
						loginid:loginid
					};
					console.log(data);
					$.ajax({
						url:'{{url("/getgram_id")}}',
						method:'get',
						data:data,
						success:function(data){
							var dt="<option value=''>Please Select Gram</option>";
							var res=data.split("-");
							for(var i=0;i<res.length-1;i++)
							{
								var tdt = res[i].split("_");
								dt +="<option value='"+tdt[0]+"'>"+tdt[1]+"</option>";
							}
							$('#gram_id_gramform').html(dt);	
						},
						error:function(data){
							alert(data);
						}

					});
				});


				$("#jillasearch").on("change",function()
				{
					var id=$(this).val();
					$.ajax({
						url:'{{url("/jillaid")}}/'+id,
						method:'get',
						success:function(data)
						{
							$("#talukas").html(data);
						},	
						error:function(data)
						{
							$("#taluka").html("");
						}
					});
				});

				$("#talukasearch").change(function(){
					var name=$(this).val();
		       //alert(name);
		       $.ajax({
		       	url:'{{url("/getgramsearch")}}/'+name,
		       	method:'get',
		       	success:function(data){
		       		var dt="";
		       		var res=data.split("-");
		       		for(var i=0;i<res.length-1;i++)
		       		{
		       			var tdt = res[i].split("_");
		       			dt +="<option value='"+tdt[1]+"'>";
		       		}
							//alert(dt);
							$('#grams').html(dt);	
						},
						error:function(data){
							alert(data);
						}

					});
		   });

		  // $(".allotuser").on("click",function(){
		  //      var id=$(this).val();
		  //      //alert(id);
		  //      var test=id.split('::');
		  //     $(".userid").val(test[0]);

		  //     var unm=test[1];
		  //     //$("usernameid").val(unm);
		  //      document.getElementById("usernameid").innerHTML =unm;
		  //      document.getElementById("useraddform").style.cssText="display:none";
		  //      document.getElementById("userallotform").style.cssText="display:block";
		  // });
		  var rowval=parseInt($("#rowcount").val());
		  
		  var i=rowval + 1;

		  $("#addallot").on("click",function(){
		  	var jilla=$("#jilla_id").val();
		  	var taluka=$("#taluka").val();
		  	var gram=$("#gram_id").val();
		  	var userid=$(".userid").val();
	       
		  	if(jilla=="" || taluka=="" || gram=="")
		  	{
		  		alert('please select value');
		  	}
		  	else{
		  		var data={
		  			jilla:jilla,
		  			taluka:taluka,
		  			gram:gram,
		  			userid:userid
		  			
		  		};
          
		  		if(myArray.length == 0 || myArray.indexOf(taluka) == 0){
		  		$.ajax({
		  			type:'get',
		  			url:'{{url("/getareanames")}}',
		  			data:data,
		  			success:function(data)
		  			{

		  				if(data!="Failed"){


		  				var test=data.split('::');
		  				var markup="<tr><td class='jilla"+i+"'>"+test[0]+"<input type='hidden' name='jilla"+i+"' value='"+jilla+"'></td><td class='taluka"+i+"'>"+test[1]+"<input type='hidden' name='taluka"+i+"' value='"+taluka+"'></td><td class='gram"+i+"'>"+test[2]+"<input type='hidden' name='gram"+i+"' value='"+gram+"'></td><td>Active</td> <td><button type='button' class='btn btn-danger btnDelete'>x</button></td></tr>";
		  				$("#rowallot").append(markup);
		  				i++;
		  				//alert(taluka);
                        myArray.push(taluka);
		  				$('#jillasearch').val("");
		  				$("#talukasearch").val("");
		  				$("#gramsearch").val("");
		  				var rowCount = $("#rowallot tr").length;
		  				$("#rowcount").val(rowCount);
                      }
                       else{
                       	alert("This user has already exist in another mandal");
                       }
		  			},
		  			error:function(data)
		  			{
		  				alert(data);
		  			}
		  		});
		  	}
		  	else{
		  		alert("This user has already exist in another mandal");
                       }
		  }

		  

		  });
		  $("#rowallot").on('click','.btnDelete',function(){
		  	$(this).closest('tr').remove();
		  	var rt=$("#rowcount").val();
		  	var mins=rt-1;
		  	$("#rowcount").val(mins);


		  });
		  $(".allotdelete").on("click",function(){
		  	var id=$(this).val();

		  	$.ajax({
		  		type:'get',
		  		url:'{{url("/alloted")}}/'+id,
		  		success:function(data)
		  		{
                   //alert(data);
                   location.reload(true);
               },
               error:function(data)
               {
               	alert(data);
               }
           });
		  });
		  $(".gramallotdelete").on("click",function(){
		  	var id=$(this).val();

		  	$.ajax({
		  		type:'get',
		  		url:'{{url("/allotedgram")}}/'+id,
		  		success:function(data)
		  		{
                   //alert(data);
                   location.reload(true);
               },
               error:function(data)
               {
               	alert(data);
               }
           });
		  });

		  $(".clusterallotdelete").on("click",function(){
		  	var id=$(this).val();

		  	$.ajax({
		  		type:'get',
		  		url:'{{url("/allotedcluster")}}/'+id,
		  		success:function(data)
		  		{
                   //alert(data);
                   location.reload(true);
               },
               error:function(data)
               {
               	alert(data);
               }
           });
		  });

		 $("#jillas_id").on("change",function(){
						var id=$(this).val();
						$.ajax({
							url:'{{url("selecteddistrict")}}/'+id,
							method:'get',
							success:function(data)
							{
								if(data != ''){
								 location.reload(true);	
							}
						    },	
							error:function(data)
							{
								$("#id").html("");
							}
						});
					});

 $("#addallotvendor").on("click",function(){
		  	var jilla=$("#jilla_id").val();
		  	var taluka=$("#taluka").val();

		  	if(jilla=="" || taluka=="")
		  	{
		  		alert('please select value');
		  	}
		  	else{
		  		var data={
		  			jilla:jilla,
		  			taluka:taluka,
		  			
		  		};
          
		  		if(myArray.length == 0 ){
		  		$.ajax({
		  			type:'get',
		  			url:'{{url("/getvendorareanames")}}',
		  			data:data,
		  			success:function(data)
		  			{

		  				if(data!="Failed"){


		  				var test=data.split('::');
		  				var markup="<tr><td class='jilla"+i+"'>"+test[0]+"<input type='hidden' name='jilla"+i+"' value='"+jilla+"'></td><td class='taluka"+i+"'>"+test[1]+"<input type='hidden' name='taluka"+i+"' value='"+taluka+"'></td><td>Active</td> <td><button type='button' class='btn btn-danger btnDelete'>x</button></td></tr>";
		  				$("#rowallot").append(markup);
		  				i++;
		  				//alert(taluka);
                        // myArray.push(jilla);
		  				$('#jillasearch').val("");
		  				$("#talukasearch").val("");
		  				var rowCount = $("#rowallot tr").length;
		  				$("#rowcount").val(rowCount);
                      }
                       else{
                       	alert("This user has already exist in another mandal");
                       }
		  			},
		  			error:function(data)
		  			{
		  				alert(data);
		  			}
		  		});
		  	}
		  	else{
		  		alert("This user has already exist in another district and mandal");
                       }
		  }

		  

		  });
	


		});

var oTable = $('#datatable-default').dataTable( {
    "aoColumnDefs": [
        { "bSortable": false }, 
        { "bSearchable": false }
    ]
});
	</script>
</body>
</html>


