 
<?php $__env->startSection('content'); ?>
	<div class="row">
    	<div class="col-lg-12">
    		<h4 class="page-header">Project: <?php echo e($project->company_name); ?> (<?php echo e($project->service_city); ?>)</h4><span class="hidden-xs hidden-sm accordion-ts" >Project last updated by <?php echo e($project->updated_by); ?> @ <?php echo e(date('g:i:s A - F j, Y', strtotime($project->updated_at))); ?></span>
    	</div>
    </div>
            <div class="row">
                <div class="col-lg-12">
                	<?php if(session('status')): ?>
					<div class="alert alert-success">
						<?php echo e(session('status')); ?>

					</div>
					<?php endif; ?>
					<?php if(count($errors) > 0): ?>
						<div class="alert alert-danger">
							<strong>Whoops!</strong> There were some problems with your input.<br><br>
							<ul>
								<?php foreach($errors->all() as $error): ?>
									<li><?php echo e($error); ?></li>
								<?php endforeach; ?>
							</ul>
						</div>
					<?php endif; ?>
</div>
</div> 
  

<div class="row">
	<div class="panel-group col-md-12" id="accordion" role="tablist" aria-multiselectable="true"> 
	

			
		  <div class="panel panel-default"<?php if($team->id == 1) echo "style='display: none;'"?>>
		    <div class="panel-heading" role="tab" id="heading1" style="">
		      <h4 class="panel-title">
		        <div id="group_section1" class="accordian-item"  style="color: #317aba; "
		        role="button" data-toggle="collapse" data-parent="#accordion" 
		        href="#collapse1" aria-expanded="false" 
		        aria-controls="collapse1" onclick="chevron(1)" ondblclick="chevron(1)">
		          <i id="chevron1" class="fa fa-chevron-circle-right"></i> &nbsp;Entry
		          					          &nbsp;
							          <?php if($progression[1]): ?>
							          <i class="fa fa-check" style="color: #7ec07b; float: right;"></i><i class="hidden-xs hidden-sm completed-info">Completed by <?php echo e($completed_by[1]); ?> @ <?php echo e(date('g:i:s A - F j, Y', strtotime($completed_at[1]))); ?></i>
							          <?php elseif(!$require[1]): ?>
							          <i class="fa fa-ban" style="color: #c4775b; float: right;"></i>
							          <?php elseif($current == 1): ?>
							          <i class="fa fa-hand-o-left" style="color: #000; float: right;"></i>
							          <?php endif; ?>
		        </div>
		      </h4>
		    </div>
		    <div id="collapse1" class="panel-collapse collapse" role="tabpanel" aria-labelledby="heading1">
		      <div class="panel-body">
					<div class="col-md-12">
						<div class="row">
										<div class="row form-group">
											<div class="col-sm-12 col-md-4 morePadding morePadding2">
												<label class="control-label moveOver"><?php echo e($project->title); ?>&nbsp;</label>
												<span class="hasValue">Project Title</span>	
											</div>
											<div class="col-sm-12 col-md-8 morePadding morePadding2">
												&nbsp;
											</div>
											
										</div>
										<div class="row form-group">
											<div class="col-sm-12 col-md-4 morePadding morePadding2">
												<label class="control-label moveOver"><?php echo e($project->company_name); ?>&nbsp;</label>
												<span class="hasValue">Company Name</span>	
											</div>
											<div class="col-sm-12 col-md-4 morePadding morePadding2">
												<label class="control-label moveOver"><?php echo e($project->order_type); ?>&nbsp;</label>
												<span class="hasValue">Order Type</span>	
											</div>
											<div class="col-sm-12 col-md-4 morePadding morePadding2">
												<label class="control-label moveOver"><?php echo e($project->customer_type); ?>&nbsp;</label>
												<span class="hasValue">Customer Type</span>	
											</div>
										</div>
										<div class="row form-group">
											<div class="col-sm-12 col-md-4 morePadding morePadding2">
												<label class="control-label moveOver"><?php echo e($project->sales_exec); ?>&nbsp;</label>
												<span class="hasValue">Sales Executive</span>	
											</div>
											<div class="col-sm-12 col-md-2 morePadding morePadding2">
												<label class="control-label moveOver"><?php echo e($project->contract_term); ?>&nbsp;</label>
												<span class="hasValue">Contract Term</span>	
											</div>
											<div class="col-sm-12 col-md-2 morePadding morePadding2">
												<label class="control-label moveOver"><?php echo e($project->date_sold && strtotime($project->date_sold) != 0 ? date('Y-m-d', strtotime($project->date_sold)) : ''); ?>&nbsp;</label>
												<span class="hasValue">Date Sold</span>	
											</div>
											<div class="col-sm-12 col-md-2 morePadding morePadding2">
												<label class="control-label moveOver"><?php echo e($project->desired_due_date && strtotime($project->desired_due_date) != 0 ? date('Y-m-d', strtotime($project->desired_due_date)) : ''); ?>&nbsp;</label>
												<span class="hasValue">Desired Due Date</span>	
											</div>
											<div class="col-sm-12 col-md-2 morePadding morePadding2">
												<label class="control-label moveOver"><?php echo e($project->ready_to_bill && strtotime($project->ready_to_bill) != 0 ? date('Y-m-d', strtotime($project->ready_to_bill)) : ''); ?>&nbsp;</label>
												<span class="hasValue">Ready To Bill Date</span>	
											</div>
										</div>
										<div class="row form-group">
											<div class="col-sm-12 col-md-4 morePadding morePadding2">
												<label class="control-label moveOver"><?php echo e($project->client_primary_contact); ?>&nbsp;</label>
												<span class="hasValue">Client Primary Contact</span>	
											</div>
											<div class="col-sm-12 col-md-4 morePadding morePadding2">
												<label class="control-label moveOver"><?php echo e($project->contact_phone_number); ?>&nbsp;</label>
												<span class="hasValue">Contact Phone #</span>	
											</div>
											<div class="col-sm-12 col-md-4 morePadding morePadding2">
												<label class="control-label moveOver"><?php echo e($project->contact_primary_email); ?>&nbsp;</label>
												<span class="hasValue">Contact Primary Email</span>	
											</div>

										</div>
										<div class="row form-group">
											<div class="col-sm-12 col-md-4 morePadding morePadding2">
												<label class="control-label moveOver"><?php echo e($project->technical_contact); ?>&nbsp;</label>
												<span class="hasValue">Technical Contact</span>	
											</div>
											<div class="col-sm-12 col-md-4 morePadding morePadding2">
												<label class="control-label moveOver"><?php echo e($project->technical_phone); ?>&nbsp;</label>
												<span class="hasValue">Technical Phone #</span>	
											</div>
											<div class="col-sm-12 col-md-4 morePadding morePadding2">
												<label class="control-label moveOver"><?php echo e($project->technical_email); ?>&nbsp;</label>
												<span class="hasValue">Technical Email</span>	
											</div>

										</div>
										<div class="row form-group">
											<div class="col-sm-12 col-md-2 morePadding morePadding2">
												<label class="control-label moveOver"><?php echo e($project->directory_phone); ?>&nbsp;</label>
												<span class="hasValue">Directory Phone #</span>	
											</div>
											<div class="col-sm-12 col-md-3 morePadding morePadding2">
												<label class="control-label moveOver"><?php echo e($project->directory_address); ?>&nbsp;</label>
												<span class="hasValue">Directory Address</span>	
											</div>
											<div class="col-sm-12 col-md-3 morePadding morePadding2">
												<label class="control-label moveOver"><?php echo e($project->directory_city); ?>&nbsp;</label>
												<span class="hasValue">Directory City</span>	
											</div>
											<div class="col-sm-12 col-md-2 morePadding morePadding2">
												<label class="control-label moveOver"><?php echo e($project->directory_state); ?>&nbsp;</label>
												<span class="hasValue">Directory State</span>	
											</div>
											<div class="col-sm-12 col-md-2 morePadding morePadding2">
												<label class="control-label moveOver"><?php echo e($project->directory_zip); ?>&nbsp;</label>
												<span class="hasValue">Directory Zip</span>	
											</div>
										</div>
										<div class="row form-group">
											<div class="col-sm-12 col-md-2 morePadding morePadding2">
												<label class="control-label moveOver"><?php echo e($project->billing_attention); ?>&nbsp;</label>
												<span class="hasValue">Billing Attention</span>	
											</div>
											<div class="col-sm-12 col-md-3 morePadding morePadding2">
												<label class="control-label moveOver"><?php echo e($project->billing_address); ?>&nbsp;</label>
												<span class="hasValue">Billing Address</span>	
											</div>
											<div class="col-sm-12 col-md-3 morePadding morePadding2">
												<label class="control-label moveOver"><?php echo e($project->billing_city); ?>&nbsp;</label>
												<span class="hasValue">Billing City</span>	
											</div>
											<div class="col-sm-12 col-md-2 morePadding morePadding2">
												<label class="control-label moveOver"><?php echo e($project->billing_state); ?>&nbsp;</label>
												<span class="hasValue">Billing State</span>	
											</div>
											<div class="col-sm-12 col-md-2 morePadding morePadding2">
												<label class="control-label moveOver"><?php echo e($project->billing_zip); ?>&nbsp;</label>
												<span class="hasValue">Billing Zip</span>	
											</div>
										</div>
										<div class="row form-group">
											<div class="col-sm-12 col-md-2 morePadding morePadding2">
												<label class="control-label moveOver"><?php echo e($project->building_type); ?>&nbsp;</label>
												<span class="hasValue">Building Type</span>	
											</div>
											<div class="col-sm-12 col-md-3 morePadding morePadding2">
												<label class="control-label moveOver"><?php echo e($project->service_address); ?>&nbsp;</label>
												<span class="hasValue">Service Address</span>	
											</div>
											<div class="col-sm-12 col-md-3 morePadding morePadding2">
												<label class="control-label moveOver"><?php echo e($project->service_city); ?>&nbsp;</label>
												<span class="hasValue">Service City</span>	
											</div>
											<div class="col-sm-12 col-md-2 morePadding morePadding2">
												<label class="control-label moveOver"><?php echo e($project->service_state); ?>&nbsp;</label>
												<span class="hasValue">Service State</span>	
											</div>
											<div class="col-sm-12 col-md-2 morePadding morePadding2">
												<label class="control-label moveOver"><?php echo e($project->service_zip); ?>&nbsp;</label>
												<span class="hasValue">Service Zip</span>	
											</div>
										</div>
										
										<div class="row form-group">
											<div class="col-sm-12 col-md-2 morePadding morePadding2">
												<label class="control-label moveOver"><?php echo e($project->county_code_911); ?>&nbsp;</label>
												<span class="hasValue">911 County Code</span>	
											</div>
											<div class="col-sm-12 col-md-3 morePadding morePadding2">
												<label class="control-label moveOver"><?php echo e($project->address_911); ?>&nbsp;</label>
												<span class="hasValue">911 Address</span>	
											</div>
											<div class="col-sm-12 col-md-3 morePadding morePadding2">
												<label class="control-label moveOver"><?php echo e($project->city_911); ?>&nbsp;</label>
												<span class="hasValue">911 City</span>	
											</div>
											<div class="col-sm-12 col-md-2 morePadding morePadding2">
												<label class="control-label moveOver"><?php echo e($project->state_911); ?>&nbsp;</label>
												<span class="hasValue">911 State</span>	
											</div>
											<div class="col-sm-12 col-md-2 morePadding morePadding2">
												<label class="control-label moveOver"><?php echo e($project->zip_911); ?>&nbsp;</label>
												<span class="hasValue">911 Zip</span>	
											</div>
										</div>

										
	<!-- 

										<div class="form-group">
											<div class="col-sm-12 col-md-3 morePadding morePadding2">
												<label class="control-label moveOver"><?php echo e($project->construction_required ? 'yes' : ''); ?>&nbsp;</label>
												<span class="hasValue">Construction Required</span>	
											</div>
											<div class="col-sm-12 col-md-5 morePadding morePadding2">
												<label class="control-label moveOver"><?php echo e($project->construction_location); ?>&nbsp;</label>
												<span class="hasValue">Construction Location</span>	
											</div>
											<div class="col-sm-12 col-md-4 morePadding morePadding2">
												<label class="control-label moveOver"><?php echo e($project->construction_build_estimate); ?>&nbsp;</label>
												<span class="hasValue">Construction Build Estimate</span>	
											</div>
										</div>
										
										

										<div class="form-group">
											<div class="col-sm-12 col-md-3 morePadding morePadding2">
												<label class="control-label moveOver"><?php echo e($project->nni ? 'yes' : ''); ?>&nbsp;</label>
												<span class="hasValue">NNI</span>	
											</div>
											<div class="col-sm-12 col-md-2 morePadding morePadding2">
												<label class="control-label moveOver"><?php echo e($project->a_loc_address); ?>&nbsp;</label>
												<span class="hasValue">A Loc Address</span>	
											</div>
											<div class="col-sm-12 col-md-2 morePadding morePadding2">
												<label class="control-label moveOver"><?php echo e($project->a_loc_carrier); ?>&nbsp;</label>
												<span class="hasValue">A Loc Carrier</span>	
											</div>
											<div class="col-sm-12 col-md-2 morePadding morePadding2">
												<label class="control-label moveOver"><?php echo e($project->z_loc_address); ?>&nbsp;</label>
												<span class="hasValue">Z Loc Address</span>	
											</div>
											<div class="col-sm-12 col-md-3 morePadding morePadding2">
												<label class="control-label moveOver"><?php echo e($project->z_loc_carrier); ?>&nbsp;</label>
												<span class="hasValue">Z Loc Carrier</span>	
											</div>
										</div>    -->
										<hr>
										
										<?php if(count($constructions) > 0): ?>
										
											<?php foreach($constructions as $construction): ?>
											<div class="row form-group">
												<div class="col-sm-12 col-md-9 morePadding morePadding2">
													<label class="control-label moveOver"><?php echo e($construction->construction_location); ?>&nbsp;</label>
													<span class="hasValue">Construction Location</span>	
												</div>
												<div class="col-sm-12 col-md-3 morePadding morePadding2">
													<label class="control-label moveOver"><?php echo e($construction->construction_build_estimate); ?>&nbsp;</label>
													<span class="hasValue">Build Estimate</span>	
												</div>
											</div>
											<div class="row form-group">
												<div class="col-sm-12 col-md-4 morePadding morePadding2">
													<label class="control-label moveOver"><?php echo e($construction->building_contact); ?>&nbsp;</label>
													<span class="hasValue">Building Contact</span>	
												</div>
												<div class="col-sm-12 col-md-4 morePadding morePadding2">
													<label class="control-label moveOver"><?php echo e($construction->building_phone); ?>&nbsp;</label>
													<span class="hasValue">Phone #</span>	
												</div>
												<div class="col-sm-12 col-md-4 morePadding morePadding2">
													<label class="control-label moveOver"><?php echo e($construction->building_email); ?>&nbsp;</label>
													<span class="hasValue">Email</span>	
												</div>
											</div>
											<?php endforeach; ?>

										<?php endif; ?>
										
										<?php if(count($nnis) > 0): ?>
										
											<?php foreach($nnis as $nni): ?>
											<div class="row form-group">
												<div class="col-sm-12 col-md-4 morePadding morePadding2">
													<label class="control-label moveOver"><?php echo e($nni->nni_service_address); ?>&nbsp;</label>
													<span class="hasValue">NNI Service Address</span>	
												</div>
												<div class="col-sm-12 col-md-4 morePadding morePadding2">
													<label class="control-label moveOver"><?php echo e($nni->nni_carrier); ?>&nbsp;</label>
													<span class="hasValue">NNI Carrier</span>	
												</div>
												<div class="col-sm-12 col-md-2 morePadding morePadding2">
													<label class="control-label moveOver"><?php echo e($nni->mrc_cogs); ?>&nbsp;</label>
													<span class="hasValue">MRC COGS</span>	
												</div>
												<div class="col-sm-12 col-md-2 morePadding morePadding2">
													<label class="control-label moveOver"><?php echo e($nni->nrc_cogs); ?>&nbsp;</label>
													<span class="hasValue">NRC COGS</span>	
												</div>

											</div>
											<?php endforeach; ?>

										<?php endif; ?>
										
										<?php if(count($products) > 0): ?>
										
											<?php foreach($products as $product): ?>
											<div class="row form-group">
												<div class="col-sm-12 col-md-3 morePadding morePadding2">
													<label class="control-label moveOver"><?php echo e($product->name); ?>&nbsp;</label>
													<span class="hasValue">Product Name</span>	
												</div>
												<div class="col-sm-12 col-md-2 morePadding morePadding2">
													<label class="control-label moveOver"><?php echo e($product->usp); ?>&nbsp;</label>
													<span class="hasValue">USP</span>	
												</div>
												<div class="col-sm-12 col-md-1 morePadding morePadding2">
													<label class="control-label moveOver"><?php echo e($product->quantity); ?>&nbsp;</label>
													<span class="hasValue">Quantity</span>	
												</div>
												<div class="col-sm-12 col-md-2 morePadding morePadding2">
													<label class="control-label moveOver"><?php echo e($product->unit_price); ?>&nbsp;</label>
													<span class="hasValue">Unit Price</span>	
												</div>
												<div class="col-sm-12 col-md-2 morePadding morePadding2">
													<label class="control-label moveOver"><?php echo e($product->mrc); ?>&nbsp;</label>
													<span class="hasValue">MRC</span>	
												</div>
												<div class="col-sm-12 col-md-2 morePadding morePadding2">
													<label class="control-label moveOver"><?php echo e($product->nrc); ?>&nbsp;</label>
													<span class="hasValue">NRC</span>	
												</div>
											</div>
											<?php endforeach; ?>


										<?php endif; ?>
										
										
										
								<div class="row form-group">
									<div class="col-md-12">
										<a class="btn btn-primary" href="<?php echo e(url('uadmin/projects/edit/'.$project->id.'/1')); ?>">Edit</a>
									</div>
								</div>
								
							</div>
							
							<?php foreach($notes as $note): ?>
							<?php if($note['team'] == 1): ?>
							<?php $note['isNote'] = array_key_exists('note', $note) ? true : false; ?>
							<br>
							<div class="row form-group">
								<div class="panel panel-default">
									<div class="panel-heading" style="background-color: <?php echo e($note['isNote'] ? '#d6e7f5' : '#d5ddf6'); ?>;">
										<h4 class="panel-title">
											<?php echo e($note['user']); ?> @ <?php echo e(date('g:i:s A - F j, Y', strtotime($note['updated_at']))); ?><i class="hidden-xs hidden-sm" style="float: right;"><?php echo e($team_object->find($note['team'])->name); ?></i>
										</h4>
									</div>
									<div class="panel-body" style="background-color: <?php echo e($note['isNote'] ? '#eaf3fa' : '#eaeefb'); ?>;">
										<div class="xcol-md-12">
											<?php if($note['isNote']): ?>
											<?php echo nl2br($note['note']); ?> 
												<?php if($note['user'] == Auth::user()->name): ?>
													&nbsp; &nbsp; 
													<a href="<?php echo e(url('uadmin/projects/note/'.$note['id'])); ?>">
														<i class="fa fa-edit"></i>
													</a>
												<?php endif; ?>
											<?php else: ?>
											<a href="/uadmin/projects/attachment/<?php echo e($note['id']); ?>" target="_blank"><?php echo e($note['file']); ?></a>
											<?php endif; ?>
										</div>
									</div>
								</div>
							</div>
							<?php endif; ?>
							<?php endforeach; ?>
							
							

		      </div>
		    </div>
		  </div>
		  </div>
		  
		  <div class="panel panel-default" 
		  <?php if($team->order != 1): ?>
			style="display: none;"
		  <?php endif; ?>
		  >
                    
                    	
			<div class="panel-heading">
				<div class="accordian-item"  style="color: #317aba;">
								<h4 class="panel-title">
							        
							          
							          <form style="display: inline;" action="<?php echo e(url('admin/projects/delete')); ?>" method="POST" onsubmit="return confirm('Are you sure you want to delete this project?');">
							          	<input type="hidden" name="_token" value="<?php echo e(csrf_token()); ?>">
							          	<input type="hidden" name="projectID" value="<?php echo e($project->id); ?>">
							          	<button type="submit" style="border: 0; background-color: transparent; display: none; padding: 0;" id="project_delete_button">
							          		<i class="fa fa-trash"></i>
							          	</button>
							          </form>
							          <i class="fa fa-pencil-square" id="entry_pencil"></i>&nbsp;<?php echo e($team->name); ?>

							          					          &nbsp;
							          <?php if($progression[1]): ?>
							          <i class="fa fa-check" style="color: #7ec07b; float: right;"></i><i class="hidden-xs hidden-sm completed-info">Completed by <?php echo e($completed_by[1]); ?> @ <?php echo e(date('g:i:s A - F j, Y', strtotime($completed_at[1]))); ?></i>
							          <?php elseif(!$require[1]): ?>
							          <i class="fa fa-ban" style="color: #c4775b; float: right;"></i>
							          <?php elseif($current == 1): ?>
							          <i class="fa fa-hand-o-left" style="color: #000; float: right;"></i>
							          <?php endif; ?>
							       
							      </h4>
							      
							</div>
                            
                        </div>
					       
		<div class="panel-body">
		
			<div class="row">
				<div class="col-lg-12">
					<form id="entry" class="form-horizontal" method="post" action="/admin/projects/edit/1" enctype="multipart/form-data" onsubmit="noDouble(); return true;">
						<input type="hidden" name="_token" value="<?php echo e(csrf_token()); ?>">
						<input type="hidden" name="team" value="1">
						<input type="hidden" name="projectID" value="<?php echo e($project->id); ?>">
						
						<div class="form-group">
							<div class="col-sm-12 col-md-4 morePadding morePadding2" onclick="inputFocus('title')">
								<input type="text" class="form-control" id="title" name="title" value="<?php echo e(old('title') ? old('title') : $project->title); ?>" title="Project Title">
								<span id="title-label" class="label-text">Project Title</span>	
							</div>
							<div class="col-sm-12 col-md-8 morePadding morePadding2">
								&nbsp;
							</div>
						</div>
						<div class="form-group">
											<div class="col-sm-12 col-md-4 morePadding morePadding2" onclick="inputFocus('company_name')">
												<input type="text" class="form-control" id="company_name" name="company_name" value="<?php echo e(old('company_name') ? old('company_name') : $project->company_name); ?>" title="Company Name">
												<span id="company_name-label" class="label-text">Company Name</span>	
											</div>
											<?php $order_type = old('order_type') ? old('order_type') : $project->order_type; ?>
											<div class="col-sm-12 col-md-4 morePadding morePadding2" onclick="inputFocus('order_type')">
												<select class="form-control" id="order_type" name="order_type"  title="Order Type">
													<option id="order_type_option"></option>
													<option value="new"
													<?php if($order_type == 'new'): ?> 
														<?php echo e('selected'); ?> 
													<?php endif; ?>
													>New</option>
													<option value="upgrade"
													<?php if($order_type == 'upgrade'): ?> 
														<?php echo e('selected'); ?> 
													<?php endif; ?>
													>Upgrade</option>
													<option value="renewal"
													<?php if($order_type == 'renewal'): ?> 
														<?php echo e('selected'); ?> 
													<?php endif; ?>
													>Renewal</option>
													<option value="upgrade-and-renewal"
													<?php if($order_type == 'upgrade-and-renewal'): ?> 
														<?php echo e('selected'); ?> 
													<?php endif; ?>
													>Upgrade & Renewal</option>
													<option value="move"
													<?php if($order_type == 'move'): ?> 
														<?php echo e('selected'); ?> 
													<?php endif; ?>
													>Move</option>
													<option value="disconnect"
													<?php if($order_type == 'disconnect'): ?> 
														<?php echo e('selected'); ?> 
													<?php endif; ?>
													>Disconnect</option>
													<option value="add"
													<?php if($order_type == 'add'): ?> 
														<?php echo e('selected'); ?> 
													<?php endif; ?>
													>Add</option>
													<option value="change"
													<?php if($order_type == 'change'): ?> 
														<?php echo e('selected'); ?> 
													<?php endif; ?>
													>Change</option>
													<option value="misc"
													<?php if($order_type == 'misc'): ?> 
														<?php echo e('selected'); ?> 
													<?php endif; ?>
													>Misc.</option>
													<option value="nni"
													<?php if($order_type == 'nni'): ?> 
														<?php echo e('selected'); ?> 
													<?php endif; ?>
													>Type 2 (NNI)</option>
												</select>
												<span id="order_type-label" 
												<?php if($order_type): ?>
												class="xlabel-text hasValue"
												<?php else: ?>
												class="label-text"
												<?php endif; ?>
												>Order Type</span>	
											</div>
											<?php $customer_type = old('customer_type') ? old('customer_type') : $project->customer_type; ?>
											<div class="col-sm-12 col-md-4 morePadding morePadding2" onclick="inputFocus('customer_type')">
												<select class="form-control" id="customer_type" name="customer_type"  title="Customer Type">
													<option id="customer_type_option"></option>
													<option value="business"
													<?php if($customer_type == 'business'): ?> 
														<?php echo e('selected'); ?> 
													<?php endif; ?>
													>Business</option>
													<option value="education"
													<?php if($customer_type == 'education'): ?> 
														<?php echo e('selected'); ?> 
													<?php endif; ?>
													>Education</option>
													<option value="healthcare"
													<?php if($customer_type == 'healthcare'): ?> 
														<?php echo e('selected'); ?> 
													<?php endif; ?>
													>Healthcare</option>
													<option value="government"
													<?php if($customer_type == 'government'): ?> 
														<?php echo e('selected'); ?> 
													<?php endif; ?>
													>Government</option>
													<option value="wholesale"
													<?php if($customer_type == 'wholesale'): ?> 
														<?php echo e('selected'); ?> 
													<?php endif; ?>
													>Wholesale</option>
													<option value="residential"
													<?php if($customer_type == 'residential'): ?> 
														<?php echo e('selected'); ?> 
													<?php endif; ?>
													>Residential</option>
													<option value="internal"
													<?php if($customer_type == 'internal'): ?> 
														<?php echo e('selected'); ?> 
													<?php endif; ?>
													>Internal</option>
												</select>
												<span id="customer_type-label" 
												<?php if($customer_type): ?>
												class="xlabel-text hasValue"
												<?php else: ?>
												class="label-text"
												<?php endif; ?>
												>Customer Type</span>	
											</div>	
										</div>
										<div class="form-group">
											<div class="col-sm-12 col-md-4 morePadding morePadding2" onclick="inputFocus('sales_exec')">
												<input type="text" class="form-control" id="sales_exec" name="sales_exec" value="<?php echo e(old('sales_exec') ? old('sales_exec') : $project->sales_exec); ?>" title="Sales Executive">
												<span id="sales_exec-label" class="label-text">Sales Executive</span>	
											</div>
											<div class="col-sm-12 col-md-2 morePadding morePadding2" onclick="inputFocus('contract_term')">
												<input type="number" min="0" step="1" class="form-control" id="contract_term" name="contract_term" value="<?php echo e(old('contract_term') ? old('contract_term') : $project->contract_term); ?>" title="Contract Term (Months)">
												<span id="contract_term-label" class="label-text">Contract Term</span>	
											</div>
											<div class="col-sm-12 col-md-2 morePadding morePadding2" id="date_sold_container" onclick="inputFocus('date_sold')">
												<input type="text" class="form-control date" id="date_sold" name="date_sold" value="<?php echo e(old('date_sold') ? old('date_sold') : ($project->date_sold != '' && strtotime($project->date_sold) != 0 ? date('Y-m-d', strtotime($project->date_sold)) : '' )); ?>" title="Date Sold">
												<span id="date_sold-label" class="label-text">Date Sold</span>	
											</div>
											<div class="col-sm-12 col-md-2 morePadding morePadding2" id="desired_due_date_container" onclick="inputFocus('desired_due_date')">
												<input type="text" class="form-control date" id="desired_due_date" name="desired_due_date" value="<?php echo e(old('desired_due_date') ? old('desired_due_date') : ($project->desired_due_date != '' && strtotime($project->desired_due_date) != 0 ? date('Y-m-d', strtotime($project->desired_due_date)) : '')); ?>" title="Desired Due Date">
												<span id="desired_due_date-label" class="label-text">Desired Due Date</span>	
											</div>
											<div class="col-sm-12 col-md-2 morePadding morePadding2" id="ready_to_bill_container" onclick="inputFocus('ready_to_bill')">
												<input type="text" class="form-control date" id="ready_to_bill" name="ready_to_bill" value="<?php echo e(old('ready_to_bill') ? old('ready_to_bill') : ($project->ready_to_bill != '' && strtotime($project->ready_to_bill) != 0 ? date('Y-m-d', strtotime($project->ready_to_bill)) : '')); ?>" title="Ready To Bill Date">
												<span id="ready_to_bill-label" class="label-text">Ready To Bill Date</span>	
											</div>
										</div>
										<div class="form-group">
											<div class="col-sm-12 col-md-4 morePadding morePadding2" onclick="inputFocus('client_primary_contact')">
												<input type="text" class="form-control" id="client_primary_contact" name="client_primary_contact" value="<?php echo e(old('client_primary_contact') ? old('client_primary_contact') : $project->client_primary_contact); ?>" title="Client Primary Contact">
												<span id="client_primary_contact-label" class="label-text">Client Primary Contact</span>	
											</div>
											<div class="col-sm-12 col-md-4 morePadding morePadding2" onclick="inputFocus('contact_phone_number')">
												<input type="text" class="form-control" id="contact_phone_number" name="contact_phone_number" value="<?php echo e(old('contact_phone_number') ? old('contact_phone_number') : $project->contact_phone_number); ?>" title="Contact Phone Number">
												<span id="contact_phone_number-label" class="label-text">Contact Phone Number</span>	
											</div>
											<div class="col-sm-12 col-md-4 morePadding morePadding2" onclick="inputFocus('contact_primary_email')">
												<input type="email" class="form-control" id="contact_primary_email" name="contact_primary_email" value="<?php echo e(old('contact_primary_email') ? old('contact_primary_email') : $project->contact_primary_email); ?>" title="Contact Primary Email">
												<span id="contact_primary_email-label" class="label-text">Contact Primary Email</span>	
											</div>

										</div>
										<div class="form-group">
											<div class="col-sm-12 col-md-4 morePadding morePadding2" onclick="inputFocus('technical_contact')">
												<input type="text" class="form-control" id="technical_contact" name="technical_contact" value="<?php echo e(old('technical_contact') ? old('technical_contact') : $project->technical_contact); ?>" title="Technical Contact">
												<span id="technical_contact-label" class="label-text">Technical Contact</span>	
											</div>
											<div class="col-sm-12 col-md-4 morePadding morePadding2" onclick="inputFocus('technical_phone_number')">
												<input type="text" class="form-control" id="technical_phone_number" name="technical_phone_number" value="<?php echo e(old('technical_phone_number') ? old('technical_phone_number') : $project->technical_phone); ?>" title="Technical Phone Number">
												<span id="technical_phone_number-label" class="label-text">Technical Phone #</span>	
											</div>
											<div class="col-sm-12 col-md-4 morePadding morePadding2" onclick="inputFocus('technical_email')">
												<input type="email" class="form-control" id="technical_email" name="technical_email" value="<?php echo e(old('technical_email') ? old('technical_email') : $project->technical_email); ?>" title="Technical Email">
												<span id="technical_email-label" class="label-text">Technical Email</span>	
											</div>
											

										</div>
										
										<div class="form-group">
											<div class="col-sm-12 col-md-2 morePadding morePadding2" onclick="inputFocus('directory_phone')">
												<input type="text" class="form-control" id="directory_phone" name="directory_phone" value="<?php echo e(old('directory_phone') ? old('directory_phone') : $project->directory_phone); ?>" title="Directory Phone Number">
												<span id="directory_phone-label" class="label-text">Directory Phone #</span>	
											</div>
											<div class="col-sm-12 col-md-3 morePadding morePadding2" onclick="inputFocus('directory_address')">
												<input type="text" class="form-control" id="directory_address" name="directory_address" value="<?php echo e(old('directory_address') ? old('directory_address') : $project->directory_address); ?>" title="Directory Address">
												<span id="directory_address-label" class="label-text">Directory Address</span>	
											</div>
											<div class="col-sm-12 col-md-3 morePadding morePadding2" onclick="inputFocus('directory_city')">
												<input type="text" class="form-control" id="directory_city" name="directory_city" value="<?php echo e(old('directory_city') ? old('directory_city') : $project->directory_city); ?>" title="Directory City">
												<span id="directory_city-label" class="label-text">City</span>	
											</div>
											<div class="col-sm-12 col-md-2 morePadding morePadding2" onclick="inputFocus('directory_state')">
												<input type="text" class="form-control" id="directory_state" name="directory_state" value="<?php echo e(old('directory_state') ? old('directory_state') : $project->directory_state); ?>" title="Directory State">
												<span id="directory_state-label" class="label-text">State</span>	
											</div>
											<div class="col-sm-12 col-md-2 morePadding morePadding2" onclick="inputFocus('directory_zip')">
												<input type="text" class="form-control" id="directory_zip" name="directory_zip" value="<?php echo e(old('directory_zip') ? old('directory_zip') : $project->directory_zip); ?>" title="Directory ZIP">
												<span id="directory_zip-label" class="label-text">ZIP</span>	
											</div>
										</div>
										
										<div class="form-group">
											<div class="col-sm-12 col-md-2 morePadding morePadding2" onclick="inputFocus('billing_attention')">
												<input type="text" class="form-control" id="billing_attention" name="billing_attention" value="<?php echo e(old('billing_attention') ? old('billing_attention') : $project->billing_attention); ?>" title="Billing Attention">
												<span id="billing_attention-label" class="label-text">Billing Attention</span>	
											</div>
											<div class="col-sm-12 col-md-3 morePadding morePadding2" onclick="inputFocus('billing_address')">
												<input type="text" class="form-control" id="billing_address" name="billing_address" value="<?php echo e(old('billing_address') ? old('billing_address') : $project->billing_address); ?>" title="Billing Street Address">
												<span id="billing_address-label" class="label-text">Billing Address</span>	
											</div>
											<div class="col-sm-12 col-md-3 morePadding morePadding2" onclick="inputFocus('billing_city')">
												<input type="text" class="form-control" id="billing_city" name="billing_city" value="<?php echo e(old('billing_city') ? old('billing_city') : $project->billing_city); ?>" title="Billing City">
												<span id="billing_city-label" class="label-text">City</span>	
											</div>
											<div class="col-sm-12 col-md-2 morePadding morePadding2" onclick="inputFocus('billing_state')">
												<input type="text" class="form-control" id="billing_state" name="billing_state" value="<?php echo e(old('billing_state') ? old('billing_state') : $project->billing_state); ?>" title="Billing State">
												<span id="billing_state-label" class="label-text">State</span>	
											</div>
											<div class="col-sm-12 col-md-2 morePadding morePadding2" onclick="inputFocus('billing_zip')">
												<input type="text" class="form-control" id="billing_zip" name="billing_zip" value="<?php echo e(old('billing_zip') ? old('billing_zip') : $project->billing_zip); ?>" title="Billing ZIP">
												<span id="billing_zip-label" class="label-text">ZIP</span>	
											</div>
										</div>
										<div class="form-group">


											<?php $building_type = old('building_type') ? old('building_type') : $project->building_type; ?>
											<div class="col-sm-12 col-md-2 morePadding morePadding2" onclick="inputFocus('building_type')">
												<select class="form-control" id="building_type" name="building_type"  title="building Type">
													<option id="building_type_option"></option>
													<option value="Single Tenant"
													<?php if($building_type == 'Single Tenant'): ?> 
														<?php echo e('selected'); ?> 
													<?php endif; ?>
													>Single Tenant</option>
													<option value="Multi-Tenant"
													<?php if($building_type == 'Multi-Tenant'): ?> 
														<?php echo e('selected'); ?> 
													<?php endif; ?>
													>Multi-Tenant</option>
													
												</select>
												<span id="building_type-label" 
												<?php if($building_type): ?>
												class="xlabel-text hasValue"
												<?php else: ?>
												class="label-text"
												<?php endif; ?>
												>Building Type</span>	
											</div>


											<div class="col-sm-12 col-md-3 morePadding morePadding2" onclick="inputFocus('service_address')">
												<input type="text" class="form-control" id="service_address" name="service_address" value="<?php echo e(old('service_address') ? old('service_address') : $project->service_address); ?>" title="Service Street Address">
												<span id="service_address-label" class="label-text">Service Address</span>	
											</div>
											<div class="col-sm-12 col-md-3 morePadding morePadding2" onclick="inputFocus('service_city')">
												<input type="text" class="form-control" id="service_city" name="service_city" value="<?php echo e(old('service_city') ? old('service_city') : $project->service_city); ?>" title="Service City">
												<span id="service_city-label" class="label-text">City</span>	
											</div>
											<div class="col-sm-12 col-md-2 morePadding morePadding2" onclick="inputFocus('service_state')">
												<input type="text" class="form-control" id="service_state" name="service_state" value="<?php echo e(old('service_state') ? old('service_state') : $project->service_state); ?>" title="Service State">
												<span id="service_state-label" class="label-text">State</span>	
											</div>
											<div class="col-sm-12 col-md-2 morePadding morePadding2" onclick="inputFocus('service_zip')">
												<input type="text" class="form-control" id="service_zip" name="service_zip" value="<?php echo e(old('service_zip') ? old('service_zip') : $project->service_zip); ?>" title="Service ZIP">
												<span id="service_zip-label" class="label-text">ZIP</span>	
											</div>
										</div>
										<?php $service_as_911 = old('service_as_911') == 1 ? true : $project->service_as_911; 
												$address_for_911 = old('address_911') ? old('address_911') : $project->address_911;
												if($address_for_911 != '') $service_as_911 = true;
										?>
										
										<div class="form-group" id="checkbox_911_container">
											<div class="col-sm-12 col-md-12 XmorePadding morePadding2" onclick="" style="color: gray;">
												<input type="checkbox" class="Xform-control" id="is_911" name="service_as_911" value="1" title="911 Address" onchange="enter911()" <?php echo e($service_as_911 ? 'checked' : ''); ?>>
												911 Address Required
											</div>
										</div>
										
										<div class="form-group" id="address_911_container" 
										<?php if(!$service_as_911): ?>
											style="display:none;" 		 
										<?php endif; ?>
										>
											<div class="col-sm-12 col-md-2 morePadding morePadding2" onclick="inputFocus('county_code_911')">
												<input type="text" class="form-control" id="county_code_911" name="county_code_911" value="<?php echo e(old('county_code_911') ? old('county_code_911') : $project->county_code_911); ?>" title="911 County Code">
												<span id="county_code_911-label" class="label-text">911 County Code</span>	
											</div>
											<div class="col-sm-12 col-md-3 morePadding morePadding2" onclick="inputFocus('address_911')">
												<input type="text" class="form-control" id="address_911" name="address_911" value="<?php echo e(old('address_911') ? old('address_911') : $project->address_911); ?>" title="911 Address">
												<span id="address_911-label" class="label-text">Address</span>	
											</div>
											<div class="col-sm-12 col-md-3 morePadding morePadding2" onclick="inputFocus('city_911')">
												<input type="text" class="form-control" id="city_911" name="city_911" value="<?php echo e(old('city_911') ? old('city_911') : $project->city_911); ?>" title="911 City">
												<span id="city_911-label" class="label-text">City</span>	
											</div>
											<div class="col-sm-12 col-md-2 morePadding morePadding2" onclick="inputFocus('state_911')">
												<input type="text" class="form-control" id="state_911" name="state_911" value="<?php echo e(old('state_911') ? old('state_911') : $project->state_911); ?>" title="911 State">
												<span id="state_911-label" class="label-text">State</span>	
											</div>
											<div class="col-sm-12 col-md-2 morePadding morePadding2" onclick="inputFocus('zip_911')">
												<input type="text" class="form-control" id="zip_911" name="zip_911" value="<?php echo e(old('zip_911') ? old('zip_911') : $project->zip_911); ?>" title="911 ZIP">
												<span id="zip_911-label" class="label-text">ZIP</span>	
											</div>
										</div>

										<?php $construction_required = old('construction_required') == 1 ? old('construction_required') : $project->construction_required; ?>
										<div class="form-group" id="checkbox_construction_container">
											<div class="col-sm-12 col-md-12 XmorePadding morePadding2" onclick="" style="color: gray;">
												<input type="checkbox" class="Xform-control" id="construction_required" name="construction_required" value="1" title="Construction Required" onchange="showConstruction()" <?php echo e($construction_required == 1 ? 'checked' : ''); ?>>
												Construction Required
											</div>
										</div>
										<div id="construction_container" 
										<?php if(!$construction_required): ?>
										style="display: none;"
										<?php endif; ?>
										>
											<?php if(count($constructions) > 0 && !old('construction_location')): ?>
											<?php $construction_count = 0; ?>
												<?php foreach($constructions as $construction): ?>
												<?php $construction_count++; ?>
												<div class="form-group" id="construction_group<?php echo e($construction_count); ?>">
													<div class="col-sm-2 col-md-1 morePadding morePadding2" >
														<div class="btn btn-primary" style="opacity: .5;"><i class="fa fa-minus"></i></div>
													</div>
													<div class="col-sm-12 col-md-9 morePadding morePadding2" id="construction_loc_container<?php echo e($construction_count); ?>" onclick="inputFocus('construction_location<?php echo e($construction_count); ?>')">
														<input type="text" class="form-control" id="construction_location<?php echo e($construction_count); ?>" name="construction_location[<?php echo e($construction_count); ?>]" value="<?php echo e($construction->construction_location); ?>" title="Construction Location <?php echo e($construction_count); ?>">
														<span id="construction_location<?php echo e($construction_count); ?>-label" class="label-text">Construction Location</span>	
													</div>
													<div class="col-sm-12 col-md-2 morePadding morePadding2" id="construction_est_container<?php echo e($construction_count); ?>" onclick="inputFocus('construction_build_estimate<?php echo e($construction_count); ?>')">
														<input type="number" step=".001" class="form-control" id="construction_build_estimate<?php echo e($construction_count); ?>" name="construction_build_estimate[<?php echo e($construction_count); ?>]" value="<?php echo e($construction->construction_build_estimate); ?>" title="Construction Build Estimate <?php echo e($construction_count); ?>" onchange="estimateTotal()">
														<span id="construction_build_estimate<?php echo e($construction_count); ?>-label" class="label-text">Build Estimate</span>	
													</div>
													<div class="col-sm-2 col-md-1 morePadding morePadding2" >
														
													</div>
													<div class="col-sm-12 col-md-3 morePadding morePadding2" onclick="inputFocus('building_contact<?php echo e($construction_count); ?>')">
														<input type="text" class="form-control" id="building_contact<?php echo e($construction_count); ?>" name="building_contact[<?php echo e($construction_count); ?>]" value="<?php echo e($construction->building_contact); ?>" title="Building Contact <?php echo e($construction_count); ?>">
														<span id="building_contact<?php echo e($construction_count); ?>-label" class="label-text">Building Contact</span>	
													</div>
													<div class="col-sm-12 col-md-3 morePadding morePadding2" onclick="inputFocus('building_phone_number<?php echo e($construction_count); ?>')">
														<input type="text" class="form-control" id="building_phone_number<?php echo e($construction_count); ?>" name="building_phone_number[<?php echo e($construction_count); ?>]" value="<?php echo e($construction->building_phone); ?>" title="Building Phone Number <?php echo e($construction_count); ?>">
														<span id="building_phone_number<?php echo e($construction_count); ?>-label" class="label-text">Phone #</span>	
													</div>
													<div class="col-sm-12 col-md-3 morePadding morePadding2" onclick="inputFocus('building_email<?php echo e($construction_count); ?>')">
														<input type="email" class="form-control" id="building_email<?php echo e($construction_count); ?>" name="building_email[<?php echo e($construction_count); ?>]" value="<?php echo e($construction->building_email); ?>" title="Building Email <?php echo e($construction_count); ?>">
														<span id="building_email<?php echo e($construction_count); ?>-label" class="label-text">Email</span>	
													</div>
													
												</div>
												<?php endforeach; ?>
											<?php for($i = $construction_count+1;$i<=30;$i++):?>
												<div class="form-group" id="construction_group<?php echo e($i); ?>"
												<?php if(!old('construction_location')[$i]): ?>
												style="display: none;"
												<?php endif; ?> 
												>
													<div class="col-sm-2 col-md-1 morePadding morePadding2" >
														<div class="btn btn-primary" onclick="removeConstruction(<?php echo e($i); ?>)"><i class="fa fa-minus"></i></div>
													</div>
													<div class="col-sm-12 col-md-9 morePadding morePadding2" id="construction_loc_container<?php echo e($i); ?>" onclick="inputFocus('construction_location<?php echo e($i); ?>')">
														<input type="text" class="form-control" id="construction_location<?php echo e($i); ?>" name="construction_location[<?php echo e($i); ?>]" value="<?php echo e(old('construction_location.'.$i)); ?>" title="Construction Location <?php echo e($i); ?>">
														<span id="construction_location<?php echo e($i); ?>-label" class="label-text">Construction Location</span>	
													</div>
													<div class="col-sm-12 col-md-2 morePadding morePadding2" id="construction_est_container<?php echo e($i); ?>" onclick="inputFocus('construction_build_estimate<?php echo e($i); ?>')">
														<input type="number" step=".001" class="form-control" id="construction_build_estimate<?php echo e($i); ?>" name="construction_build_estimate[<?php echo e($i); ?>]" value="<?php echo e(old('construction_build_estimate.'.$i)); ?>" title="Construction Build Estimate <?php echo e($i); ?>" onchange="estimateTotal()">
														<span id="construction_build_estimate<?php echo e($i); ?>-label" class="label-text">Build Estimate</span>	
													</div>
													<div class="col-sm-2 col-md-1 morePadding morePadding2" >
														
													</div>
													<div class="col-sm-12 col-md-3 morePadding morePadding2" onclick="inputFocus('building_contact<?php echo e($i); ?>')">
														<input type="text" class="form-control" id="building_contact<?php echo e($i); ?>" name="building_contact[<?php echo e($i); ?>]" value="<?php echo e(old('building_contact')[$i]); ?>" title="Building Contact <?php echo e($i); ?>">
														<span id="building_contact<?php echo e($i); ?>-label" class="label-text">Building Contact</span>	
													</div>
													<div class="col-sm-12 col-md-3 morePadding morePadding2" onclick="inputFocus('building_phone_number<?php echo e($i); ?>')">
														<input type="text" class="form-control" id="building_phone_number<?php echo e($i); ?>" name="building_phone_number[<?php echo e($i); ?>]" value="<?php echo e(old('building_phone_number.'.$i)); ?>" title="Building Phone Number <?php echo e($i); ?>">
														<span id="building_phone_number<?php echo e($i); ?>-label" class="label-text">Phone #</span>	
													</div>
													<div class="col-sm-12 col-md-3 morePadding morePadding2" onclick="inputFocus('building_email<?php echo e($i); ?>')">
														<input type="email" class="form-control" id="building_email<?php echo e($i); ?>" name="building_email[<?php echo e($i); ?>]" value="<?php echo e(old('building_email.'.$i)); ?>" title="Building Email <?php echo e($i); ?>">
														<span id="building_email<?php echo e($i); ?>-label" class="label-text">Email</span>	
													</div>

												</div>
												<?php endfor; ?>
												
												
												
											<?php else: ?>
											<div class="form-group" id="construction_group1">
												<div class="col-sm-2 col-md-1 morePadding morePadding2" >
													<div class="btn btn-primary" style="opacity: .5;"><i class="fa fa-minus"></i></div>
												</div>
												<div class="col-sm-12 col-md-9 morePadding morePadding2" id="construction_loc_container1" onclick="inputFocus('construction_location1')">
													<input type="text" class="form-control" id="construction_location1" name="construction_location[1]" value="<?php echo e(old('construction_location.1')); ?>" title="Construction Location 1">
													<span id="construction_location1-label" class="label-text">Construction Location</span>	
												</div>
												<div class="col-sm-12 col-md-2 morePadding morePadding2" id="construction_est_container1" onclick="inputFocus('construction_build_estimate1')">
													<input type="number" step=".001" class="form-control" id="construction_build_estimate1" name="construction_build_estimate[1]" value="<?php echo e(old('construction_build_estimate.1')); ?>" title="Construction Build Estimate 1" onchange="estimateTotal()">
													<span id="construction_build_estimate1-label" class="label-text">Build Estimate</span>	
												</div>
												<div class="col-sm-2 col-md-1 morePadding morePadding2" >
													
												</div>
												<div class="col-sm-12 col-md-3 morePadding morePadding2" onclick="inputFocus('building_contact1')">
													<input type="text" class="form-control" id="building_contact1" name="building_contact[1]" value="<?php echo e(old('building_contact.1')); ?>" title="Building Contact 1">
													<span id="building_contact1-label" class="label-text">Building Contact</span>	
												</div>
												<div class="col-sm-12 col-md-3 morePadding morePadding2" onclick="inputFocus('building_phone_number1')">
													<input type="text" class="form-control" id="building_phone_number1" name="building_phone_number[1]" value="<?php echo e(old('building_phone_number.1')); ?>" title="Building Phone Number 1">
													<span id="building_phone_number1-label" class="label-text">Phone #</span>	
												</div>
												<div class="col-sm-12 col-md-3 morePadding morePadding2" onclick="inputFocus('building_email1')">
													<input type="email" class="form-control" id="building_email1" name="building_email[1]" value="<?php echo e(old('building_email.1')); ?>" title="Building Email 1">
													<span id="building_email1-label" class="label-text">Email</span>	
												</div>
												
											</div>
											<?php for($i = 2;$i<=30;$i++):?>
												<div class="form-group" id="construction_group<?php echo e($i); ?>"
												<?php if(!old('construction_location')[$i]): ?>
												style="display: none;"
												<?php endif; ?> 
												>
													<div class="col-sm-2 col-md-1 morePadding morePadding2" >
														<div class="btn btn-primary" onclick="removeConstruction(<?php echo e($i); ?>)"><i class="fa fa-minus"></i></div>
													</div>
													<div class="col-sm-12 col-md-9 morePadding morePadding2" id="construction_loc_container<?php echo e($i); ?>" onclick="inputFocus('construction_location<?php echo e($i); ?>')">
														<input type="text" class="form-control" id="construction_location<?php echo e($i); ?>" name="construction_location[<?php echo e($i); ?>]" value="<?php echo e(old('construction_location.'.$i)); ?>" title="Construction Location <?php echo e($i); ?>">
														<span id="construction_location<?php echo e($i); ?>-label" class="label-text">Construction Location</span>	
													</div>
													<div class="col-sm-12 col-md-2 morePadding morePadding2" id="construction_est_container<?php echo e($i); ?>" onclick="inputFocus('construction_build_estimate<?php echo e($i); ?>')">
														<input type="number" step=".001" class="form-control" id="construction_build_estimate<?php echo e($i); ?>" name="construction_build_estimate[<?php echo e($i); ?>]" value="<?php echo e(old('construction_build_estimate.'.$i)); ?>" title="Construction Build Estimate <?php echo e($i); ?>" onchange="estimateTotal()">
														<span id="construction_build_estimate<?php echo e($i); ?>-label" class="label-text">Build Estimate</span>	
													</div>
													<div class="col-sm-2 col-md-1 morePadding morePadding2" >
														
													</div>
													<div class="col-sm-12 col-md-3 morePadding morePadding2" onclick="inputFocus('building_contact<?php echo e($i); ?>')">
														<input type="text" class="form-control" id="building_contact<?php echo e($i); ?>" name="building_contact[<?php echo e($i); ?>]" value="<?php echo e(old('building_contact.'.$i)); ?>" title="Building Contact <?php echo e($i); ?>">
														<span id="building_contact<?php echo e($i); ?>-label" class="label-text">Building Contact</span>	
													</div>
													<div class="col-sm-12 col-md-3 morePadding morePadding2" onclick="inputFocus('building_phone_number<?php echo e($i); ?>')">
														<input type="text" class="form-control" id="building_phone_number<?php echo e($i); ?>" name="building_phone_number[<?php echo e($i); ?>]" value="<?php echo e(old('building_phone_number.'.$i)); ?>" title="Building Phone Number <?php echo e($i); ?>">
														<span id="building_phone_number<?php echo e($i); ?>-label" class="label-text">Phone #</span>	
													</div>
													<div class="col-sm-12 col-md-3 morePadding morePadding2" onclick="inputFocus('building_email<?php echo e($i); ?>')">
														<input type="email" class="form-control" id="building_email<?php echo e($i); ?>" name="building_email[<?php echo e($i); ?>]" value="<?php echo e(old('building_email.'.$i)); ?>" title="Building Email <?php echo e($i); ?>">
														<span id="building_email<?php echo e($i); ?>-label" class="label-text">Email</span>	
													</div>

												</div>
												<?php endfor; ?>
											<?php endif; ?>
											
											<div class="form-group">
												<div class="col-sm-12 col-md-10 morePadding morePadding2" >
													<div class="btn btn-primary" onclick="addConstruction()"><i class="fa fa-plus"></i></div>
												</div>
												<label class="xcontrol-label col-sm-6 col-md-1">Estimate Total</label>
												<i class="xcontrol-label col-sm-6 col-md-1" style="text-align: right;" id="estimate_total">$0.00</i>
											</div>
										</div>
										<?php $nni = old('nni') == 1 ? old('nni') : $project->nni; ?>
										<div class="form-group" id="checkbox_nni_container">
											<div class="col-sm-12 col-md-12 XmorePadding morePadding2" onclick="" style="color: gray;">
												<input type="checkbox" class="Xform-control" id="is_nni" name="nni" value="1" title="NNI" onchange="showNNI()" <?php echo e($nni == 1 ? 'checked' : ''); ?>>
												NNI
											</div>
										</div>
										

										<div id="nni_container" 
										<?php if(!$nni): ?>
										style="display: none;"
										<?php endif; ?>
										>
											<?php if(count($nnis) > 0 && !old('nni_service_address')): ?>
											<?php $nni_count = 0; ?>
												<?php foreach($nnis as $nni): ?>
												<?php $nni_count++; ?>
												<div class="form-group" id="nni_group<?php echo e($nni_count); ?>">
													<div class="col-sm-2 col-md-1 morePadding morePadding2" >
														<div class="btn btn-primary" 
														<?php if($nni_count < 2): ?>
														style="opacity: .5;">
														<?php else: ?>
														onclick="removeNNI(<?php echo e($nni_count); ?>)">
														<?php endif; ?>
														<i class="fa fa-minus"></i></div>
													</div>
													<div class="col-sm-12 col-md-4 morePadding morePadding2" onclick="inputFocus('nni_service_address<?php echo e($nni_count); ?>')">
														<input type="text" class="form-control" id="nni_service_address<?php echo e($nni_count); ?>" name="nni_service_address[<?php echo e($nni_count); ?>]" value="<?php echo e($nni->nni_service_address); ?>" title="NNI Service Address <?php echo e($nni_count); ?>">
														<span id="nni_service_address<?php echo e($nni_count); ?>-label" class="label-text">NNI Service Address</span>	
													</div>
													<div class="col-sm-12 col-md-3 morePadding morePadding2" onclick="inputFocus('nni_carrier<?php echo e($nni_count); ?>')">
														<input type="text" class="form-control" id="nni_carrier<?php echo e($nni_count); ?>" name="nni_carrier[<?php echo e($nni_count); ?>]" value="<?php echo e($nni->nni_carrier); ?>" title="NNI Carrier <?php echo e($nni_count); ?>">
														<span id="nni_carrier<?php echo e($nni_count); ?>-label" class="label-text">NNI Carrier</span>	
													</div>  
													<div class="col-sm-12 col-md-2 morePadding morePadding2" onclick="inputFocus('mrc_cogs<?php echo e($nni_count); ?>')">
														<input type="number" step=".001" class="form-control" id="mrc_cogs<?php echo e($nni_count); ?>" name="mrc_cogs[<?php echo e($nni_count); ?>]" value="<?php echo e($nni->mrc_cogs); ?>" title="MRC COGS <?php echo e($nni_count); ?>" onchange="calcMRCcogs()">
														<span id="mrc_cogs<?php echo e($nni_count); ?>-label" class="label-text">MRC COGS</span>	
													</div>
													<div class="col-sm-12 col-md-2 morePadding morePadding2" onclick="inputFocus('nrc_cogs<?php echo e($nni_count); ?>')" style="margin-bottom: 15px; "> 
														<input type="number" step=".001" class="form-control" id="nrc_cogs<?php echo e($nni_count); ?>" name="nrc_cogs[<?php echo e($nni_count); ?>]" value="<?php echo e($nni->nrc_cogs); ?>" title="NRC COGS <?php echo e($nni_count); ?>" onchange="calcNRCcogs()">
														<span id="nrc_cogs<?php echo e($nni_count); ?>-label" class="label-text">NRC COGS</span>	
													</div> 
											
												</div>
												<?php endforeach; ?>
												
												<?php for($i = $nni_count+1;$i<=30;$i++):?>
													<div class="form-group" id="nni_group<?php echo e($i); ?>"
													<?php if(!old('nni_service_address')[$i]): ?>
													style="display: none;"
													<?php endif; ?> 
													>
														<div class="col-sm-2 col-md-1 morePadding morePadding2" >
															<div class="btn btn-primary" onclick="removeNNI(<?php echo e($i); ?>)"><i class="fa fa-minus"></i></div>
														</div>
														<div class="col-sm-12 col-md-4 morePadding morePadding2" onclick="inputFocus('nni_service_address<?php echo e($i); ?>')">
															<input type="text" class="form-control" id="nni_service_address<?php echo e($i); ?>" name="nni_service_address[<?php echo e($i); ?>]" value="<?php echo e(old('nni_service_address.'.$i)); ?>" title="NNI Service Address <?php echo e($i); ?>">
															<span id="nni_service_address<?php echo e($i); ?>-label" class="label-text">NNI Service Address</span>	
														</div>
														<div class="col-sm-12 col-md-3 morePadding morePadding2" onclick="inputFocus('nni_carrier<?php echo e($i); ?>')">
															<input type="text" class="form-control" id="nni_carrier<?php echo e($i); ?>" name="nni_carrier[<?php echo e($i); ?>]" value="<?php echo e(old('nni_carrier.'.$i)); ?>" title="NNI Carrier <?php echo e($i); ?>">
															<span id="nni_carrier<?php echo e($i); ?>-label" class="label-text">NNI Carrier</span>	
														</div>  
														<div class="col-sm-12 col-md-2 morePadding morePadding2" onclick="inputFocus('mrc_cogs<?php echo e($i); ?>')">
															<input type="number" step=".001" class="form-control" id="mrc_cogs<?php echo e($i); ?>" name="mrc_cogs[<?php echo e($i); ?>]" value="<?php echo e(old('mrc_cogs.'.$i)); ?>" title="MRC COGS <?php echo e($i); ?>" onchange="calcMRCcogs()">
															<span id="mrc_cogs<?php echo e($i); ?>-label" class="label-text">MRC COGS</span>	
														</div>
														<div class="col-sm-12 col-md-2 morePadding morePadding2" onclick="inputFocus('nrc_cogs<?php echo e($i); ?>')" style="margin-bottom: 15px; ">
															<input type="number" step=".001" class="form-control" id="nrc_cogs<?php echo e($i); ?>" name="nrc_cogs[<?php echo e($i); ?>]" value="<?php echo e(old('nrc_cogs.'.$i)); ?>" title="NRC COGS <?php echo e($i); ?>" onchange="calcNRCcogs()">
															<span id="nrc_cogs<?php echo e($i); ?>-label" class="label-text">NRC COGS</span>	
														</div> 
													
													</div>
												<?php endfor; ?>
											
											<?php else: ?>
											<div class="form-group" id="nni_group1"
												>
												<div class="col-sm-2 col-md-1 morePadding morePadding2" >
													<div class="btn btn-primary" style="opacity: .5;"><i class="fa fa-minus"></i></div>
												</div>
												<div class="col-sm-12 col-md-4 morePadding morePadding2" onclick="inputFocus('nni_service_address1')">
													<input type="text" class="form-control" id="nni_service_address1" name="nni_service_address[1]" value="<?php echo e(old('nni_service_address.1')); ?>" title="NNI Service Address 1">
													<span id="nni_service_address1-label" class="label-text">NNI Service Address</span>	
												</div>
												<div class="col-sm-12 col-md-3 morePadding morePadding2" onclick="inputFocus('nni_carrier1')">
													<input type="text" class="form-control" id="nni_carrier1" name="nni_carrier[1]" value="<?php echo e(old('nni_carrier.1')); ?>" title="NNI Carrier">
													<span id="nni_carrier1-label" class="label-text">NNI Carrier</span>	
												</div>  
												<div class="col-sm-12 col-md-2 morePadding morePadding2" onclick="inputFocus('mrc_cogs1')">
													<input type="number" step=".001" class="form-control" id="mrc_cogs1" name="mrc_cogs[1]" value="<?php echo e(old('mrc_cogs.1')); ?>" title="MRC COGS" onchange="calcMRCcogs()">
													<span id="mrc_cogs1-label" class="label-text">MRC COGS</span>	
												</div>
												<div class="col-sm-12 col-md-2 morePadding morePadding2" onclick="inputFocus('nrc_cogs1')" style="margin-bottom: 15px; ">
													<input type="number" step=".001" class="form-control" id="nrc_cogs1" name="nrc_cogs[1]" value="<?php echo e(old('nrc_cogs.1')); ?>" title="NRC COGS" onchange="calcNRCcogs()">
													<span id="nrc_cogs1-label" class="label-text">NRC COGS</span>	
												</div> 
											
											</div>
										<?php for($i = 2;$i<=30;$i++):?>
											<div class="form-group" id="nni_group<?php echo e($i); ?>"
											<?php if(!old('nni_service_address')[$i]): ?>
											style="display: none;"
											<?php endif; ?> 
											>
												<div class="col-sm-2 col-md-1 morePadding morePadding2" >
													<div class="btn btn-primary" onclick="removeNNI(<?php echo e($i); ?>)"><i class="fa fa-minus"></i></div>
												</div>
												<div class="col-sm-12 col-md-4 morePadding morePadding2" onclick="inputFocus('nni_service_address<?php echo e($i); ?>')">
													<input type="text" class="form-control" id="nni_service_address<?php echo e($i); ?>" name="nni_service_address[<?php echo e($i); ?>]" value="<?php echo e(old('nni_service_address.'.$i)); ?>" title="NNI Service Address <?php echo e($i); ?>">
													<span id="nni_service_address<?php echo e($i); ?>-label" class="label-text">NNI Service Address</span>	
												</div>
												<div class="col-sm-12 col-md-3 morePadding morePadding2" onclick="inputFocus('nni_carrier<?php echo e($i); ?>')">
													<input type="text" class="form-control" id="nni_carrier<?php echo e($i); ?>" name="nni_carrier[<?php echo e($i); ?>]" value="<?php echo e(old('nni_carrier.'.$i)); ?>" title="NNI Carrier <?php echo e($i); ?>">
													<span id="nni_carrier<?php echo e($i); ?>-label" class="label-text">NNI Carrier</span>	
												</div>  
												<div class="col-sm-12 col-md-2 morePadding morePadding2" onclick="inputFocus('mrc_cogs<?php echo e($i); ?>')">
													<input type="number" step=".001" class="form-control" id="mrc_cogs<?php echo e($i); ?>" name="mrc_cogs[<?php echo e($i); ?>]" value="<?php echo e(old('mrc_cogs.'.$i)); ?>" title="MRC COGS <?php echo e($i); ?>" onchange="calcMRCcogs()">
													<span id="mrc_cogs<?php echo e($i); ?>-label" class="label-text">MRC COGS</span>	
												</div>
												<div class="col-sm-12 col-md-2 morePadding morePadding2" onclick="inputFocus('nrc_cogs<?php echo e($i); ?>')" style="margin-bottom: 15px; ">
													<input type="number" step=".001" class="form-control" id="nrc_cogs<?php echo e($i); ?>" name="nrc_cogs[<?php echo e($i); ?>]" value="<?php echo e(old('nrc_cogs.'.$i)); ?>" title="NRC COGS <?php echo e($i); ?>" onchange="calcNRCcogs()">
													<span id="nrc_cogs<?php echo e($i); ?>-label" class="label-text">NRC COGS</span>	
												</div> 
											
											</div>
											<?php endfor; ?>
											<?php endif; ?>
											
											<div class="form-group">
												<div class="col-sm-12 col-md-8 morePadding morePadding2" >
													<div class="btn btn-primary" onclick="addNNI()"><i class="fa fa-plus"></i></div>
												</div>
												<label class="xcontrol-label col-sm-6 col-md-1">MRC Total</label>
												<i class="xcontrol-label col-sm-6 col-md-1" style="text-align: right;" id="mrc_total_cogs">$0.00</i>
												<label class="xcontrol-label col-sm-6 col-md-1">NRC Total</label>
												<i class="xcontrol-label col-sm-6 col-md-1" style="text-align: right;" id="nrc_total_cogs">$0.00</i>
											</div>
										</div>
										<hr>
										 
										<?php if(count($products) > 0 && !old('product')): ?>
										<?php $product_count = 0;?>
										<?php foreach($products as $product): ?>
										<?php $product_count++; ?>
										<div class="form-group" id="product_group<?php echo e($product_count); ?>">
											<div class="col-sm-2 col-md-1 morePadding morePadding2" >
												<div class="btn btn-primary" 
												<?php if($product_count < 2): ?>
												style="opacity: .5;">
												<?php else: ?>
												onclick="removeProduct2(<?php echo e($product_count); ?>)">
												<?php endif; ?>
												<i class="fa fa-minus"></i></div>
											</div>
											<div class="col-sm-10 col-md-2 morePadding morePadding2" onclick="inputFocus('product<?php echo e($product_count); ?>')">
												<input type="text" class="form-control" id="product<?php echo e($product_count); ?>" name="product[<?php echo e($product_count); ?>]" value="<?php echo e($product->name); ?>" title="Product <?php echo e($product_count); ?>">
												<span id="product<?php echo e($product_count); ?>-label" class="label-text">Product</span>	
											</div>
											<div class="col-sm-12 col-md-2 morePadding morePadding2" onclick="inputFocus('usp<?php echo e($product_count); ?>')">
												<input type="text" class="form-control" id="usp<?php echo e($product_count); ?>" name="usp[<?php echo e($product_count); ?>]" value="<?php echo e($product->usp); ?>" title="USP <?php echo e($product_count); ?>">
												<span id="usp<?php echo e($product_count); ?>-label" class="label-text">USP</span>	
											</div>
											<div class="col-sm-12 col-md-1 morePadding morePadding2" onclick="inputFocus('quantity<?php echo e($product_count); ?>')">
												<input type="number" class="form-control" id="quantity<?php echo e($product_count); ?>" name="quantity[<?php echo e($product_count); ?>]" value="<?php echo e($product->quantity); ?>" step="1" title="Quantity <?php echo e($product_count); ?>" onchange="setMRC(<?php echo e($product_count); ?>)">
												<span id="quantity<?php echo e($product_count); ?>-label" class="label-text">Qty</span>	
											</div>
											<div class="col-sm-12 col-md-2 morePadding morePadding2" onclick="inputFocus('unit_price<?php echo e($product_count); ?>')">
												<input type="number" class="form-control" id="unit_price<?php echo e($product_count); ?>" name="unit_price[<?php echo e($product_count); ?>]" value="<?php echo e($product->unit_price); ?>" step=".001" title="Unit Price <?php echo e($product_count); ?>" onchange="setMRC(<?php echo e($product_count); ?>)">
												<span id="unit_price<?php echo e($product_count); ?>-label" class="label-text">Unit Price</span>	
											</div>
											<div class="col-sm-12 col-md-2 morePadding morePadding2" onclick="inputFocus('product_mrc<?php echo e($product_count); ?>')">
												<input type="number" class="form-control" id="product_mrc<?php echo e($product_count); ?>" name="product_mrc[<?php echo e($product_count); ?>]" value="<?php echo e($product->mrc); ?>" step=".001" title="MRC <?php echo e($product_count); ?>" onchange="calcMRC()">
												<span id="product_mrc<?php echo e($product_count); ?>-label" class="label-text">MRC</span>	
											</div>
											<div class="col-sm-12 col-md-2 morePadding morePadding2" onclick="inputFocus('product_nrc<?php echo e($product_count); ?>')">
												<input type="number" class="form-control" id="product_nrc<?php echo e($product_count); ?>" name="product_nrc[<?php echo e($product_count); ?>]" value="<?php echo e($product->nrc); ?>" step=".001" title="NRC <?php echo e($product_count); ?>" onchange="calcNRC()">
												<span id="product_nrc<?php echo e($product_count); ?>-label" class="label-text">NRC</span>	
											</div>
										</div>
										<?php endforeach; ?>
										<?php for($i = $product_count + 1;$i<=30;$i++):?>
										<div class="form-group" id="product_group<?php echo e($i); ?>"
										<?php if(!old('product')[$i]): ?>
										style="display: none;"
										<?php endif; ?>
										>
											<div class="col-sm-2 col-md-1 morePadding morePadding2" >
												<div class="btn btn-primary" onclick="removeProduct2(<?php echo e($i); ?>)"><i class="fa fa-minus"></i></div>
											</div>
											<div class="col-sm-10 col-md-2 morePadding morePadding2" onclick="inputFocus('product<?php echo e($i); ?>')">
												<input type="text" class="form-control" id="product<?php echo e($i); ?>" name="product[<?php echo e($i); ?>]" value="<?php echo e(old('product.'.$i)); ?>" title="Product <?php echo e($i); ?>">
												<span id="product<?php echo e($i); ?>-label" class="label-text">Product</span>	
											</div>
											<div class="col-sm-12 col-md-2 morePadding morePadding2" onclick="inputFocus('usp<?php echo e($i); ?>')">
												<input type="text" class="form-control" id="usp<?php echo e($i); ?>" name="usp[<?php echo e($i); ?>]" value="<?php echo e(old('usp.'.$i)); ?>" title="USP <?php echo e($i); ?>">
												<span id="usp<?php echo e($i); ?>-label" class="label-text">USP</span>	
											</div>
											<div class="col-sm-12 col-md-1 morePadding morePadding2" onclick="inputFocus('quantity<?php echo e($i); ?>')">
												<input type="number" class="form-control" id="quantity<?php echo e($i); ?>" name="quantity[<?php echo e($i); ?>]" value="<?php echo e(old('quantity.'.$i)); ?>" step="1" title="Quantity <?php echo e($i); ?>" onchange="setMRC(<?php echo e($i); ?>)">
												<span id="quantity<?php echo e($i); ?>-label" class="label-text">Qty</span>	
											</div>
											<div class="col-sm-12 col-md-2 morePadding morePadding2" onclick="inputFocus('unit_price<?php echo e($i); ?>')">
												<input type="number" class="form-control" id="unit_price<?php echo e($i); ?>" name="unit_price[<?php echo e($i); ?>]" value="<?php echo e(old('unit_price.'.$i)); ?>" step=".001" title="Unit Price <?php echo e($i); ?>" onchange="setMRC(<?php echo e($i); ?>)">
												<span id="unit_price<?php echo e($i); ?>-label" class="label-text">Unit Price</span>	
											</div>
											<div class="col-sm-12 col-md-2 morePadding morePadding2" onclick="inputFocus('product_mrc<?php echo e($i); ?>')">
												<input type="number" class="form-control" id="product_mrc<?php echo e($i); ?>" name="product_mrc[<?php echo e($i); ?>]" value="<?php echo e(old('product_mrc.'.$i)); ?>" step=".001" title="MRC <?php echo e($i); ?>" onchange="calcMRC()">
												<span id="product_mrc<?php echo e($i); ?>-label" class="label-text">MRC</span>	
											</div>
											<div class="col-sm-12 col-md-2 morePadding morePadding2" onclick="inputFocus('product_nrc<?php echo e($i); ?>')">
												<input type="number" class="form-control" id="product_nrc<?php echo e($i); ?>" name="product_nrc[<?php echo e($i); ?>]" value="<?php echo e(old('product_nrc.'.$i)); ?>" step=".001" title="NRC <?php echo e($i); ?>" onchange="calcNRC()">
												<span id="product_nrc<?php echo e($i); ?>-label" class="label-text">NRC</span>	
											</div>
										</div>
									<?php endfor; ?>
										<?php else: ?>
										<div class="form-group" id="product_group1">
											<div class="col-sm-2 col-md-1 morePadding morePadding2" >
												<div class="btn btn-primary" style="opacity: .5;"><i class="fa fa-minus"></i></div>
											</div>
											<div class="col-sm-10 col-md-2 morePadding morePadding2" onclick="inputFocus('product1')">
												<input type="text" class="form-control" id="product1" name="product[1]" value="<?php echo e(old('product.1')); ?>" title="Product 1">
												<span id="product1-label" class="label-text">Product</span>	
											</div>
											<div class="col-sm-12 col-md-2 morePadding morePadding2" onclick="inputFocus('usp1')">
												<input type="text" class="form-control" id="usp1" name="usp[1]" value="<?php echo e(old('usp.1')); ?>" title="USP 1">
												<span id="usp1-label" class="label-text">USP</span>	
											</div>
											<div class="col-sm-12 col-md-1 morePadding morePadding2" onclick="inputFocus('quantity1')">
												<input type="number" class="form-control" id="quantity1" name="quantity[1]" value="<?php echo e(old('quantity.1')); ?>" step="1" title="Quantity 1" onchange="setMRC(1)">
												<span id="quantity1-label" class="label-text">Qty</span>	
											</div>
											<div class="col-sm-12 col-md-2 morePadding morePadding2" onclick="inputFocus('unit_price1')">
												<input type="number" class="form-control" id="unit_price1" name="unit_price[1]" value="<?php echo e(old('unit_price.1')); ?>" step=".001" title="Unit Price 1" onchange="setMRC(1)">
												<span id="unit_price1-label" class="label-text">Unit Price</span>	
											</div>
											<div class="col-sm-12 col-md-2 morePadding morePadding2" onclick="inputFocus('product_mrc1')">
												<input type="number" class="form-control" id="product_mrc1" name="product_mrc[1]" value="<?php echo e(old('product_mrc.1')); ?>" step=".001" title="MRC 1" onchange="calcMRC()">
												<span id="product_mrc1-label" class="label-text">MRC</span>	
											</div>
											<div class="col-sm-12 col-md-2 morePadding morePadding2" onclick="inputFocus('product_nrc1')">
												<input type="number" class="form-control" id="product_nrc1" name="product_nrc[1]" value="<?php echo e(old('product_nrc.1')); ?>" step=".001" title="NRC 1" onchange="calcNRC()">
												<span id="product_nrc1-label" class="label-text">NRC</span>	
											</div>
										</div>
									<?php for($i = 2;$i<=30;$i++):?>
										<div class="form-group" id="product_group<?php echo e($i); ?>"
										<?php if(!old('product')[$i]): ?>
										style="display: none;"
										<?php endif; ?>
										>
											<div class="col-sm-2 col-md-1 morePadding morePadding2" >
												<div class="btn btn-primary" onclick="removeProduct2(<?php echo e($i); ?>)"><i class="fa fa-minus"></i></div>
											</div>
											<div class="col-sm-10 col-md-2 morePadding morePadding2" onclick="inputFocus('product<?php echo e($i); ?>')">
												<input type="text" class="form-control" id="product<?php echo e($i); ?>" name="product[<?php echo e($i); ?>]" value="<?php echo e(old('product.'.$i)); ?>" title="Product <?php echo e($i); ?>">
												<span id="product<?php echo e($i); ?>-label" class="label-text">Product</span>	
											</div>
											<div class="col-sm-12 col-md-2 morePadding morePadding2" onclick="inputFocus('usp<?php echo e($i); ?>')">
												<input type="text" class="form-control" id="usp<?php echo e($i); ?>" name="usp[<?php echo e($i); ?>]" value="<?php echo e(old('usp.'.$i)); ?>" title="USP <?php echo e($i); ?>">
												<span id="usp<?php echo e($i); ?>-label" class="label-text">USP</span>	
											</div>
											<div class="col-sm-12 col-md-1 morePadding morePadding2" onclick="inputFocus('quantity<?php echo e($i); ?>')">
												<input type="number" class="form-control" id="quantity<?php echo e($i); ?>" name="quantity[<?php echo e($i); ?>]" value="<?php echo e(old('quantity.'.$i)); ?>" step="1" title="Quantity <?php echo e($i); ?>" onchange="setMRC(<?php echo e($i); ?>)">
												<span id="quantity<?php echo e($i); ?>-label" class="label-text">Qty</span>	
											</div>
											<div class="col-sm-12 col-md-2 morePadding morePadding2" onclick="inputFocus('unit_price<?php echo e($i); ?>')">
												<input type="number" class="form-control" id="unit_price<?php echo e($i); ?>" name="unit_price[<?php echo e($i); ?>]" value="<?php echo e(old('unit_price.'.$i)); ?>" step=".001" title="Unit Price <?php echo e($i); ?>" onchange="setMRC(<?php echo e($i); ?>)">
												<span id="unit_price<?php echo e($i); ?>-label" class="label-text">Unit Price</span>	
											</div>
											<div class="col-sm-12 col-md-2 morePadding morePadding2" onclick="inputFocus('product_mrc<?php echo e($i); ?>')">
												<input type="number" class="form-control" id="product_mrc<?php echo e($i); ?>" name="product_mrc[<?php echo e($i); ?>]" value="<?php echo e(old('product_mrc.'.$i)); ?>" step=".001" title="MRC <?php echo e($i); ?>" onchange="calcMRC()">
												<span id="product_mrc<?php echo e($i); ?>-label" class="label-text">MRC</span>	
											</div>
											<div class="col-sm-12 col-md-2 morePadding morePadding2" onclick="inputFocus('product_nrc<?php echo e($i); ?>')">
												<input type="number" class="form-control" id="product_nrc<?php echo e($i); ?>" name="product_nrc[<?php echo e($i); ?>]" value="<?php echo e(old('product_nrc.'.$i)); ?>" step=".001" title="NRC <?php echo e($i); ?>" onchange="calcNRC()">
												<span id="product_nrc<?php echo e($i); ?>-label" class="label-text">NRC</span>	
											</div>
										</div>
									<?php endfor; ?>
									<?php endif; ?>
										<div class="form-group" id="plus_container">
											<div class="col-sm-12 col-md-8 morePadding morePadding2" >
												<div class="btn btn-primary" onclick="addProduct2()"><i class="fa fa-plus"></i></div>
											</div>
											<label class="xcontrol-label col-sm-6 col-md-1">MRC Total:</label>
											<i class="xcontrol-label col-sm-6 col-md-1" style="text-align: right;" id="mrc_total">$0.00</i>
											<label class="xcontrol-label col-sm-6 col-md-1">NRC Total:</label>
											<i class="xcontrol-label col-sm-6 col-md-1" style="text-align: right;" id="nrc_total">$0.00</i>
										</div>
										
										<div class="form-group">
											<label class="label-control col-sm-12 col-md-12">Required Teams <i style="font-weight: 200;">*Entry and billing are always required</i></label>
											<input type="hidden" name="team[1]" value="1">
											<?php foreach($teams as $team2): ?>
												<?php if($team2->id != 1 && $team2->id != 12): ?>
												<div class="col-sm-12 col-md-4">
													<?php if(!$teamCheck = isset(old('team')[$team2->id]) ? true : false) $teamCheck = $require[$team2->id] ? true : false; 	?>
													<?php if($team2->id > $highest): ?>
													<input type="checkbox" class="xform-control" name="team[<?php echo e($team2->id); ?>]" value="1" <?php echo e($teamCheck ? 'checked' : ''); ?>>&nbsp;<?php echo e($team2->name); ?>

													<?php else: ?>
													<input type="checkbox" class="xform-control" name="team[<?php echo e($team2->id); ?>]" value="1" <?php echo e($teamCheck ? 'checked' : ''); ?> disabled readonly>&nbsp;<?php echo e($team2->name); ?>

													<?php endif; ?>
												</div>
												<?php endif; ?>
											<?php endforeach; ?>
											
										</div>
										  
										<div class="form-group">
											<div class="col-sm-12 col-md-8 morePadding morePadding2" onclick="inputFocus('notes')">
												<textarea class="form-control" id="notes" name="notes" title="Notes" placeholder="Note"><?php echo e(old('notes')); ?></textarea>
												<!-- <span id="notes-label" class="label-text">Notes</span>  -->
											</div>
											<div class="col-sm-12 col-md-4 morePadding morePadding2" onclick="inputFocus('attachment')">
												<input type="file" class="form-control" id="attachment" name="attachment" value="<?php echo e(old('attachment')); ?>"  title="Attachment" style="border: none;">
												<span id="attachment-label" class="xlabel-text hasValue">Attachment</span>	
											</div>											
											
											
										</div>
						<div class="form-group">
							<div class="col-sm-12 col-md-8 morePadding morePadding2">
								<input type="submit" class="btn btn-primary" name="submit" value="Save">
							</div>
							<?php if(!$progression[1]): ?>
							<div class="col-sm-12 col-md-4 morePadding morePadding2">
								<input type="submit" class="btn btn-primary" name="submit" value="Complete" style="float: right;">
							</div>
							<?php else: ?>
							<div class="col-sm-12 col-md-4 morePadding morePadding2">
								<div class="btn btn-primary" style=" background-color: green; float: right; opacity: .5; cursor: default;"><i class="fa fa-check"></i></div>
							</div>
							<?php endif; ?>
						</div>
					</form>
					<?php foreach($notes as $note): ?>
							<?php if($note['team'] == 1): ?>
							<?php $note['isNote'] = array_key_exists('note', $note) ? true : false; ?>
							<br>
							<div class="form-group">
								<div class="panel panel-default">
									<div class="panel-heading" style="background-color: <?php echo e($note['isNote'] ? '#d6e7f5' : '#d5ddf6'); ?>;">
										<h4 class="panel-title">
											<?php echo e($note['user']); ?> @ <?php echo e(date('g:i:s A - F j, Y', strtotime($note['updated_at']))); ?><i class="hidden-xs hidden-sm" style="float: right;"><?php echo e($team_object->find($note['team'])->name); ?></i>
										</h4>
									</div>
									<div class="panel-body" style="background-color: <?php echo e($note['isNote'] ? '#eaf3fa' : '#eaeefb'); ?>;">
										<div class="xcol-md-12">
											<?php if($note['isNote']): ?>
											<?php echo nl2br($note['note']); ?> 
												<?php if($note['user'] == Auth::user()->name): ?>
													&nbsp; &nbsp; 
													<a href="<?php echo e(url('uadmin/projects/note/'.$note['id'])); ?>">
														<i class="fa fa-edit"></i>
													</a>
												<?php endif; ?>
											<?php else: ?>
											<a href="/uadmin/projects/attachment/<?php echo e($note['id']); ?>" target="_blank"><?php echo e($note['file']); ?></a>
											<?php endif; ?>
										</div>
									</div>
								</div>
							</div>
							<?php endif; ?>
							<?php endforeach; ?>
					</div>
					</div>
					</div>
					</div>

		  <div class="panel panel-default" <?php if($team->id == 2) echo "style='display: none;'"?>>
		    <div class="panel-heading" role="tab" id="heading2" style="">
		      <h4 class="panel-title">
		        <div id="group_section2" class="accordian-item"  style="color: #317aba;"
		        role="button" data-toggle="collapse" data-parent="#accordion" 
		        href="#collapse2" aria-expanded="false" 
		        aria-controls="collapse2" onclick="chevron(2)" ondblclick="chevron(2)">
		          <i id="chevron2" class="fa fa-chevron-circle-right"></i> &nbsp;NNI Purchase
		          &nbsp;
		          <?php if($progression[2]): ?>
		          <i class="fa fa-check" style="color: #7ec07b; float: right;"></i><i class="hidden-xs hidden-sm completed-info">Completed by <?php echo e($completed_by[2]); ?> @ <?php echo e(date('g:i:s A - F j, Y', strtotime($completed_at[2]))); ?></i>
		          <?php elseif(!$require[2]): ?>
		          <i class="fa fa-ban" style="color: #c4775b; float: right;"></i>
		          <?php elseif($current == 2): ?>
		          <i class="fa fa-hand-o-left" style="color: #000; float: right;"></i>
		          <?php endif; ?>
		        </div>
		      </h4>
		    </div>
		    <div id="collapse2" class="panel-collapse collapse" role="tabpanel" aria-labelledby="heading2">
		      <div class="panel-body">
				<div class="row">
					<div class="form-group">
							<div class="col-sm-12 col-md-3 morePadding morePadding2">
								<label class="control-label moveOver"><?php echo e($project->foc_date); ?>&nbsp;</label>
								<span class="hasValue">FOC Date</span>	
							</div>
							<div class="col-sm-12 col-md-3 morePadding morePadding2">
								<label class="control-label moveOver"><?php echo e($project->submit_date); ?>&nbsp;</label>
								<span class="hasValue">Submit Date</span>	
							</div>
							<div class="col-sm-12 col-md-3 morePadding morePadding2">
								<label class="control-label moveOver"><?php echo e($project->pon); ?>&nbsp;</label>
								<span class="hasValue">PON</span>	
							</div>
							<div class="col-sm-12 col-md-3 morePadding morePadding2">
								<label class="control-label moveOver"><?php echo e($project->loa_cfa); ?>&nbsp;</label>
								<span class="hasValue">LOA/CFA</span>	
							</div>
							
						</div>
					<div class="col-md-12">
						<a class="btn btn-primary" href="<?php echo e(url('uadmin/projects/edit/'.$project->id.'/2')); ?>">Edit</a>
					</div>
				</div>
					<?php foreach($notes as $note): ?>
							<?php if($note['team'] == 2): ?>
							<?php $note['isNote'] = array_key_exists('note', $note) ? true : false; ?>
							<br>
							<div class="form-group">
								<div class="panel panel-default">
									<div class="panel-heading" style="background-color: <?php echo e($note['isNote'] ? '#d6e7f5' : '#d5ddf6'); ?>;">
										<h4 class="panel-title">
											<?php echo e($note['user']); ?> @ <?php echo e(date('g:i:s A - F j, Y', strtotime($note['updated_at']))); ?><i class="hidden-xs hidden-sm" style="float: right;"><?php echo e($team_object->find($note['team'])->name); ?></i>
										</h4>
									</div>
									<div class="panel-body" style="background-color: <?php echo e($note['isNote'] ? '#eaf3fa' : '#eaeefb'); ?>;">
										<div class="xcol-md-12">
											<?php if($note['isNote']): ?>
											<?php echo nl2br($note['note']); ?> 
												<?php if($note['user'] == Auth::user()->name): ?>
													&nbsp; &nbsp; 
													<a href="<?php echo e(url('uadmin/projects/note/'.$note['id'])); ?>">
														<i class="fa fa-edit"></i>
													</a>
												<?php endif; ?>
											<?php else: ?>
											<a href="/uadmin/projects/attachment/<?php echo e($note['id']); ?>" target="_blank"><?php echo e($note['file']); ?></a>
											<?php endif; ?>
										</div>
									</div>
								</div>
							</div>
							<?php endif; ?>
							<?php endforeach; ?>
		      </div>
		    </div>
		  </div>
		  
          <div class="panel panel-default" 
                      <?php if($team->order != 2): ?>
						style="display: none;"
					  <?php endif; ?>
                      >
                    
                    	
						<div class="panel-heading">
							<div class="accordian-item"  style="color: #317aba;">
								<h4 class="panel-title">
							        
							          <i class="fa fa-pencil-square"></i> &nbsp;<?php echo e($team->name); ?>

							          &nbsp;
							          <?php if($progression[2]): ?>
							          <i class="fa fa-check" style="color: #7ec07b; float: right;"></i><i class="hidden-xs hidden-sm completed-info">Completed by <?php echo e($completed_by[2]); ?> @ <?php echo e(date('g:i:s A - F j, Y', strtotime($completed_at[2]))); ?></i>
							          <?php elseif(!$require[2]): ?>
							          <i class="fa fa-ban" style="color: #c4775b; float: right;"></i>
							          <?php elseif($current == 2): ?>
							          <i class="fa fa-hand-o-left" style="color: #000; float: right;"></i>
							          <?php endif; ?>
							       
							      </h4>
							      
							</div>
                            
                        </div>
					       
		<div class="panel-body">
		
			<div class="row">
				<div class="col-lg-12">

					<form id="survey" class="form-horizontal" method="post" action="/admin/projects/edit/2" enctype="multipart/form-data"
						
					>
						<input type="hidden" name="_token" value="<?php echo e(csrf_token()); ?>">
						<input type="hidden" name="team" value="2">
						<input type="hidden" name="projectID" value="<?php echo e($project->id); ?>">
						<div class="form-group">
							<div class="col-sm-12 col-md-3 morePadding morePadding2" id="foc_date_container" onclick="inputFocus('foc_date')">
								<input type="text" class="form-control date" id="foc_date" name="foc_date" value="<?php echo e(old('foc_date') ? old('foc_date') : $project->foc_date); ?>" title="FOC Date">
								<span id="foc_date-label" class="label-text">FOC Date</span>	
							</div>
							<div class="col-sm-12 col-md-3 morePadding morePadding2" id="submit_date_container" onclick="inputFocus('submit_date')">
								<input type="text" class="form-control date" id="submit_date" name="submit_date" value="<?php echo e(old('submit_date') ? old('submit_date') : $project->submit_date); ?>" title="Submit Date">
								<span id="submit_date-label" class="label-text">Submit Date</span>	
							</div>
							<div class="col-sm-12 col-md-3 morePadding morePadding2" onclick="inputFocus('pon')">
								<input type="text" class="form-control" id="pon" name="pon" value="<?php echo e(old('pon') ? old('pon') : $project->pon); ?>" title="PON">
								<span id="pon-label" class="label-text">PON</span>	
							</div>
							<div class="col-sm-12 col-md-3 morePadding morePadding2" onclick="inputFocus('loa_cfa')">
								<input type="text" class="form-control" id="loa_cfa" name="loa_cfa" value="<?php echo e(old('loa_cfa') ? old('loa_cfa') : $project->loa_cfa); ?>" title="LOA/CFA">
								<span id="loa_cfa-label" class="label-text">LOA/CFA</span>
							</div>
						</div>
						
						<div class="form-group">
							<div class="col-sm-12 col-md-8 morePadding morePadding2">
								<textarea class="form-control" name="notes" title="Notes" placeholder="Notes"><?php echo e(old('notes')); ?></textarea>
							</div>
							<div class="col-sm-12 col-md-4 morePadding morePadding2">
								<input type="file" class="form-control" name="attachment" value="<?php echo e(old('attachment')); ?>" title="Attachment">
								<span class="xlabel-text hasValue">Attachment</span>	
							</div>
						</div>
						<div class="form-group">
							<div class="col-sm-12 col-md-8 morePadding morePadding2">
								<input type="submit" class="btn btn-primary" name="submit" value="Save">
							</div>
							<?php if($progression[2]): ?>
							<div class="col-sm-12 col-md-4 morePadding morePadding2">
								<div class="btn btn-primary" style=" background-color: green; float: right; opacity: .5; cursor: default;"><i class="fa fa-check"></i></div>
							</div>
							<?php elseif($current == 2): ?>
							<div class="col-sm-12 col-md-4 morePadding morePadding2">
								<input type="submit" class="btn btn-primary" name="submit" value="Complete" style="float: right;">
							</div>
							<?php else: ?>
							<div class="col-sm-12 col-md-4 morePadding morePadding2">
							</div>
							<?php endif; ?>
						</div>
					</form> 
							<?php foreach($notes as $note): ?>
							<?php if($note['team'] == 2): ?>
							<?php $note['isNote'] = array_key_exists('note', $note) ? true : false; ?>
							<br>
							<div class="form-group">
								<div class="panel panel-default">
									<div class="panel-heading" style="background-color: <?php echo e($note['isNote'] ? '#d6e7f5' : '#d5ddf6'); ?>;">
										<h4 class="panel-title">
											<?php echo e($note['user']); ?> @ <?php echo e(date('g:i:s A - F j, Y', strtotime($note['updated_at']))); ?><i class="hidden-xs hidden-sm" style="float: right;"><?php echo e($team_object->find($note['team'])->name); ?></i>
										</h4>
									</div>
									<div class="panel-body" style="background-color: <?php echo e($note['isNote'] ? '#eaf3fa' : '#eaeefb'); ?>;">
										<div class="xcol-md-12">
											<?php if($note['isNote']): ?>
											<?php echo nl2br($note['note']); ?> 
												<?php if($note['user'] == Auth::user()->name): ?>
													&nbsp; &nbsp; 
													<a href="<?php echo e(url('uadmin/projects/note/'.$note['id'])); ?>">
														<i class="fa fa-edit"></i>
													</a>
												<?php endif; ?>
											<?php else: ?>
											<a href="/uadmin/projects/attachment/<?php echo e($note['id']); ?>" target="_blank"><?php echo e($note['file']); ?></a>
											<?php endif; ?>
										</div>
									</div>
								</div>
							</div>
							<?php endif; ?>
							<?php endforeach; ?>
				</div>
			</div>
		</div>
		</div>

		  <div class="panel panel-default" <?php if($team->id == 3) echo "style='display: none;'";?>>
		    <div class="panel-heading" role="tab" id="heading3" style="">
		      <h4 class="panel-title">
		        <div id="group_section3" class="accordian-item"  style="color: #317aba;"
		        role="button" data-toggle="collapse" data-parent="#accordion" 
		        href="#collapse3" aria-expanded="false" 
		        aria-controls="collapse3" onclick="chevron(3)" ondblclick="chevron(3)">
		          <i id="chevron3" class="fa fa-chevron-circle-right"></i> &nbsp;Mapping
		          &nbsp;
							          <?php if($progression[3]): ?>
							          <i class="fa fa-check" style="color: #7ec07b; float: right;"></i><i class="hidden-xs hidden-sm completed-info">Completed by <?php echo e($completed_by[3]); ?> @ <?php echo e(date('g:i:s A - F j, Y', strtotime($completed_at[3]))); ?></i>
							          <?php elseif(!$require[3]): ?>
							          <i class="fa fa-ban" style="color: #c4775b; float: right;"></i>
							          <?php elseif($current == 3): ?>
							          <i class="fa fa-hand-o-left" style="color: #000; float: right;"></i>
							          <?php endif; ?>
		        </div>
		      </h4>
		    </div>
		    <div id="collapse3" class="panel-collapse collapse" role="tabpanel" aria-labelledby="heading3">
		      <div class="panel-body">
		      	<div class="row">
					
						<div class="form-group">
							<div class="col-sm-12 col-md-4 morePadding morePadding2">
								<label class="control-label moveOver"><?php echo e($project->work_order); ?>&nbsp;</label>
								<span class="hasValue">Work Order #</span>	
							</div>
						</div>
					
					
					<div class="col-md-12">
						<a class="btn btn-primary" href="<?php echo e(url('uadmin/projects/edit/'.$project->id.'/3')); ?>">Edit</a>
					</div>
				</div>
				<?php foreach($notes as $note): ?>
							<?php if($note['team'] == 3): ?>
							<?php $note['isNote'] = array_key_exists('note', $note) ? true : false; ?>
							<br>
							<div class="form-group">
								<div class="panel panel-default">
									<div class="panel-heading" style="background-color: <?php echo e($note['isNote'] ? '#d6e7f5' : '#d5ddf6'); ?>;">
										<h4 class="panel-title">
											<?php echo e($note['user']); ?> @ <?php echo e(date('g:i:s A - F j, Y', strtotime($note['updated_at']))); ?><i class="hidden-xs hidden-sm" style="float: right;"><?php echo e($team_object->find($note['team'])->name); ?></i>
										</h4>
									</div>
									<div class="panel-body" style="background-color: <?php echo e($note['isNote'] ? '#eaf3fa' : '#eaeefb'); ?>;">
										<div class="xcol-md-12">
											<?php if($note['isNote']): ?>
											<?php echo nl2br($note['note']); ?> 
												<?php if($note['user'] == Auth::user()->name): ?>
													&nbsp; &nbsp; 
													<a href="<?php echo e(url('uadmin/projects/note/'.$note['id'])); ?>">
														<i class="fa fa-edit"></i>
													</a>
												<?php endif; ?>
											<?php else: ?>
											<a href="/uadmin/projects/attachment/<?php echo e($note['id']); ?>" target="_blank"><?php echo e($note['file']); ?></a>
											<?php endif; ?>
										</div>
									</div>
								</div>
							</div>
							<?php endif; ?>
							<?php endforeach; ?>
		      </div>
		    </div>
		  </div>
		
          <div class="panel panel-default" 
                      <?php if($team->order != 3): ?>
						style="display: none;"
					  <?php endif; ?>
                      >
                    
                    	
			<div class="panel-heading">
					<div class="accordian-item"  style="color: #317aba;">
						<h4 class="panel-title">
					        
					          <i class="fa fa-pencil-square"></i> &nbsp;<?php echo e($team->name); ?>

					          &nbsp;
							          <?php if($progression[3]): ?>
							          <i class="fa fa-check" style="color: #7ec07b; float: right;"></i><i class="hidden-xs hidden-sm completed-info">Completed by <?php echo e($completed_by[3]); ?> @ <?php echo e(date('g:i:s A - F j, Y', strtotime($completed_at[3]))); ?></i>
							          <?php elseif(!$require[3]): ?>
							          <i class="fa fa-ban" style="color: #c4775b; float: right;"></i>
							          <?php elseif($current == 3): ?>
							          <i class="fa fa-hand-o-left" style="color: #000; float: right;"></i>
							          <?php endif; ?>
					       
					      </h4>
						      
					</div>
	                            
	        </div>
						       
			<div class="panel-body">
			
				<div class="row">
					<div class="col-lg-12">
						
						<form id="mapping" class="form-horizontal" method="post" action="/admin/projects/edit/3" enctype="multipart/form-data">
						<input type="hidden" name="_token" value="<?php echo e(csrf_token()); ?>">
						<input type="hidden" name="team" value="3">
						<input type="hidden" name="projectID" value="<?php echo e($project->id); ?>">
						
						<div class="form-group">
							<div class="col-sm-12 col-md-6 morePadding morePadding2" onclick="inputFocus('work_order')">
								<input type="text" class="form-control" id="work_order" name="work_order" value="<?php echo e(old('work_order') ? old('work_order') : $project->work_order); ?>" title="Work Order #">
								<span id="work_order-label" class="label-text">Work Order</span>	
							</div>
							<div class="col-sm-12 col-md-6 morePadding morePadding2">
								<input type="file" class="form-control" name="attachment" value="<?php echo e(old('attachment')); ?>" title="Attachment">
								<span class="xlabel-text hasValue">Attachment</span>	
							</div>
						</div>
						<div class="form-group">
							<div class="col-sm-12 col-md-12 morePadding morePadding2">
								<textarea class="form-control" name="notes" title="Notes" placeholder="Notes"><?php echo e(old('notes')); ?></textarea>
							</div>
						</div>
						<div class="form-group">
							<div class="col-sm-12 col-md-8 morePadding morePadding2">
								<input type="submit" class="btn btn-primary" name="submit" value="Save">
							</div>
							<?php if($progression[3]): ?>
							<div class="col-sm-12 col-md-4 morePadding morePadding2">
								<div class="btn btn-primary" style=" background-color: green; float: right; opacity: .5; cursor: default;"><i class="fa fa-check"></i></div>
							</div>
							<?php elseif($current == 3): ?>
							<div class="col-sm-12 col-md-4 morePadding morePadding2">
								<input type="submit" class="btn btn-primary" name="submit" value="Complete" style="float: right;">
							</div>
							<?php else: ?>
							<div class="col-sm-12 col-md-4 morePadding morePadding2">
							</div>
							<?php endif; ?>

						</div>
					</form>
							<?php foreach($notes as $note): ?>
							<?php if($note['team'] == 3): ?>
							<?php $note['isNote'] = array_key_exists('note', $note) ? true : false; ?>
							<br>
							<div class="form-group">
								<div class="panel panel-default">
									<div class="panel-heading" style="background-color: <?php echo e($note['isNote'] ? '#d6e7f5' : '#d5ddf6'); ?>;">
										<h4 class="panel-title">
											<?php echo e($note['user']); ?> @ <?php echo e(date('g:i:s A - F j, Y', strtotime($note['updated_at']))); ?><i class="hidden-xs hidden-sm" style="float: right;"><?php echo e($team_object->find($note['team'])->name); ?></i>
										</h4>
									</div>
									<div class="panel-body" style="background-color: <?php echo e($note['isNote'] ? '#eaf3fa' : '#eaeefb'); ?>;">
										<div class="xcol-md-12">
											<?php if($note['isNote']): ?>
											<?php echo nl2br($note['note']); ?> 
												<?php if($note['user'] == Auth::user()->name): ?>
													&nbsp; &nbsp; 
													<a href="<?php echo e(url('uadmin/projects/note/'.$note['id'])); ?>">
														<i class="fa fa-edit"></i>
													</a>
												<?php endif; ?>
											<?php else: ?>
											<a href="/uadmin/projects/attachment/<?php echo e($note['id']); ?>" target="_blank"><?php echo e($note['file']); ?></a>
											<?php endif; ?>
										</div>
									</div>
								</div>
							</div>
							<?php endif; ?>
							<?php endforeach; ?>
	
					</div>
				</div>
			</div>
		</div>
 
		  <div class="panel panel-default" <?php if($team->id == 4) echo "style='display: none;'"?>>
		    <div class="panel-heading" role="tab" id="heading4" style="">
		      <h4 class="panel-title">
		        <div id="group_section4" class="accordian-item"  style="color: #317aba;"
		        role="button" data-toggle="collapse" data-parent="#accordion" 
		        href="#collapse4" aria-expanded="false" 
		        aria-controls="collapse4" onclick="chevron(4)" ondblclick="chevron(4)">
		          <i id="chevron4" class="fa fa-chevron-circle-right"></i> &nbsp;Permits
		          &nbsp;
							          <?php if($progression[4]): ?>
							          <i class="fa fa-check" style="color: #7ec07b; float: right;"></i><i class="hidden-xs hidden-sm completed-info">Completed by <?php echo e($completed_by[4]); ?> @ <?php echo e(date('g:i:s A - F j, Y', strtotime($completed_at[4]))); ?></i>
							          <?php elseif(!$require[4]): ?>
							          <i class="fa fa-ban" style="color: #c4775b; float: right;"></i>
							          <?php elseif($current == 4): ?>
							          <i class="fa fa-hand-o-left" style="color: #000; float: right;"></i>
							          <?php endif; ?>
		        </div>
		      </h4>
		    </div>
		    <div id="collapse4" class="panel-collapse collapse" role="tabpanel" aria-labelledby="heading4">
		      <div class="panel-body">
				<div class="row">
					<div class="col-md-12">
						<a class="btn btn-primary" href="<?php echo e(url('uadmin/projects/edit/'.$project->id.'/4')); ?>">Edit</a>
					</div>
				</div>
					<?php foreach($notes as $note): ?>
							<?php if($note['team'] == 4): ?>
							<?php $note['isNote'] = array_key_exists('note', $note) ? true : false; ?>
							<br>
							<div class="form-group">
								<div class="panel panel-default">
									<div class="panel-heading" style="background-color: <?php echo e($note['isNote'] ? '#d6e7f5' : '#d5ddf6'); ?>;">
										<h4 class="panel-title">
											<?php echo e($note['user']); ?> @ <?php echo e(date('g:i:s A - F j, Y', strtotime($note['updated_at']))); ?><i class="hidden-xs hidden-sm" style="float: right;"><?php echo e($team_object->find($note['team'])->name); ?></i>
										</h4>
									</div>
									<div class="panel-body" style="background-color: <?php echo e($note['isNote'] ? '#eaf3fa' : '#eaeefb'); ?>;">
										<div class="xcol-md-12">
											<?php if($note['isNote']): ?>
											<?php echo nl2br($note['note']); ?> 
												<?php if($note['user'] == Auth::user()->name): ?>
													&nbsp; &nbsp; 
													<a href="<?php echo e(url('uadmin/projects/note/'.$note['id'])); ?>">
														<i class="fa fa-edit"></i>
													</a>
												<?php endif; ?>
											<?php else: ?>
											<a href="/uadmin/projects/attachment/<?php echo e($note['id']); ?>" target="_blank"><?php echo e($note['file']); ?></a>
											<?php endif; ?>
										</div>
									</div>
								</div>
							</div>
							<?php endif; ?>
							<?php endforeach; ?>
		      </div>
		    </div>
		  </div>
		  
		  <div class="panel panel-default" 
                      <?php if($team->order != 4): ?>
						style="display: none;"
					  <?php endif; ?>
                      >
                    
                    	
			<div class="panel-heading">
					<div class="accordian-item"  style="color: #317aba;">
						<h4 class="panel-title">
					        
					          <i class="fa fa-pencil-square"></i> &nbsp;<?php echo e($team->name); ?>

					          &nbsp;
							          <?php if($progression[4]): ?>
							          <i class="fa fa-check" style="color: #7ec07b; float: right;"></i><i class="hidden-xs hidden-sm completed-info">Completed by <?php echo e($completed_by[4]); ?> @ <?php echo e(date('g:i:s A - F j, Y', strtotime($completed_at[4]))); ?></i>
							          <?php elseif(!$require[4]): ?>
							          <i class="fa fa-ban" style="color: #c4775b; float: right;"></i>
							          <?php elseif($current == 4): ?>
							          <i class="fa fa-hand-o-left" style="color: #000; float: right;"></i>
							          <?php endif; ?>
					       
					      </h4>
						     
					</div>
	                            
	        </div>
						       
			<div class="panel-body">
			
				<div class="row">
					<div class="col-lg-12">
						
					<form id="permits" class="form-horizontal" method="post" action="/admin/projects/edit/4" enctype="multipart/form-data">
						<input type="hidden" name="_token" value="<?php echo e(csrf_token()); ?>">
						<input type="hidden" name="team" value="4">
						<input type="hidden" name="projectID" value="<?php echo e($project->id); ?>">
						
						<div class="form-group">
							<div class="col-sm-12 col-md-8 morePadding morePadding2" >
								<textarea class="form-control" name="notes" title="Notes" placeholder="Notes"><?php echo e(old('notes')); ?></textarea>
							</div>
							<div class="col-sm-12 col-md-4 morePadding morePadding2">
								<input type="file" class="form-control" name="attachment" value="<?php echo e(old('attachment')); ?>" title="Attachment">
								<span id="attachment-label" class="xlabel-text hasValue">Attachment</span>	
							</div>
						</div>
						<div class="form-group">
							<div class="col-sm-12 col-md-8 morePadding morePadding2">
								<input type="submit" class="btn btn-primary" name="submit" value="Save">
							</div>
							<?php if($progression[4]): ?>
							<div class="col-sm-12 col-md-4 morePadding morePadding2">
								<div class="btn btn-primary" style=" background-color: green; float: right; opacity: .5; cursor: default;"><i class="fa fa-check"></i></div>
							</div>
							<?php elseif($current == 4): ?>
							<div class="col-sm-12 col-md-4 morePadding morePadding2">
								<input type="submit" class="btn btn-primary" name="submit" value="Complete" style="float: right;">
							</div>
							<?php else: ?>
							<div class="col-sm-12 col-md-4 morePadding morePadding2">
							</div>
							<?php endif; ?>

						</div>
					</form>
										<?php foreach($notes as $note): ?>
							<?php if($note['team'] == 4): ?>
							<?php $note['isNote'] = array_key_exists('note', $note) ? true : false; ?>
							<br>
							<div class="form-group">
								<div class="panel panel-default">
									<div class="panel-heading" style="background-color: <?php echo e($note['isNote'] ? '#d6e7f5' : '#d5ddf6'); ?>;">
										<h4 class="panel-title">
											<?php echo e($note['user']); ?> @ <?php echo e(date('g:i:s A - F j, Y', strtotime($note['updated_at']))); ?><i class="hidden-xs hidden-sm" style="float: right;"><?php echo e($team_object->find($note['team'])->name); ?></i>
										</h4>
									</div>
									<div class="panel-body" style="background-color: <?php echo e($note['isNote'] ? '#eaf3fa' : '#eaeefb'); ?>;">
										<div class="xcol-md-12">
											<?php if($note['isNote']): ?>
											<?php echo nl2br($note['note']); ?> 
												<?php if($note['user'] == Auth::user()->name): ?>
													&nbsp; &nbsp; 
													<a href="<?php echo e(url('uadmin/projects/note/'.$note['id'])); ?>">
														<i class="fa fa-edit"></i>
													</a>
												<?php endif; ?>
											<?php else: ?>
											<a href="/uadmin/projects/attachment/<?php echo e($note['id']); ?>" target="_blank"><?php echo e($note['file']); ?></a>
											<?php endif; ?>
										</div>
									</div>
								</div>
							</div>
							<?php endif; ?>
							<?php endforeach; ?>
	
					</div>
				</div>
			</div>
		</div>

		  <div class="panel panel-default" <?php if($team->id == 5) echo "style='display: none;'"?>>
		    <div class="panel-heading" role="tab" id="heading5" style="">
		      <h4 class="panel-title">
		        <div id="group_section5" class="accordian-item"  style="color: #317aba;"
		        role="button" data-toggle="collapse" data-parent="#accordion" 
		        href="#collapse5" aria-expanded="false" 
		        aria-controls="collapse5" onclick="chevron(5)" ondblclick="chevron(5)">
		          <i id="chevron5" class="fa fa-chevron-circle-right"></i> &nbsp;Construction
		          &nbsp;
							          <?php if($progression[5]): ?>
							          <i class="fa fa-check" style="color: #7ec07b; float: right;"></i><i class="hidden-xs hidden-sm completed-info">Completed by <?php echo e($completed_by[5]); ?> @ <?php echo e(date('g:i:s A - F j, Y', strtotime($completed_at[5]))); ?></i>
							          <?php elseif(!$require[5]): ?>
							          <i class="fa fa-ban" style="color: #c4775b; float: right;"></i>
							          <?php elseif($current == 5): ?>
							          <i class="fa fa-hand-o-left" style="color: #000; float: right;"></i>
							          <?php endif; ?>
		        </div>
		      </h4>
		    </div>
		    <div id="collapse5" class="panel-collapse collapse" role="tabpanel" aria-labelledby="heading5">
		      <div class="panel-body">
				<div class="row">
					<div class="col-md-12">
						<a class="btn btn-primary" href="<?php echo e(url('uadmin/projects/edit/'.$project->id.'/5')); ?>">Edit</a>
					</div>
				</div>
					<?php foreach($notes as $note): ?>
							<?php if($note['team'] == 5): ?>
							<?php $note['isNote'] = array_key_exists('note', $note) ? true : false; ?>
							<br>
							<div class="form-group">
								<div class="panel panel-default">
									<div class="panel-heading" style="background-color: <?php echo e($note['isNote'] ? '#d6e7f5' : '#d5ddf6'); ?>;">
										<h4 class="panel-title">
											<?php echo e($note['user']); ?> @ <?php echo e(date('g:i:s A - F j, Y', strtotime($note['updated_at']))); ?><i class="hidden-xs hidden-sm" style="float: right;"><?php echo e($team_object->find($note['team'])->name); ?></i>
										</h4>
									</div>
									<div class="panel-body" style="background-color: <?php echo e($note['isNote'] ? '#eaf3fa' : '#eaeefb'); ?>;">
										<div class="xcol-md-12">
											<?php if($note['isNote']): ?>
											<?php echo nl2br($note['note']); ?> 
												<?php if($note['user'] == Auth::user()->name): ?>
													&nbsp; &nbsp; 
													<a href="<?php echo e(url('uadmin/projects/note/'.$note['id'])); ?>">
														<i class="fa fa-edit"></i>
													</a>
												<?php endif; ?>
											<?php else: ?>
											<a href="/uadmin/projects/attachment/<?php echo e($note['id']); ?>" target="_blank"><?php echo e($note['file']); ?></a>
											<?php endif; ?>
										</div>
									</div>
								</div>
							</div>
							<?php endif; ?>
							<?php endforeach; ?>
		      </div>
		    </div>
		  </div>
		  
		  <div class="panel panel-default" 
                      <?php if($team->order != 5): ?>
						style="display: none;"
					  <?php endif; ?>
                      >
                    
                    	
			<div class="panel-heading">
					<div class="accordian-item"  style="color: #317aba;">
						<h4 class="panel-title">
					        
					          <i class="fa fa-pencil-square"></i> &nbsp;<?php echo e($team->name); ?>

					          &nbsp;
							          <?php if($progression[5]): ?>
							          <i class="fa fa-check" style="color: #7ec07b; float: right;"></i><i class="hidden-xs hidden-sm completed-info">Completed by <?php echo e($completed_by[5]); ?> @ <?php echo e(date('g:i:s A - F j, Y', strtotime($completed_at[5]))); ?></i>
							          <?php elseif(!$require[5]): ?>
							          <i class="fa fa-ban" style="color: #c4775b; float: right;"></i>
							          <?php elseif($current == 5): ?>
							          <i class="fa fa-hand-o-left" style="color: #000; float: right;"></i>
							          <?php endif; ?>
					       
					      </h4>
						      
					</div>
	                            
	        </div>
						       
			<div class="panel-body">
			
				<div class="row">
					<div class="col-lg-12">
						
						<form id="construction" class="form-horizontal" method="post" action="/admin/projects/edit/5" enctype="multipart/form-data">
						<input type="hidden" name="_token" value="<?php echo e(csrf_token()); ?>">
						<input type="hidden" name="team" value="5">
						<input type="hidden" name="projectID" value="<?php echo e($project->id); ?>">
						
						<div class="form-group">
							<div class="col-sm-12 col-md-8 morePadding morePadding2">
								<textarea class="form-control" name="notes" title="Notes" placeholder="Notes"><?php echo e(old('notes')); ?></textarea>
							</div>
							<div class="col-sm-12 col-md-4 morePadding morePadding2">
								<input type="file" class="form-control" name="attachment" value="<?php echo e(old('attachment')); ?>" title="Attachment">
								<span class="xlabel-text hasValue">Attachment</span>	
							</div>
						</div>
						<div class="form-group">
							<div class="col-sm-12 col-md-8 morePadding morePadding2">
								<input type="submit" class="btn btn-primary" name="submit" value="Save">
							</div>
							<?php if($progression[5]): ?>
							<div class="col-sm-12 col-md-4 morePadding morePadding2">
								<div class="btn btn-primary" style=" background-color: green; float: right; opacity: .5; cursor: default;"><i class="fa fa-check"></i></div>
							</div>
							<?php elseif($current == 5): ?>
							<div class="col-sm-12 col-md-4 morePadding morePadding2">
								<input type="submit" class="btn btn-primary" name="submit" value="Complete" style="float: right;">
							</div>
							<?php else: ?>
							<div class="col-sm-12 col-md-4 morePadding morePadding2">
							</div>
							<?php endif; ?>

						</div>
					</form>
						<?php foreach($notes as $note): ?>
							<?php if($note['team'] == 5): ?>
							<?php $note['isNote'] = array_key_exists('note', $note) ? true : false; ?>
							<br>
							<div class="form-group">
								<div class="panel panel-default">
									<div class="panel-heading" style="background-color: <?php echo e($note['isNote'] ? '#d6e7f5' : '#d5ddf6'); ?>;">
										<h4 class="panel-title">
											<?php echo e($note['user']); ?> @ <?php echo e(date('g:i:s A - F j, Y', strtotime($note['updated_at']))); ?><i class="hidden-xs hidden-sm" style="float: right;"><?php echo e($team_object->find($note['team'])->name); ?></i>
										</h4>
									</div>
									<div class="panel-body" style="background-color: <?php echo e($note['isNote'] ? '#eaf3fa' : '#eaeefb'); ?>;">
										<div class="xcol-md-12">
											<?php if($note['isNote']): ?>
											<?php echo nl2br($note['note']); ?> 
												<?php if($note['user'] == Auth::user()->name): ?>
													&nbsp; &nbsp; 
													<a href="<?php echo e(url('uadmin/projects/note/'.$note['id'])); ?>">
														<i class="fa fa-edit"></i>
													</a>
												<?php endif; ?>
											<?php else: ?>
											<a href="/uadmin/projects/attachment/<?php echo e($note['id']); ?>" target="_blank"><?php echo e($note['file']); ?></a>
											<?php endif; ?>
										</div>
									</div>
								</div>
							</div>
							<?php endif; ?>
							<?php endforeach; ?>
					</div>
				</div>
			</div>
		</div>

		  <div class="panel panel-default" <?php if($team->id == 6) echo "style='display: none;'"?>>
		    <div class="panel-heading" role="tab" id="heading6" style="">
		      <h4 class="panel-title">
		        <div id="group_section6" class="accordian-item"  style="color: #317aba;"
		        role="button" data-toggle="collapse" data-parent="#accordion" 
		        href="#collapse6" aria-expanded="false" 
		        aria-controls="collapse6" onclick="chevron(6)" ondblclick="chevron(6)">
		          <i id="chevron6" class="fa fa-chevron-circle-right"></i> &nbsp;Splicing
		          &nbsp;
							          <?php if($progression[6]): ?>
							          <i class="fa fa-check" style="color: #7ec07b;  float: right;"></i><i class="hidden-xs hidden-sm completed-info">Completed by <?php echo e($completed_by[6]); ?> @ <?php echo e(date('g:i:s A - F j, Y', strtotime($completed_at[6]))); ?></i>
							          <?php elseif(!$require[6]): ?>
							          <i class="fa fa-ban" style="color: #c4775b; float: right;"></i>
							          <?php elseif($current == 6): ?>
							          <i class="fa fa-hand-o-left" style="color: #000; float: right;"></i>
							          <?php endif; ?>
		        </div>
		      </h4>
		    </div>
		    <div id="collapse6" class="panel-collapse collapse" role="tabpanel" aria-labelledby="heading6">
		      <div class="panel-body">
					<div class="row">
						<div class="form-group">
							<div class="form-group">
								<div class="col-sm-12 col-md-4 morePadding morePadding2">
									<label class="control-label moveOver"><?php echo e($project->serving_office); ?>&nbsp;</label>
									<span class="hasValue">Serving Office</span>	
								</div>
								<div class="col-sm-12 col-md-4 morePadding morePadding2">
									<label class="control-label moveOver"><?php echo e($project->fiber_port); ?>&nbsp;</label>
									<span class="hasValue">Fiber Port</span>	
								</div>
								<div class="col-sm-12 col-md-4 morePadding morePadding2">
									<label class="control-label moveOver"><?php echo e($assigned_current[6] ? Auth::user()->find($assigned_current[6])->name : ' '); ?>&nbsp;</label>
									<span class="hasValue">Assigned Tech</span>	
								</div>
							</div>
						</div>
						<div class="form-group">
							<div class="col-md-12">
								<a class="btn btn-primary" href="<?php echo e(url('uadmin/projects/edit/'.$project->id.'/6')); ?>">Edit</a>
							</div>
						</div>
					</div>
					<?php foreach($notes as $note): ?>
							<?php if($note['team'] == 6): ?>
							<?php $note['isNote'] = array_key_exists('note', $note) ? true : false; ?>
							<br>
							<div class="form-group">
								<div class="panel panel-default">
									<div class="panel-heading" style="background-color: <?php echo e($note['isNote'] ? '#d6e7f5' : '#d5ddf6'); ?>;">
										<h4 class="panel-title">
											<?php echo e($note['user']); ?> @ <?php echo e(date('g:i:s A - F j, Y', strtotime($note['updated_at']))); ?><i class="hidden-xs hidden-sm" style="float: right;"><?php echo e($team_object->find($note['team'])->name); ?></i>
										</h4>
									</div>
									<div class="panel-body" style="background-color: <?php echo e($note['isNote'] ? '#eaf3fa' : '#eaeefb'); ?>;">
										<div class="xcol-md-12">
											<?php if($note['isNote']): ?>
											<?php echo nl2br($note['note']); ?> 
												<?php if($note['user'] == Auth::user()->name): ?>
													&nbsp; &nbsp; 
													<a href="<?php echo e(url('uadmin/projects/note/'.$note['id'])); ?>">
														<i class="fa fa-edit"></i>
													</a>
												<?php endif; ?>
											<?php else: ?>
											<a href="/uadmin/projects/attachment/<?php echo e($note['id']); ?>" target="_blank"><?php echo e($note['file']); ?></a>
											<?php endif; ?>
										</div>
									</div>
								</div>
							</div>
							<?php endif; ?>
							<?php endforeach; ?>
		      </div>
		    </div>
		  </div>
		  
		  
		  <div class="panel panel-default" 
                      <?php if($team->order != 6): ?>
						style="display: none;"
					  <?php endif; ?>
                      >
                    
                    	
			<div class="panel-heading">
					<div class="accordian-item"  style="color: #317aba;">
						<h4 class="panel-title">
					        
					          <i class="fa fa-pencil-square"></i> &nbsp;<?php echo e($team->name); ?>

					          &nbsp;
							          <?php if($progression[6]): ?>
							          <i class="fa fa-check" style="color: #7ec07b; float: right;"></i><i class="hidden-xs hidden-sm completed-info">Completed by <?php echo e($completed_by[6]); ?> @ <?php echo e(date('g:i:s A - F j, Y', strtotime($completed_at[6]))); ?></i>
							          <?php elseif(!$require[6]): ?>
							          <i class="fa fa-ban" style="color: #c4775b; float: right;"></i>
							          <?php elseif($current == 6): ?>
							          <i class="fa fa-hand-o-left" style="color: #000; float: right;"></i>
							          <?php endif; ?>
					       
					      </h4>
						      
					</div>
	                            
	        </div>
						       
			<div class="panel-body">
			
				<div class="row">
					<div class="col-lg-12">
						
						<form id="splicing" class="form-horizontal" method="post" action="/admin/projects/edit/6" enctype="multipart/form-data">
						<input type="hidden" name="_token" value="<?php echo e(csrf_token()); ?>">
						<input type="hidden" name="team" value="6">
						<input type="hidden" name="projectID" value="<?php echo e($project->id); ?>">
						<div class="form-group">

							<div class="col-sm-12 col-md-4 morePadding morePadding2" onclick="inputFocus('serving_office')">
								<input type="text" class="form-control" id="serving_office" name="serving_office" value="<?php echo e(old('serving_office') ? old('serving_office') : $project->serving_office); ?>" title="Serving Office">
								<span id="serving_office-label" class="label-text">Serving Office</span>	
							</div>
							<div class="col-sm-12 col-md-4 morePadding morePadding2" onclick="inputFocus('fiber_port')">
								<input type="text" class="form-control" id="fiber_port" name="fiber_port" value="<?php echo e(old('fiber_port') ? old('fiber_port') : $project->fiber_port); ?>" title="Fiber Port">
								<span id="fiber_port-label" class="label-text">Fiber Port</span>	
							</div>
							<div class="col-sm-12 col-md-4 morePadding morePadding2" onclick="inputFocus('assigned_tech')">
								<select class="form-control" id="assigned_tech" name="assigned_tech"  title="assigned_tech">
									<option id="assigned_tech_option"></option>
									<?php foreach($techs6 as $tech): ?>
									<option value="<?php echo e(Auth::user()->find($tech->user)->id); ?>"
									<?php if($assigned_current[6] == $tech->user): ?> 
										<?php echo e('selected'); ?> 
									<?php endif; ?>
									><?php echo e(Auth::user()->find($tech->user)->name); ?></option>
									<?php endforeach; ?>
								</select>
								<span id="assigned_tech-label" 
								<?php if($order_type): ?>
								class="xlabel-text hasValue"
								<?php else: ?>
								class="label-text"
								<?php endif; ?>
								>Assigned Tech</span>	
							</div>
						</div>
						<div class="form-group">
							<div class="col-sm-12 col-md-8 morePadding morePadding2">
								<textarea class="form-control"name="notes" title="Notes" placeholder="Notes"><?php echo e(old('notes')); ?></textarea>
							</div>
							<div class="col-sm-12 col-md-4 morePadding morePadding2" >
								<input type="file" class="form-control" name="attachment" value="<?php echo e(old('attachment')); ?>" title="Attachment">
								<span class="xlabel-text hasValue">Attachment</span>	
							</div>
						</div>
						<div class="form-group">
							<div class="col-sm-12 col-md-8 morePadding morePadding2">
								<input type="submit" class="btn btn-primary" name="submit" value="Save">
							</div>
							<?php if($progression[6]): ?>
							<div class="col-sm-12 col-md-4 morePadding morePadding2">
								<div class="btn btn-primary" style=" background-color: green; float: right; opacity: .5; cursor: default;"><i class="fa fa-check"></i></div>
							</div>
							<?php elseif($current == 6): ?>
							<div class="col-sm-12 col-md-4 morePadding morePadding2">
								<input type="submit" class="btn btn-primary" name="submit" value="Complete" style="float: right;">
							</div>
							<?php else: ?>
							<div class="col-sm-12 col-md-4 morePadding morePadding2">
							</div>
							<?php endif; ?>

						</div>
					</form>
						<?php foreach($notes as $note): ?>
							<?php if($note['team'] == 6): ?>
							<?php $note['isNote'] = array_key_exists('note', $note) ? true : false; ?>
							<br>
							<div class="form-group">
								<div class="panel panel-default">
									<div class="panel-heading" style="background-color: <?php echo e($note['isNote'] ? '#d6e7f5' : '#d5ddf6'); ?>;">
										<h4 class="panel-title">
											<?php echo e($note['user']); ?> @ <?php echo e(date('g:i:s A - F j, Y', strtotime($note['updated_at']))); ?><i class="hidden-xs hidden-sm" style="float: right;"><?php echo e($team_object->find($note['team'])->name); ?></i>
										</h4>
									</div>
									<div class="panel-body" style="background-color: <?php echo e($note['isNote'] ? '#eaf3fa' : '#eaeefb'); ?>;">
										<div class="xcol-md-12">
											<?php if($note['isNote']): ?>
											<?php echo nl2br($note['note']); ?> 
												<?php if($note['user'] == Auth::user()->name): ?>
													&nbsp; &nbsp; 
													<a href="<?php echo e(url('uadmin/projects/note/'.$note['id'])); ?>">
														<i class="fa fa-edit"></i>
													</a>
												<?php endif; ?>
											<?php else: ?>
											<a href="/uadmin/projects/attachment/<?php echo e($note['id']); ?>" target="_blank"><?php echo e($note['file']); ?></a>
											<?php endif; ?>
										</div>
									</div>
								</div>
							</div>
							<?php endif; ?>
							<?php endforeach; ?>
					</div>
				</div>
			</div>
		</div>
 






		   <div class="panel panel-default" <?php if($team->id == 7) echo "style='display: none;'"?>>
		    <div class="panel-heading" role="tab" id="heading7" style="">
		      <h4 class="panel-title">
		        <div id="group_section7" class="accordian-item"  style="color: #317aba;"
		        role="button" data-toggle="collapse" data-parent="#accordion" 
		        href="#collapse7" aria-expanded="false" 
		        aria-controls="collapse7" onclick="chevron(7)" ondblclick="chevron(7)">
		          <i id="chevron7" class="fa fa-chevron-circle-right"></i> &nbsp;Data Center
		          &nbsp;
							          <?php if($progression[7]): ?>
							          <i class="fa fa-check" style="color: #7ec07b; float: right;"></i><i class="hidden-xs hidden-sm completed-info">Completed by <?php echo e($completed_by[7]); ?> @ <?php echo e(date('g:i:s A - F j, Y', strtotime($completed_at[7]))); ?></i>
							          <?php elseif(!$require[7]): ?>
							          <i class="fa fa-ban" style="color: #c4775b; float: right;"></i>
							          <?php elseif($current == 7): ?>
							          <i class="fa fa-hand-o-left" style="color: #000; float: right;"></i>
							          <?php endif; ?>
		        </div>
		      </h4>
		    </div>
		    <div id="collapse7" class="panel-collapse collapse" role="tabpanel" aria-labelledby="heading7">
		      <div class="panel-body">
					<div class="row">
					
						<div class="form-group">
							<div class="col-sm-12 col-md-3 morePadding morePadding2">
								<label class="control-label moveOver"><?php echo e($project->ready_to_bill ? date('Y-m-d', strtotime($project->ready_to_bill)) : ''); ?>&nbsp;</label>
								<span class="hasValue">Ready To Bill Date</span>	
							</div>
							<div class="col-sm-12 col-md-3 morePadding morePadding2">
								<label class="control-label moveOver"><?php echo e($project->rack_size); ?>&nbsp;</label>
								<span class="hasValue">Rack Size</span>	
							</div>
							<div class="col-sm-12 col-md-3 morePadding morePadding2">
								<label class="control-label moveOver"><?php echo e($project->power_requirements); ?>&nbsp;</label>
								<span class="hasValue">Power Requirements</span>	
							</div>
							<div class="col-sm-12 col-md-3 morePadding morePadding2">
								<label class="control-label moveOver"><?php echo e($project->keycards); ?>&nbsp;</label>
								<span class="hasValue">Keycards Needed</span>	
							</div>

						</div>
						<div class="form-group">
							<div class="col-sm-12 col-md-3 morePadding morePadding2">
								<label class="control-label moveOver"><?php echo e($assigned_current[7] ? Auth::user()->find($assigned_current[7])->name : ' '); ?>&nbsp;</label>
								<span class="hasValue">Assigned Tech</span>	
							</div>

						</div>
						
					
						<div class="col-md-12">
							<a class="btn btn-primary" href="<?php echo e(url('uadmin/projects/edit/'.$project->id.'/7')); ?>">Edit</a>
						</div>
					</div>
					<?php foreach($notes as $note): ?>
							<?php if($note['team'] == 7): ?>
							<?php $note['isNote'] = array_key_exists('note', $note) ? true : false; ?>
							<br>
							<div class="form-group">
								<div class="panel panel-default">
									<div class="panel-heading" style="background-color: <?php echo e($note['isNote'] ? '#d6e7f5' : '#d5ddf6'); ?>;">
										<h4 class="panel-title">
											<?php echo e($note['user']); ?> @ <?php echo e(date('g:i:s A - F j, Y', strtotime($note['updated_at']))); ?><i class="hidden-xs hidden-sm" style="float: right;"><?php echo e($team_object->find($note['team'])->name); ?></i>
										</h4>
									</div>
									<div class="panel-body" style="background-color: <?php echo e($note['isNote'] ? '#eaf3fa' : '#eaeefb'); ?>;">
										<div class="xcol-md-12">
											<?php if($note['isNote']): ?>
											<?php echo nl2br($note['note']); ?> 
												<?php if($note['user'] == Auth::user()->name): ?>
													&nbsp; &nbsp; 
													<a href="<?php echo e(url('uadmin/projects/note/'.$note['id'])); ?>">
														<i class="fa fa-edit"></i>
													</a>
												<?php endif; ?>
											<?php else: ?>
											<a href="/uadmin/projects/attachment/<?php echo e($note['id']); ?>" target="_blank"><?php echo e($note['file']); ?></a>
											<?php endif; ?>
										</div>
									</div>
								</div>
							</div>
							<?php endif; ?>
							<?php endforeach; ?>
				</div>
		      </div>
		    </div>
		  	  
		  <div class="panel panel-default" 
                      <?php if($team->order != 7): ?>
						style="display: none;"
					  <?php endif; ?>
                      >
                    
                    	
			<div class="panel-heading">
					<div class="accordian-item"  style="color: #317aba;">
						<h4 class="panel-title">
					        
					          <i class="fa fa-pencil-square"></i> &nbsp;<?php echo e($team->name); ?>

					          &nbsp;
							          <?php if($progression[7]): ?>
							          <i class="fa fa-check" style="color: #7ec07b;  float: right;"></i><i class="hidden-xs hidden-sm completed-info">Completed by <?php echo e($completed_by[7]); ?> @ <?php echo e(date('g:i:s A - F j, Y', strtotime($completed_at[7]))); ?></i>
							          <?php elseif(!$require[7]): ?>
							          <i class="fa fa-ban" style="color: #c4775b; float: right;"></i>
							          <?php elseif($current == 7): ?>
							          <i class="fa fa-hand-o-left" style="color: #000; float: right;"></i>
							          <?php endif; ?>
					       
					      </h4>
						      
					</div>
	                            
	        </div>
	        
		   <div class="panel-body">
			
				<div class="row">
					<div class="col-lg-12">
						
					<form id="co" class="form-horizontal" method="post" action="/admin/projects/edit/7" enctype="multipart/form-data">
						<input type="hidden" name="_token" value="<?php echo e(csrf_token()); ?>">
						<input type="hidden" name="team" value="7">
						<input type="hidden" name="projectID" value="<?php echo e($project->id); ?>">
						
						<div class="form-group">
							<div class="col-sm-12 col-md-3 morePadding morePadding2" id="ready_to_bill_container" onclick="inputFocus('ready_to_bill0')">
								<input type="text" class="form-control date" id="ready_to_bill0" name="ready_to_bill" value="<?php echo e(old('ready_to_bill') ? old('ready_to_bill') : ($project->ready_to_bill != '' ? date('Y-m-d', strtotime($project->ready_to_bill)) : '')); ?>" title="Ready To Bill Date">
								<span id="ready_to_bill0-label" class="label-text">Ready To Bill Date</span>	
							</div>
							<div class="col-sm-12 col-md-3 morePadding morePadding2" onclick="inputFocus('rack_size')">
								<input type="text" class="form-control" id="rack_size" name="rack_size" value="<?php echo e(old('rack_size') ? old('rack_size') : $project->rack_size); ?>" title="Rack Size">
								<span id="rack_size-label" class="label-text">Rack Size</span>	
							</div>
							<div class="col-sm-12 col-md-3 morePadding morePadding2" onclick="inputFocus('power_requirements')">
								<input type="text" class="form-control" id="power_requirements" name="power_requirements" value="<?php echo e(old('power_requirements') ? old('power_requirements') : $project->power_requirements); ?>" title="Power Requirements">
								<span id="power_requirements-label" class="label-text">Power Requirements</span>	
							</div>
							<div class="col-sm-12 col-md-3 morePadding morePadding2" onclick="inputFocus('keycards')">
								<input type="text" class="form-control" id="keycards" name="keycards" value="<?php echo e(old('keycards') ? old('keycards') : $project->keycards); ?>" title="Keycards Needed">
								<span id="keycards-label" class="label-text">Keycards Needed</span>	
							</div>
						</div>
						<div class="form-group">
							<div class="col-sm-12 col-md-3 morePadding morePadding2" onclick="inputFocus('assigned_tech')">
								<select class="form-control" id="assigned_tech" name="assigned_tech"  title="assigned_tech">
									<option id="assigned_tech_option"></option>
									<?php foreach($techs7 as $tech): ?>
									<option value="<?php echo e(Auth::user()->find($tech->user)->id); ?>"
									<?php if($assigned_current[7] == $tech->user): ?> 
										<?php echo e('selected'); ?> 
									<?php endif; ?>
									><?php echo e(Auth::user()->find($tech->user)->name); ?></option>
									<?php endforeach; ?>
								</select>
								<span id="assigned_tech-label" 
								<?php if($order_type): ?>
								class="xlabel-text hasValue"
								<?php else: ?>
								class="label-text"
								<?php endif; ?>
								>Assigned Tech</span>	
							</div>
							<div class="col-sm-12 col-md-5 morePadding morePadding2">
								<textarea class="form-control" name="notes" title="Notes" placeholder="Notes"><?php echo e(old('notes')); ?></textarea>
							</div>
							<div class="col-sm-12 col-md-4 morePadding morePadding2">
								<input type="file" class="form-control"name="attachment" value="<?php echo e(old('attachment')); ?>" title="Attachment">
								<span class="xlabel-text hasValue">Attachment</span>	
							</div>
						</div>
						<div class="form-group">
							<div class="col-sm-12 col-md-8 morePadding morePadding2">
								<input type="submit" class="btn btn-primary" name="submit" value="Save">
							</div>
							<?php if($progression[7]): ?>
							<div class="col-sm-12 col-md-4 morePadding morePadding2">
								<div class="btn btn-primary" style=" background-color: green; float: right; opacity: .5; cursor: default;"><i class="fa fa-check"></i></div>
							</div>
							<?php elseif($current == 7): ?>
							<div class="col-sm-12 col-md-4 morePadding morePadding2">
								<input type="submit" class="btn btn-primary" name="submit" value="Complete" style="float: right;">
							</div>
							<?php else: ?>
							<div class="col-sm-12 col-md-4 morePadding morePadding2">
							</div>
							<?php endif; ?>

						</div>
					</form>
						<?php foreach($notes as $note): ?>
							<?php if($note['team'] == 7): ?>
							<?php $note['isNote'] = array_key_exists('note', $note) ? true : false; ?>
							<br>
							<div class="form-group">
								<div class="panel panel-default">
									<div class="panel-heading" style="background-color: <?php echo e($note['isNote'] ? '#d6e7f5' : '#d5ddf6'); ?>;">
										<h4 class="panel-title">
											<?php echo e($note['user']); ?> @ <?php echo e(date('g:i:s A - F j, Y', strtotime($note['updated_at']))); ?><i class="hidden-xs hidden-sm" style="float: right;"><?php echo e($team_object->find($note['team'])->name); ?></i>
										</h4>
									</div>
									<div class="panel-body" style="background-color: <?php echo e($note['isNote'] ? '#eaf3fa' : '#eaeefb'); ?>;">
										<div class="xcol-md-12">
											<?php if($note['isNote']): ?>
											<?php echo nl2br($note['note']); ?> 
												<?php if($note['user'] == Auth::user()->name): ?>
													&nbsp; &nbsp; 
													<a href="<?php echo e(url('uadmin/projects/note/'.$note['id'])); ?>">
														<i class="fa fa-edit"></i>
													</a>
												<?php endif; ?>
											<?php else: ?>
											<a href="/uadmin/projects/attachment/<?php echo e($note['id']); ?>" target="_blank"><?php echo e($note['file']); ?></a>
											<?php endif; ?>
										</div>
									</div>
								</div>
							</div>
							<?php endif; ?>
							<?php endforeach; ?>
					</div>
				</div>
			</div>
		</div>










		  <div class="panel panel-default" <?php if($team->id ==8) echo "style='display: none;'"?>>
		    <div class="panel-heading" role="tab" id="heading8" style="">
		      <h4 class="panel-title">
		        <div id="group_section8" class="accordian-item"  style="color: #317aba;"
		        role="button" data-toggle="collapse" data-parent="#accordion" 
		        href="#collapse8" aria-expanded="false" 
		        aria-controls="collapse8" onclick="chevron(8)" ondblclick="chevron(8)">
		          <i id="chevron8" class="fa fa-chevron-circle-right"></i> &nbsp;CPE / Network Programming
		          &nbsp;
							          <?php if($progression[8]): ?>
							          <i class="fa fa-check" style="color: #7ec07b; float: right;"></i><i class="hidden-xs hidden-sm completed-info">Completed by <?php echo e($completed_by[8]); ?> @ <?php echo e(date('g:i:s A - F j, Y', strtotime($completed_at[8]))); ?></i>
							          <?php elseif(!$require[8]): ?>
							          <i class="fa fa-ban" style="color: #c4775b; float: right;"></i>
							          <?php elseif($current == 8): ?>
							          <i class="fa fa-hand-o-left" style="color: #000; float: right;"></i>
							          <?php endif; ?>
		        </div>
		      </h4>
		    </div>
		    <div id="collapse8" class="panel-collapse collapse" role="tabpanel" aria-labelledby="heading7">
		      <div class="panel-body">
					<div class="row">
					
						<div class="form-group">
							<div class="col-sm-12 col-md-4 morePadding morePadding2">
								<label class="control-label moveOver"><?php echo e($project->circuit_provisioned ? date('Y-m-d', strtotime($project->circuit_provisioned)) : ''); ?>&nbsp;</label>
								<span class="hasValue">Circuit Provisioned</span>	
							</div>
							<div class="col-sm-12 col-md-4 morePadding morePadding2">
								<label class="control-label moveOver"><?php echo e($project->ready_to_bill ? date('Y-m-d', strtotime($project->ready_to_bill)) : ''); ?>&nbsp;</label>
								<span class="hasValue">Ready To Bill Date</span>	
							</div>
							<div class="col-sm-12 col-md-4 morePadding morePadding2">
								<label class="control-label moveOver"><?php echo e($assigned_current[8] ? Auth::user()->find($assigned_current[8])->name : ' '); ?>&nbsp;</label>
								<span class="hasValue">Assigned Tech</span>	
							</div>
						</div>
					
					
						<div class="col-md-12">
							<a class="btn btn-primary" href="<?php echo e(url('uadmin/projects/edit/'.$project->id.'/8')); ?>">Edit</a>
						</div>
					</div>
					<?php foreach($notes as $note): ?>
							<?php if($note['team'] == 8): ?>
							<?php $note['isNote'] = array_key_exists('note', $note) ? true : false; ?>
							<br>
							<div class="form-group">
								<div class="panel panel-default">
									<div class="panel-heading" style="background-color: <?php echo e($note['isNote'] ? '#d6e7f5' : '#d5ddf6'); ?>;">
										<h4 class="panel-title">
											<?php echo e($note['user']); ?> @ <?php echo e(date('g:i:s A - F j, Y', strtotime($note['updated_at']))); ?><i class="hidden-xs hidden-sm" style="float: right;"><?php echo e($team_object->find($note['team'])->name); ?></i>
										</h4>
									</div>
									<div class="panel-body" style="background-color: <?php echo e($note['isNote'] ? '#eaf3fa' : '#eaeefb'); ?>;">
										<div class="xcol-md-12">
											<?php if($note['isNote']): ?>
											<?php echo nl2br($note['note']); ?> 
												<?php if($note['user'] == Auth::user()->name): ?>
													&nbsp; &nbsp; 
													<a href="<?php echo e(url('uadmin/projects/note/'.$note['id'])); ?>">
														<i class="fa fa-edit"></i>
													</a>
												<?php endif; ?>
											<?php else: ?>
											<a href="/uadmin/projects/attachment/<?php echo e($note['id']); ?>" target="_blank"><?php echo e($note['file']); ?></a>
											<?php endif; ?>
										</div>
									</div>
								</div>
							</div>
							<?php endif; ?>
							<?php endforeach; ?>
				</div>
		      </div>
		    </div>
		  	  
		  <div class="panel panel-default" 
                      <?php if($team->order != 8): ?>
						style="display: none;"
					  <?php endif; ?>
                      >
                    
                    	
			<div class="panel-heading">
					<div class="accordian-item"  style="color: #317aba;">
						<h4 class="panel-title">
					        
					          <i class="fa fa-pencil-square"></i> &nbsp;<?php echo e($team->name); ?>

					          &nbsp;
							          <?php if($progression[8]): ?>
							          <i class="fa fa-check" style="color: #7ec07b;  float: right;"></i><i class="hidden-xs hidden-sm completed-info">Completed by <?php echo e($completed_by[8]); ?> @ <?php echo e(date('g:i:s A - F j, Y', strtotime($completed_at[8]))); ?></i>
							          <?php elseif(!$require[8]): ?>
							          <i class="fa fa-ban" style="color: #c4775b; float: right;"></i>
							          <?php elseif($current == 8): ?>
							          <i class="fa fa-hand-o-left" style="color: #000; float: right;"></i>
							          <?php endif; ?>
					       
					      </h4>
						      
					</div>
	                            
	        </div>
						       
			<div class="panel-body">
			
				<div class="row">
					<div class="col-lg-12">
						
					<form id="co" class="form-horizontal" method="post" action="/admin/projects/edit/8" enctype="multipart/form-data">
						<input type="hidden" name="_token" value="<?php echo e(csrf_token()); ?>">
						<input type="hidden" name="team" value="8">
						<input type="hidden" name="projectID" value="<?php echo e($project->id); ?>">
						
						<div class="form-group">
							<div class="col-sm-12 col-md-3 morePadding morePadding2" id="ready_to_bill_container" onclick="inputFocus('circuit_provisioned')">
								<input type="text" class="form-control date" id="circuit_provisioned" name="circuit_provisioned" value="<?php echo e(old('circuit_provisioned') ? old('circuit_provisioned') : ($project->circuit_provisioned != '' ? date('Y-m-d', strtotime($project->circuit_provisioned)) : '')); ?>" title="Circuit Provisioned Date">
								<span id="circuit_provisioned-label" class="label-text">Circuit Provisioned Date</span>	
							</div>
							<div class="col-sm-12 col-md-3 morePadding morePadding2" id="ready_to_bill_container" onclick="inputFocus('ready_to_bill1')">
								<input type="text" class="form-control date" id="ready_to_bill1" name="ready_to_bill" value="<?php echo e(old('ready_to_bill') ? old('ready_to_bill') : ($project->ready_to_bill != '' ? date('Y-m-d', strtotime($project->ready_to_bill)) : '')); ?>" title="Ready To Bill Date">
								<span id="ready_to_bill1-label" class="label-text">Ready To Bill Date</span>	
							</div>
							<div class="col-sm-12 col-md-3 morePadding morePadding2" onclick="inputFocus('assigned_tech8')">
								<select class="form-control" id="assigned_tech8" name="assigned_tech"  title="assigned_tech">
									<option id="assigned_tech_option"></option>
									<?php foreach($techs8 as $tech): ?>
									<option value="<?php echo e(Auth::user()->find($tech->user)->id); ?>"
									<?php if($assigned_current[8] == $tech->user): ?> 
										<?php echo e('selected'); ?> 
									<?php endif; ?>
									><?php echo e(Auth::user()->find($tech->user)->name); ?></option>
									<?php endforeach; ?>
								</select>
								<span id="assigned_tech8-label" 
								<?php if($order_type): ?>
								class="xlabel-text hasValue"
								<?php else: ?>
								class="label-text"
								<?php endif; ?>
								>Assigned Tech</span>	
							</div>
							<div class="col-sm-12 col-md-3 morePadding morePadding2">
								<input type="file" class="form-control" name="attachment" value="<?php echo e(old('attachment')); ?>" title="Attachment">
								<span class="xlabel-text hasValue">Attachment</span>	
							</div>
						</div>
						<div class="form-group">
							<div class="col-sm-12 col-md-12 morePadding morePadding2">
								<textarea class="form-control" name="notes" title="Notes" placeholder="Notes"><?php echo e(old('notes')); ?></textarea>
							</div>
						</div>
						<div class="form-group">
							<div class="col-sm-12 col-md-8 morePadding morePadding2">
								<input type="submit" class="btn btn-primary" name="submit" value="Save">
							</div>
							<?php if($progression[8]): ?>
							<div class="col-sm-12 col-md-4 morePadding morePadding2">
								<div class="btn btn-primary" style=" background-color: green; float: right; opacity: .5; cursor: default;"><i class="fa fa-check"></i></div>
							</div>
							<?php elseif($current == 8 && $project->circuit_provisioned): ?>
							<div class="col-sm-12 col-md-4 morePadding morePadding2">
								<input type="submit" class="btn btn-primary" name="submit" value="Complete" style="float: right;">
							</div>
							<?php else: ?>
							<div class="col-sm-12 col-md-4 morePadding morePadding2">
							</div>
							<?php endif; ?>

						</div>
					</form>
						<?php foreach($notes as $note): ?>
							<?php if($note['team'] == 8): ?>
							<?php $note['isNote'] = array_key_exists('note', $note) ? true : false; ?>
							<br>
							<div class="form-group">
								<div class="panel panel-default">
									<div class="panel-heading" style="background-color: <?php echo e($note['isNote'] ? '#d6e7f5' : '#d5ddf6'); ?>;">
										<h4 class="panel-title">
											<?php echo e($note['user']); ?> @ <?php echo e(date('g:i:s A - F j, Y', strtotime($note['updated_at']))); ?><i class="hidden-xs hidden-sm" style="float: right;"><?php echo e($team_object->find($note['team'])->name); ?></i>
										</h4>
									</div>
									<div class="panel-body" style="background-color: <?php echo e($note['isNote'] ? '#eaf3fa' : '#eaeefb'); ?>;">
										<div class="xcol-md-12">
											<?php if($note['isNote']): ?>
											<?php echo nl2br($note['note']); ?> 
												<?php if($note['user'] == Auth::user()->name): ?>
													&nbsp; &nbsp; 
													<a href="<?php echo e(url('uadmin/projects/note/'.$note['id'])); ?>">
														<i class="fa fa-edit"></i>
													</a>
												<?php endif; ?>
											<?php else: ?>
											<a href="/uadmin/projects/attachment/<?php echo e($note['id']); ?>" target="_blank"><?php echo e($note['file']); ?></a>
											<?php endif; ?>
										</div>
									</div>
								</div>
							</div>
							<?php endif; ?>
							<?php endforeach; ?>
					</div>
				</div>
			</div>
		</div>

		  

		   <div class="panel panel-default" <?php if($team->id == 9) echo "style='display: none;'"?>>
		    <div class="panel-heading" role="tab" id="heading9" style="">
		      <h4 class="panel-title">
		        <div id="group_section9" class="accordian-item"  style="color: #317aba;"
		        role="button" data-toggle="collapse" data-parent="#accordion" 
		        href="#collapse9" aria-expanded="false" 
		        aria-controls="collapse9" onclick="chevron(9)" ondblclick="chevron(9)">
		          <i id="chevron9" class="fa fa-chevron-circle-right"></i> &nbsp;Switch Programming / Number Assign
		          &nbsp;
							          <?php if($progression[9]): ?>
							          <i class="fa fa-check" style="color: #7ec07b; float: right;"></i><i class="hidden-xs hidden-sm completed-info">Completed by <?php echo e($completed_by[9]); ?> @ <?php echo e(date('g:i:s A - F j, Y', strtotime($completed_at[9]))); ?></i>
							          <?php elseif(!$require[9]): ?>
							          <i class="fa fa-ban" style="color: #c4775b; float: right;"></i>
							          <?php elseif($current == 9): ?>
							          <i class="fa fa-hand-o-left" style="color: #000; float: right;"></i>
							          <?php endif; ?>
		        </div>
		      </h4>
		    </div>
		    <div id="collapse9" class="panel-collapse collapse" role="tabpanel" aria-labelledby="heading9">
		      <div class="panel-body">
					<div class="row">
					
						<div class="form-group">
							<div class="col-sm-12 col-md-4 morePadding morePadding2">
								<label class="control-label moveOver"><?php echo e($project->ready_to_bill ? date('Y-m-d', strtotime($project->ready_to_bill)) : ''); ?>&nbsp;</label>
								<span class="hasValue">Ready To Bill Date</span>	
							</div>
						</div>
					
					
						<div class="col-md-12">
							<a class="btn btn-primary" href="<?php echo e(url('uadmin/projects/edit/'.$project->id.'/9')); ?>">Edit</a>
						</div>
					</div>
					<?php foreach($notes as $note): ?>
							<?php if($note['team'] == 9): ?>
							<?php $note['isNote'] = array_key_exists('note', $note) ? true : false; ?>
							<br>
							<div class="form-group">
								<div class="panel panel-default">
									<div class="panel-heading" style="background-color: <?php echo e($note['isNote'] ? '#d6e7f5' : '#d5ddf6'); ?>;">
										<h4 class="panel-title">
											<?php echo e($note['user']); ?> @ <?php echo e(date('g:i:s A - F j, Y', strtotime($note['updated_at']))); ?><i class="hidden-xs hidden-sm" style="float: right;"><?php echo e($team_object->find($note['team'])->name); ?></i>
										</h4>
									</div>
									<div class="panel-body" style="background-color: <?php echo e($note['isNote'] ? '#eaf3fa' : '#eaeefb'); ?>;">
										<div class="xcol-md-12">
											<?php if($note['isNote']): ?>
											<?php echo nl2br($note['note']); ?> 
												<?php if($note['user'] == Auth::user()->name): ?>
													&nbsp; &nbsp; 
													<a href="<?php echo e(url('uadmin/projects/note/'.$note['id'])); ?>">
														<i class="fa fa-edit"></i>
													</a>
												<?php endif; ?>
											<?php else: ?>
											<a href="/uadmin/projects/attachment/<?php echo e($note['id']); ?>" target="_blank"><?php echo e($note['file']); ?></a>
											<?php endif; ?>
										</div>
									</div>
								</div>
							</div>
							<?php endif; ?>
							<?php endforeach; ?>
				</div>
		      </div>
		    </div>
		  	  
		  <div class="panel panel-default" 
                      <?php if($team->order != 9): ?>
						style="display: none;"
					  <?php endif; ?>
                      >
                    
                    	
			<div class="panel-heading">
					<div class="accordian-item"  style="color: #317aba;">
						<h4 class="panel-title">
					        
					          <i class="fa fa-pencil-square"></i> &nbsp;<?php echo e($team->name); ?>

					          &nbsp;
							          <?php if($progression[9]): ?>
							          <i class="fa fa-check" style="color: #7ec07b;  float: right;"></i><i class="hidden-xs hidden-sm completed-info">Completed by <?php echo e($completed_by[9]); ?> @ <?php echo e(date('g:i:s A - F j, Y', strtotime($completed_at[9]))); ?></i>
							          <?php elseif(!$require[9]): ?>
							          <i class="fa fa-ban" style="color: #c4775b; float: right;"></i>
							          <?php elseif($current == 9): ?>
							          <i class="fa fa-hand-o-left" style="color: #000; float: right;"></i>
							          <?php endif; ?>
					       
					      </h4>
						      
					</div>
	                            
	        </div>
	        
		   <div class="panel-body">
			
				<div class="row">
					<div class="col-lg-12">
						
					<form id="co" class="form-horizontal" method="post" action="/admin/projects/edit/9" enctype="multipart/form-data">
						<input type="hidden" name="_token" value="<?php echo e(csrf_token()); ?>">
						<input type="hidden" name="team" value="9">
						<input type="hidden" name="projectID" value="<?php echo e($project->id); ?>">
						
						<div class="form-group">
							<div class="col-sm-12 col-md-2 morePadding morePadding2" id="ready_to_bill_container" onclick="inputFocus('ready_to_bill2')">
								<input type="text" class="form-control date" id="ready_to_bill2" name="ready_to_bill" value="<?php echo e(old('ready_to_bill') ? old('ready_to_bill') : ($project->ready_to_bill != '' ? date('Y-m-d', strtotime($project->ready_to_bill)) : '')); ?>" title="Ready To Bill Date">
								<span id="ready_to_bill2-label" class="label-text">Ready To Bill Date</span>	
							</div>
							<div class="col-sm-12 col-md-6 morePadding morePadding2">
								<input type="file" class="form-control"name="attachment" value="<?php echo e(old('attachment')); ?>" title="Attachment">
								<span class="xlabel-text hasValue">Attachment</span>	
							</div>
						</div>
						<div class="form-group">
							<div class="col-sm-12 col-md-12 morePadding morePadding2">
								<textarea class="form-control" name="notes" title="Notes" placeholder="Notes"><?php echo e(old('notes')); ?></textarea>
							</div>
						</div>
						<div class="form-group">
							<div class="col-sm-12 col-md-8 morePadding morePadding2">
								<input type="submit" class="btn btn-primary" name="submit" value="Save">
							</div>
							<?php if($progression[9]): ?>
							<div class="col-sm-12 col-md-4 morePadding morePadding2">
								<div class="btn btn-primary" style=" background-color: green; float: right; opacity: .5; cursor: default;"><i class="fa fa-check"></i></div>
							</div>
							<?php elseif($current == 9): ?>
							<div class="col-sm-12 col-md-4 morePadding morePadding2">
								<input type="submit" class="btn btn-primary" name="submit" value="Complete" style="float: right;">
							</div>
							<?php else: ?>
							<div class="col-sm-12 col-md-4 morePadding morePadding2">
							</div>
							<?php endif; ?>

						</div>
					</form>
						<?php foreach($notes as $note): ?>
							<?php if($note['team'] == 9): ?>
							<?php $note['isNote'] = array_key_exists('note', $note) ? true : false; ?>
							<br>
							<div class="form-group">
								<div class="panel panel-default">
									<div class="panel-heading" style="background-color: <?php echo e($note['isNote'] ? '#d6e7f5' : '#d5ddf6'); ?>;">
										<h4 class="panel-title">
											<?php echo e($note['user']); ?> @ <?php echo e(date('g:i:s A - F j, Y', strtotime($note['updated_at']))); ?><i class="hidden-xs hidden-sm" style="float: right;"><?php echo e($team_object->find($note['team'])->name); ?></i>
										</h4>
									</div>
									<div class="panel-body" style="background-color: <?php echo e($note['isNote'] ? '#eaf3fa' : '#eaeefb'); ?>;">
										<div class="xcol-md-12">
											<?php if($note['isNote']): ?>
											<?php echo nl2br($note['note']); ?> 
												<?php if($note['user'] == Auth::user()->name): ?>
													&nbsp; &nbsp; 
													<a href="<?php echo e(url('uadmin/projects/note/'.$note['id'])); ?>">
														<i class="fa fa-edit"></i>
													</a>
												<?php endif; ?>
											<?php else: ?>
											<a href="/uadmin/projects/attachment/<?php echo e($note['id']); ?>" target="_blank"><?php echo e($note['file']); ?></a>
											<?php endif; ?>
										</div>
									</div>
								</div>
							</div>
							<?php endif; ?>
							<?php endforeach; ?>
					</div>
				</div>
			</div>
		</div>

		   <div class="panel panel-default" <?php if($team->id == 10) echo "style='display: none;'"?>>
		    <div class="panel-heading" role="tab" id="heading10" style="">
		      <h4 class="panel-title">
		        <div id="group_section10" class="accordian-item"  style="color: #317aba;"
		        role="button" data-toggle="collapse" data-parent="#accordion" 
		        href="#collapse10" aria-expanded="false" 
		        aria-controls="collapse10" onclick="chevron(10)" ondblclick="chevron(10)">
		          <i id="chevron10" class="fa fa-chevron-circle-right"></i> &nbsp;Hosted Voice / Customer Training
		          &nbsp;
							          <?php if($progression[10]): ?>
							          <i class="fa fa-check" style="color: #7ec07b; float: right;"></i><i class="hidden-xs hidden-sm completed-info">Completed by <?php echo e($completed_by[10]); ?> @ <?php echo e(date('g:i:s A - F j, Y', strtotime($completed_at[10]))); ?></i>
							          <?php elseif(!$require[10]): ?>
							          <i class="fa fa-ban" style="color: #c4775b; float: right;"></i>
							          <?php elseif($current == 10): ?>
							          <i class="fa fa-hand-o-left" style="color: #000; float: right;"></i>
							          <?php endif; ?>
		        </div>
		      </h4>
		    </div>
		    
		    <div id="collapse10" class="panel-collapse collapse" role="tabpanel" aria-labelledby="heading10">
		      <div class="panel-body">
					<div class="row">
					
						<div class="form-group">
							<div class="col-sm-12 col-md-4 morePadding morePadding2">
								<label class="control-label moveOver"><?php echo e($project->ready_to_bill ? date('Y-m-d', strtotime($project->ready_to_bill)) : ''); ?>&nbsp;</label>
								<span class="hasValue">Ready To Bill Date</span>	
							</div>
							<div class="col-sm-12 col-md-4 morePadding morePadding2">
								<label class="control-label moveOver"><?php echo e($assigned_current[10] ? Auth::user()->find($assigned_current[10])->name : ' '); ?>&nbsp;</label>
								<span class="hasValue">Assigned Tech</span>	
							</div>
						</div>
					
					
						<div class="col-md-12">
							<a class="btn btn-primary" href="<?php echo e(url('uadmin/projects/edit/'.$project->id.'/10')); ?>">Edit</a>
						</div>
					</div>
					<?php foreach($notes as $note): ?>
							<?php if($note['team'] == 10): ?>
							<?php $note['isNote'] = array_key_exists('note', $note) ? true : false; ?>
							<br>
							<div class="form-group">
								<div class="panel panel-default">
									<div class="panel-heading" style="background-color: <?php echo e($note['isNote'] ? '#d6e7f5' : '#d5ddf6'); ?>;">
										<h4 class="panel-title">
											<?php echo e($note['user']); ?> @ <?php echo e(date('g:i:s A - F j, Y', strtotime($note['updated_at']))); ?><i class="hidden-xs hidden-sm" style="float: right;"><?php echo e($team_object->find($note['team'])->name); ?></i>
										</h4>
									</div>
									<div class="panel-body" style="background-color: <?php echo e($note['isNote'] ? '#eaf3fa' : '#eaeefb'); ?>;">
										<div class="xcol-md-12">
											<?php if($note['isNote']): ?>
											<?php echo nl2br($note['note']); ?> 
												<?php if($note['user'] == Auth::user()->name): ?>
													&nbsp; &nbsp; 
													<a href="<?php echo e(url('uadmin/projects/note/'.$note['id'])); ?>">
														<i class="fa fa-edit"></i>
													</a>
												<?php endif; ?>
											<?php else: ?>
											<a href="/uadmin/projects/attachment/<?php echo e($note['id']); ?>" target="_blank"><?php echo e($note['file']); ?></a>
											<?php endif; ?>
										</div>
									</div>
								</div>
							</div>
							<?php endif; ?>
							<?php endforeach; ?>
				</div>
		      </div>
		    </div>
		  	  
		   <div class="panel panel-default" 
                      <?php if($team->order != 10): ?>
						style="display: none;"
					  <?php endif; ?>
                      >
                    
                    	
			<div class="panel-heading">
					<div class="accordian-item"  style="color: #317aba;">
						<h4 class="panel-title">
					        
					          <i class="fa fa-pencil-square"></i> &nbsp;<?php echo e($team->name); ?>

					          &nbsp;
							          <?php if($progression[10]): ?>
							          <i class="fa fa-check" style="color: #7ec07b;  float: right;"></i><i class="hidden-xs hidden-sm completed-info">Completed by <?php echo e($completed_by[10]); ?> @ <?php echo e(date('g:i:s A - F j, Y', strtotime($completed_at[10]))); ?></i>
							          <?php elseif(!$require[10]): ?>
							          <i class="fa fa-ban" style="color: #c4775b; float: right;"></i>
							          <?php elseif($current == 10): ?>
							          <i class="fa fa-hand-o-left" style="color: #000; float: right;"></i>
							          <?php endif; ?>
					       
					      </h4>
						      
					</div>
	                            
	        </div>
						       
			<div class="panel-body">
			
				<div class="row">
					<div class="col-lg-12">
						
					<form id="co" class="form-horizontal" method="post" action="/admin/projects/edit/10" enctype="multipart/form-data">
						<input type="hidden" name="_token" value="<?php echo e(csrf_token()); ?>">
						<input type="hidden" name="team" value="10">
						<input type="hidden" name="projectID" value="<?php echo e($project->id); ?>">
						
						<div class="form-group">
							<div class="col-sm-12 col-md-4 morePadding morePadding2" id="ready_to_bill_container" onclick="inputFocus('ready_to_bill3')">
								<input type="text" class="form-control date" id="ready_to_bill3" name="ready_to_bill" value="<?php echo e(old('ready_to_bill') ? old('ready_to_bill') : ($project->ready_to_bill != '' ? date('Y-m-d', strtotime($project->ready_to_bill)) : '')); ?>" title="Ready To Bill Date">
								<span id="ready_to_bill3-label" class="label-text">Ready To Bill Date</span>	
							</div>
							<div class="col-sm-12 col-md-4 morePadding morePadding2" onclick="inputFocus('assigned_tech10')">
								<select class="form-control" id="assigned_tech10" name="assigned_tech"  title="assigned_tech">
									<option id="assigned_tech_option"></option>
									<?php foreach($techs10 as $tech): ?>
									<option value="<?php echo e(Auth::user()->find($tech->user)->id); ?>"
									<?php if($assigned_current[10] == $tech->user): ?> 
										<?php echo e('selected'); ?> 
									<?php endif; ?>
									><?php echo e(Auth::user()->find($tech->user)->name); ?></option>
									<?php endforeach; ?>
								</select>
								<span id="assigned_tech10-label" 
								<?php if($order_type): ?>
								class="xlabel-text hasValue"
								<?php else: ?>
								class="label-text"
								<?php endif; ?>
								>Assigned Tech</span>	
							</div>
							<div class="col-sm-12 col-md-4 morePadding morePadding2">
								<input type="file" class="form-control"name="attachment" value="<?php echo e(old('attachment')); ?>" title="Attachment">
								<span class="xlabel-text hasValue">Attachment</span>	
							</div>
						</div>
						<div class="form-group">
							<div class="col-sm-12 col-md-12 morePadding morePadding2">
								<textarea class="form-control" name="notes" title="Notes" placeholder="Notes"><?php echo e(old('notes')); ?></textarea>
							</div>
						</div>
						<div class="form-group">
							<div class="col-sm-12 col-md-8 morePadding morePadding2">
								<input type="submit" class="btn btn-primary" name="submit" value="Save">
							</div>
							<?php if($progression[10]): ?>
							<div class="col-sm-12 col-md-4 morePadding morePadding2">
								<div class="btn btn-primary" style=" background-color: green; float: right; opacity: .5; cursor: default;"><i class="fa fa-check"></i></div>
							</div>
							<?php elseif($current == 10): ?>
							<div class="col-sm-12 col-md-4 morePadding morePadding2">
								<input type="submit" class="btn btn-primary" name="submit" value="Complete" style="float: right;">
							</div>
							<?php else: ?>
							<div class="col-sm-12 col-md-4 morePadding morePadding2">
							</div>
							<?php endif; ?>

						</div>
					</form>
						<?php foreach($notes as $note): ?>
							<?php if($note['team'] == 10): ?>
							<?php $note['isNote'] = array_key_exists('note', $note) ? true : false; ?>
							<br>
							<div class="form-group">
								<div class="panel panel-default">
									<div class="panel-heading" style="background-color: <?php echo e($note['isNote'] ? '#d6e7f5' : '#d5ddf6'); ?>;">
										<h4 class="panel-title">
											<?php echo e($note['user']); ?> @ <?php echo e(date('g:i:s A - F j, Y', strtotime($note['updated_at']))); ?><i class="hidden-xs hidden-sm" style="float: right;"><?php echo e($team_object->find($note['team'])->name); ?></i>
										</h4>
									</div>
									<div class="panel-body" style="background-color: <?php echo e($note['isNote'] ? '#eaf3fa' : '#eaeefb'); ?>;">
										<div class="xcol-md-12">
											<?php if($note['isNote']): ?>
											<?php echo nl2br($note['note']); ?> 
												<?php if($note['user'] == Auth::user()->name): ?>
													&nbsp; &nbsp; 
													<a href="<?php echo e(url('uadmin/projects/note/'.$note['id'])); ?>">
														<i class="fa fa-edit"></i>
													</a>
												<?php endif; ?>
											<?php else: ?>
											<a href="/uadmin/projects/attachment/<?php echo e($note['id']); ?>" target="_blank"><?php echo e($note['file']); ?></a>
											<?php endif; ?>
										</div>
									</div>
								</div>
							</div>
							<?php endif; ?>
							<?php endforeach; ?>
					</div>
				</div>
			</div>
		</div>

		   <div class="panel panel-default" <?php if($team->id == 11) echo "style='display: none;'"?>>
		    <div class="panel-heading" role="tab" id="heading11" style="">
		      <h4 class="panel-title">
		        <div id="group_section11" class="accordian-item"  style="color: #317aba;"
		        role="button" data-toggle="collapse" data-parent="#accordion" 
		        href="#collapse11" aria-expanded="false" 
		        aria-controls="collapse11" onclick="chevron(11)" ondblclick="chevron(11)">
		          <i id="chevron11" class="fa fa-chevron-circle-right"></i> &nbsp;Number Porting
		          &nbsp;
							          <?php if($progression[11]): ?>
							          <i class="fa fa-check" style="color: #7ec07b; float: right;"></i><i class="hidden-xs hidden-sm completed-info">Completed by <?php echo e($completed_by[11]); ?> @ <?php echo e(date('g:i:s A - F j, Y', strtotime($completed_at[11]))); ?></i>
							          <?php elseif(!$require[11]): ?>
							          <i class="fa fa-ban" style="color: #c4775b; float: right;"></i>
							          <?php elseif($current == 11): ?>
							          <i class="fa fa-hand-o-left" style="color: #000; float: right;"></i>
							          <?php endif; ?>
		        </div>
		      </h4>
		    </div>
		    <div id="collapse11" class="panel-collapse collapse" role="tabpanel" aria-labelledby="heading7">
		      <div class="panel-body">
					<div class="row">
					
						<div class="form-group">
							<div class="col-sm-12 col-md-4 morePadding morePadding2">
								<label class="control-label moveOver"><?php echo e($project->ready_to_bill ? date('Y-m-d', strtotime($project->ready_to_bill)) : ''); ?>&nbsp;</label>
								<span class="hasValue">Ready To Bill Date</span>	
							</div>
						</div>
					
					
						<div class="col-md-12">
							<a class="btn btn-primary" href="<?php echo e(url('uadmin/projects/edit/'.$project->id.'/11')); ?>">Edit</a>
						</div>
					</div>
					<?php foreach($notes as $note): ?>
							<?php if($note['team'] == 11): ?>
							<?php $note['isNote'] = array_key_exists('note', $note) ? true : false; ?>
							<br>
							<div class="form-group">
								<div class="panel panel-default">
									<div class="panel-heading" style="background-color: <?php echo e($note['isNote'] ? '#d6e7f5' : '#d5ddf6'); ?>;">
										<h4 class="panel-title">
											<?php echo e($note['user']); ?> @ <?php echo e(date('g:i:s A - F j, Y', strtotime($note['updated_at']))); ?><i class="hidden-xs hidden-sm" style="float: right;"><?php echo e($team_object->find($note['team'])->name); ?></i>
										</h4>
									</div>
									<div class="panel-body" style="background-color: <?php echo e($note['isNote'] ? '#eaf3fa' : '#eaeefb'); ?>;">
										<div class="xcol-md-12">
											<?php if($note['isNote']): ?>
											<?php echo nl2br($note['note']); ?> 
												<?php if($note['user'] == Auth::user()->name): ?>
													&nbsp; &nbsp; 
													<a href="<?php echo e(url('uadmin/projects/note/'.$note['id'])); ?>">
														<i class="fa fa-edit"></i>
													</a>
												<?php endif; ?>
											<?php else: ?>
											<a href="/uadmin/projects/attachment/<?php echo e($note['id']); ?>" target="_blank"><?php echo e($note['file']); ?></a>
											<?php endif; ?>
										</div>
									</div>
								</div>
							</div>
							<?php endif; ?>
							<?php endforeach; ?>
				</div>
		      </div>
		    </div>
		  	  
		  <div class="panel panel-default" 
                      <?php if($team->order != 11): ?>
						style="display: none;"
					  <?php endif; ?>
                      >
                    
                    	
			<div class="panel-heading">
					<div class="accordian-item"  style="color: #317aba;">
						<h4 class="panel-title">
					        
					          <i class="fa fa-pencil-square"></i> &nbsp;<?php echo e($team->name); ?>

					          &nbsp;
							          <?php if($progression[11]): ?>
							          <i class="fa fa-check" style="color: #7ec07b;  float: right;"></i><i class="hidden-xs hidden-sm completed-info">Completed by <?php echo e($completed_by[11]); ?> @ <?php echo e(date('g:i:s A - F j, Y', strtotime($completed_at[11]))); ?></i>
							          <?php elseif(!$require[11]): ?>
							          <i class="fa fa-ban" style="color: #c4775b; float: right;"></i>
							          <?php elseif($current == 11): ?>
							          <i class="fa fa-hand-o-left" style="color: #000; float: right;"></i>
							          <?php endif; ?>
					       
					      </h4>
						      
					</div>
	                            
	        </div>
						       
			<div class="panel-body">
			
				<div class="row">
					<div class="col-lg-12">
						
					<form id="co" class="form-horizontal" method="post" action="/admin/projects/edit/11" enctype="multipart/form-data">
						<input type="hidden" name="_token" value="<?php echo e(csrf_token()); ?>">
						<input type="hidden" name="team" value="11">
						<input type="hidden" name="projectID" value="<?php echo e($project->id); ?>">
						
						<div class="form-group">
							<div class="col-sm-12 col-md-2 morePadding morePadding2" id="ready_to_bill_container" onclick="inputFocus('ready_to_bill4')">
								<input type="text" class="form-control date" id="ready_to_bill4" name="ready_to_bill" value="<?php echo e(old('ready_to_bill') ? old('ready_to_bill') : ($project->ready_to_bill != '' ? date('Y-m-d', strtotime($project->ready_to_bill)) : '')); ?>" title="Ready To Bill Date">
								<span id="ready_to_bill4-label" class="label-text">Ready To Bill Date</span>	
							</div>
							<div class="col-sm-12 col-md-6 morePadding morePadding2">
								<input type="file" class="form-control"name="attachment" value="<?php echo e(old('attachment')); ?>" title="Attachment">
								<span class="xlabel-text hasValue">Attachment</span>	
							</div>
						</div>
						<div class="form-group">
							<div class="col-sm-12 col-md-12 morePadding morePadding2">
								<textarea class="form-control" name="notes" title="Notes" placeholder="Notes"><?php echo e(old('notes')); ?></textarea>
							</div>
						</div>
						<div class="form-group">
							<div class="col-sm-12 col-md-8 morePadding morePadding2">
								<input type="submit" class="btn btn-primary" name="submit" value="Save">
							</div>
							<?php if($progression[11]): ?>
							<div class="col-sm-12 col-md-4 morePadding morePadding2">
								<div class="btn btn-primary" style=" background-color: green; float: right; opacity: .5; cursor: default;"><i class="fa fa-check"></i></div>
							</div>
							<?php elseif($current == 11): ?>
							<div class="col-sm-12 col-md-4 morePadding morePadding2">
								<input type="submit" class="btn btn-primary" name="submit" value="Complete" style="float: right;">
							</div>
							<?php else: ?>
							<div class="col-sm-12 col-md-4 morePadding morePadding2">
							</div>
							<?php endif; ?>

						</div>
					</form>
						<?php foreach($notes as $note): ?>
							<?php if($note['team'] == 11): ?>
							<?php $note['isNote'] = array_key_exists('note', $note) ? true : false; ?>
							<br>
							<div class="form-group">
								<div class="panel panel-default">
									<div class="panel-heading" style="background-color: <?php echo e($note['isNote'] ? '#d6e7f5' : '#d5ddf6'); ?>;">
										<h4 class="panel-title">
											<?php echo e($note['user']); ?> @ <?php echo e(date('g:i:s A - F j, Y', strtotime($note['updated_at']))); ?><i class="hidden-xs hidden-sm" style="float: right;"><?php echo e($team_object->find($note['team'])->name); ?></i>
										</h4>
									</div>
									<div class="panel-body" style="background-color: <?php echo e($note['isNote'] ? '#eaf3fa' : '#eaeefb'); ?>;">
										<div class="xcol-md-12">
											<?php if($note['isNote']): ?>
											<?php echo nl2br($note['note']); ?> 
												<?php if($note['user'] == Auth::user()->name): ?>
													&nbsp; &nbsp; 
													<a href="<?php echo e(url('uadmin/projects/note/'.$note['id'])); ?>">
														<i class="fa fa-edit"></i>
													</a>
												<?php endif; ?>
											<?php else: ?>
											<a href="/uadmin/projects/attachment/<?php echo e($note['id']); ?>" target="_blank"><?php echo e($note['file']); ?></a>
											<?php endif; ?>
										</div>
									</div>
								</div>
							</div>
							<?php endif; ?>
							<?php endforeach; ?>
					</div>
				</div>
			</div>
		</div>

		  		  
  
		  <div class="panel panel-default" <?php if($team->id == 12) echo "style='display: none;'"?>>
		    <div class="panel-heading" role="tab" id="heading12" style="">
		      <h4 class="panel-title">
		        <div id="group_section12" class="accordian-item"  style="color: #317aba;"
		        role="button" data-toggle="collapse" data-parent="#accordion" 
		        href="#collapse12" aria-expanded="false" 
		        aria-controls="collapse12" onclick="chevron(12)" ondblclick="chevron(12)">
		          <i id="chevron12" class="fa fa-chevron-circle-right"></i> &nbsp;Billing
		          &nbsp;
							          <?php if($progression[12]): ?>
							          <i class="fa fa-check" style="color: #7ec07b; float: right;"></i><i class="hidden-xs hidden-sm completed-info">Completed by <?php echo e($completed_by[12]); ?> @ <?php echo e(date('g:i:s A - F j, Y', strtotime($completed_at[12]))); ?></i>
							          <?php elseif(!$require[12]): ?>
							          <i class="fa fa-ban" style="color: #c4775b; float: right;"></i>
							          <?php elseif($current == 12): ?>
							          <i class="fa fa-hand-o-left" style="color: #000; float: right;"></i>
							          <?php endif; ?>
		        </div>
		      </h4>
		    </div>
		    <div id="collapse12" class="panel-collapse collapse" role="tabpanel" aria-labelledby="heading12">
		      <div class="panel-body">
					<div class="row">
					
						<?php foreach($products as $product): ?>
						
						<div class="form-group">
							
							<div class="col-sm-12 col-md-6 morePadding morePadding2">
								<label class="control-label moveOver"><?php echo e($product->usp); ?>&nbsp;</label>
								<span class="hasValue">USP: <?php echo e($product->name); ?></span>	
							</div>
							<div class="col-sm-12 col-md-6 morePadding morePadding2">
								<label class="control-label moveOver"><?php echo e($product->gl); ?>&nbsp;</label>
								<span class="hasValue">GL: <?php echo e($product->name); ?></span>	
							</div>     
						</div>
						  
						<?php endforeach; ?>
						<div class="form-group">
							<div class="col-sm-12 col-md-6 morePadding morePadding2">
								<label class="control-label moveOver"><?php echo e($project->account_num); ?>&nbsp;</label>
								<span class="hasValue">Account #</span>	
							</div>
							<div class="col-sm-12 col-md-6 morePadding morePadding2">
								<label class="control-label moveOver"><?php echo e($project->circuit_num); ?>&nbsp;</label>
								<span class="hasValue">Circuit #</span>	
							</div>
						</div>
						<div class="form-group">
							<div class="col-sm-12 col-md-4 morePadding morePadding2">
								<label class="control-label moveOver"><?php echo e($assigned_current[12] ? Auth::user()->find($assigned_current[12])->name : ' '); ?>&nbsp;</label>
								<span class="hasValue">Assigned Employee</span>	
							</div>
						</div>
					
					<div class="col-md-12">
						<a class="btn btn-primary" href="<?php echo e(url('uadmin/projects/edit/'.$project->id.'/12')); ?>">Edit</a>
					</div>
				</div>
					<?php foreach($notes as $note): ?>
							<?php if($note['team'] == 12): ?>
							<?php $note['isNote'] = array_key_exists('note', $note) ? true : false; ?>
							<br>
							<div class="form-group">
								<div class="panel panel-default">
									<div class="panel-heading" style="background-color: <?php echo e($note['isNote'] ? '#d6e7f5' : '#d5ddf6'); ?>;">
										<h4 class="panel-title">
											<?php echo e($note['user']); ?> @ <?php echo e(date('g:i:s A - F j, Y', strtotime($note['updated_at']))); ?><i class="hidden-xs hidden-sm" style="float: right;"><?php echo e($team_object->find($note['team'])->name); ?></i>
										</h4>
									</div>
									<div class="panel-body" style="background-color: <?php echo e($note['isNote'] ? '#eaf3fa' : '#eaeefb'); ?>;">
										<div class="xcol-md-12">
											<?php if($note['isNote']): ?>
											<?php echo nl2br($note['note']); ?> 
												<?php if($note['user'] == Auth::user()->name): ?>
													&nbsp; &nbsp; 
													<a href="<?php echo e(url('uadmin/projects/note/'.$note['id'])); ?>">
														<i class="fa fa-edit"></i>
													</a>
												<?php endif; ?>
											<?php else: ?>
											<a href="/uadmin/projects/attachment/<?php echo e($note['id']); ?>" target="_blank"><?php echo e($note['file']); ?></a>
											<?php endif; ?>
										</div>
									</div>
								</div>
							</div>
							<?php endif; ?>
							<?php endforeach; ?>
		      </div>
		    </div>
		  </div>
		  
		  <div class="panel panel-default" 
                      <?php if($team->order != 12): ?>
						style="display: none;"
					  <?php endif; ?>
                      >
                    
                    	
			<div class="panel-heading">
					<div class="accordian-item"  style="color: #317aba;">
						<h4 class="panel-title">
					        
					          <i class="fa fa-pencil-square"></i> &nbsp;<?php echo e($team->name); ?>

					          &nbsp;
							          <?php if($progression[12]): ?>
							          <i class="fa fa-check" style="color: #7ec07b; float: right;"></i><i class="hidden-xs hidden-sm completed-info">Completed by <?php echo e($completed_by[12]); ?> @ <?php echo e(date('g:i:s A - F j, Y', strtotime($completed_at[12]))); ?></i>
							          <?php elseif(!$require[12]): ?>
							          <i class="fa fa-ban" style="color: #c4775b; float: right;"></i>
							          <?php elseif($current == 12): ?>
							          <i class="fa fa-hand-o-left" style="color: #000; float: right;"></i>
							          <?php endif; ?>
					       
					      </h4>
						     
					</div>
	                            
	        </div>
						       
			<div class="panel-body">
			
				<div class="row">
					<div class="col-lg-12">
						
					<form id="billing" class="form-horizontal" method="post" action="/admin/projects/edit/12" enctype="multipart/form-data" onsubmit="noDouble(); return true;">
						<input type="hidden" name="_token" value="<?php echo e(csrf_token()); ?>">
						<input type="hidden" name="team" value="12">
						<input type="hidden" name="projectID" value="<?php echo e($project->id); ?>">
						<input type="hidden" name="ready_to_bill" value="<?php echo e($project->ready_to_bill != '' && strtotime($project->ready_to_bill) != 0 ? date('Y-m-d', strtotime($project->ready_to_bill)) : ''); ?>">
						
						<?php $pro_count = 0;?>
						<?php foreach($products as $product): ?>
						<?php $pro_count++;?>
						<div class="form-group">
							
							<div class="col-sm-12 col-md-6 morePadding morePadding2" onclick="inputFocus('usp<?php echo e($product->id); ?>')">
								<input type="text" class="form-control" id="usp<?php echo e($product->id); ?>" name="usp[<?php echo e($product->id); ?>]" value="<?php echo e(old('usp.'.$product->id) ? old('usp.'.$product->id) : $product->usp); ?>" title="USP: <?php echo e($product->name); ?>">
								<span id="usp<?php echo e($product->id); ?>-label" class="label-text">USP: <?php echo e($product->name); ?></span>	
							</div>
							<div class="col-sm-12 col-md-6 morePadding morePadding2" onclick="inputFocus('gl<?php echo e($product->id); ?>')">
								<input type="text" class="form-control" id="gl<?php echo e($product->id); ?>" name="gl[<?php echo e($product->id); ?>]" value="<?php echo e(old('gl.'.$product->id) ? old('gl.'.$product->id) : $product->gl); ?>" title="GL: <?php echo e($product->name); ?>">
								<span id="gl<?php echo e($product->id); ?>-label" class="label-text">GL: <?php echo e($product->name); ?></span>	
							</div>      
						</div>
						  
						<?php endforeach; ?>
						<div class="form-group">
							
							<div class="col-sm-12 col-md-6 morePadding morePadding2" onclick="inputFocus('account_num')">
								<input type="text" class="form-control" id="account_num" name="account_num" value="<?php echo e(old('account_num') ? old('account_num') : $project->account_num); ?>" title="Account #">
								<span id="account_num-label" class="label-text">Account #</span>	
							</div>
							<div class="col-sm-12 col-md-6 morePadding morePadding2" onclick="inputFocus('circuit_num')">
								<input type="text" class="form-control" id="circuit_num" name="circuit_num" value="<?php echo e(old('circuit_num') ? old('circuit_num') : $project->circuit_num); ?>" title="Circuit #">
								<span id="circuit_num-label" class="label-text">Circuit #</span>	
							</div>
							
						</div>
						<div class="form-group">
							<div class="col-sm-12 col-md-6 morePadding morePadding2" onclick="inputFocus('assigned_tech12')">
								<select class="form-control" id="assigned_tech12" name="assigned_tech"  title="assigned_tech">
									<option id="assigned_tech_option"></option>
									<?php foreach($techs12 as $tech): ?>
									<option value="<?php echo e(Auth::user()->find($tech->user)->id); ?>"
									<?php if($assigned_current[12] == $tech->user): ?> 
										<?php echo e('selected'); ?> 
									<?php endif; ?>
									><?php echo e(Auth::user()->find($tech->user)->name); ?></option>
									<?php endforeach; ?>
								</select>
								<span id="assigned_tech12-label" 
								<?php if($order_type): ?>
								class="xlabel-text hasValue"
								<?php else: ?>
								class="label-text"
								<?php endif; ?>
								>Assigned Employee</span>	
							</div>
						</div>
						<div class="form-group">
							<div class="col-sm-12 col-md-8 morePadding morePadding2">
								<textarea class="form-control" name="notes" title="Notes" placeholder="Notes"><?php echo e(old('notes')); ?></textarea>
							</div>
							<div class="col-sm-12 col-md-4 morePadding morePadding2" >
								<input type="file" class="form-control" name="attachment" value="<?php echo e(old('attachment')); ?>" title="Attachment">
								<span class="xlabel-text hasValue">Attachment</span>	
							</div>
						</div>
						
						<div class="form-group">
							<div class="col-sm-12 col-md-8 morePadding morePadding2">
								<input type="submit" class="btn btn-primary" name="submit" value="Save">
							</div>
							<?php if($progression[12]): ?>
							<div class="col-sm-12 col-md-4 morePadding morePadding2">
								<div class="btn btn-primary" style=" background-color: green; float: right; opacity: .5; cursor: default;"><i class="fa fa-check"></i></div>
							</div>
							<?php elseif($current == 12): ?>
							<div class="col-sm-12 col-md-4 morePadding morePadding2">
								<input type="submit" class="btn btn-primary" name="submit" value="Complete" style="float: right;">
							</div>
							<?php else: ?>
							<div class="col-sm-12 col-md-4 morePadding morePadding2">
							</div>
							<?php endif; ?>

						</div>
					</form>
						<?php foreach($notes as $note): ?>
							<?php if($note['team'] == 12): ?>
							<?php $note['isNote'] = array_key_exists('note', $note) ? true : false; ?>
							<br>
							<div class="form-group">
								<div class="panel panel-default">
									<div class="panel-heading" style="background-color: <?php echo e($note['isNote'] ? '#d6e7f5' : '#d5ddf6'); ?>;">
										<h4 class="panel-title">
											<?php echo e($note['user']); ?> @ <?php echo e(date('g:i:s A - F j, Y', strtotime($note['updated_at']))); ?><i class="hidden-xs hidden-sm" style="float: right;"><?php echo e($team_object->find($note['team'])->name); ?></i>
										</h4>
									</div>
									<div class="panel-body" style="background-color: <?php echo e($note['isNote'] ? '#eaf3fa' : '#eaeefb'); ?>;">
										<div class="xcol-md-12">
											<?php if($note['isNote']): ?>
											<?php echo nl2br($note['note']); ?> 
												<?php if($note['user'] == Auth::user()->name): ?>
													&nbsp; &nbsp; 
													<a href="<?php echo e(url('uadmin/projects/note/'.$note['id'])); ?>">
														<i class="fa fa-edit"></i>
													</a>
												<?php endif; ?>
											<?php else: ?>
											<a href="/uadmin/projects/attachment/<?php echo e($note['id']); ?>" target="_blank"><?php echo e($note['file']); ?></a>
											<?php endif; ?>
										</div>
									</div>
								</div>
							</div>
							<?php endif; ?>
							<?php endforeach; ?>
					</div>
				</div>
			</div>
		</div>
		<hr>
		  <div class="panel panel-default">
		    <div class="panel-heading" role="tab" id="heading13" style="">
		      <h4 class="panel-title">
		        <div id="group_section13" class="accordian-item"  style="color: #317aba; "
		        role="button" data-toggle="collapse" data-parent="#accordion" 
		        href="#collapse13" aria-expanded="false" 
		        aria-controls="collapse13" onclick="chevron(13)" ondblclick="chevron(13)">
		          <i id="chevron13" class="fa fa-chevron-circle-right"></i> &nbsp;All Notes & Attachments
		        </div>
		      </h4>
		    </div>
		    <div id="collapse13" class="panel-collapse collapse" role="tabpanel" aria-labelledby="heading13">
		      <div class="panel-body">
		      
					<?php foreach($notes as $note): ?>
							
							<?php $note['isNote'] = array_key_exists('note', $note) ? true : false; ?>
							<br>
							<div class="form-group">
								<div class="panel panel-default">
									<div class="panel-heading" style="background-color: <?php echo e($note['isNote'] ? '#d6e7f5' : '#d5ddf6'); ?>;">
										<h4 class="panel-title">
											<?php echo e($note['user']); ?> @ <?php echo e(date('g:i:s A - F j, Y', strtotime($note['updated_at']))); ?><i class="hidden-xs hidden-sm" style="float: right;"><?php echo e($team_object->find($note['team'])->name); ?></i>
										</h4>
									</div>
									<div class="panel-body" style="background-color: <?php echo e($note['isNote'] ? '#eaf3fa' : '#eaeefb'); ?>;">
										<div class="xcol-md-12">
											<?php if($note['isNote']): ?>
											<?php echo nl2br($note['note']); ?> 
												<?php if($note['user'] == Auth::user()->name): ?>
													&nbsp; &nbsp; 
													<a href="<?php echo e(url('uadmin/projects/note/'.$note['id'])); ?>">
														<i class="fa fa-edit"></i>
													</a>
												<?php endif; ?>
											<?php else: ?>
											<a href="/uadmin/projects/attachment/<?php echo e($note['id']); ?>" target="_blank"><?php echo e($note['file']); ?></a>
											<?php endif; ?>
										</div>
									</div>
								</div>
							</div>
							
							<?php endforeach; ?>
		      </div>
		    </div>
		  </div>
		  <?php if(Auth::user()->checkPermission(41) && $progression[1]): ?>
			  <hr>
			  <div class="panel panel-default">
			    <div class="panel-heading" role="tab" id="heading14" style="">
			      <h4 class="panel-title">
			        <div id="group_section14" class="accordian-item"  style="color: #317aba; "
			        role="button" data-toggle="collapse" data-parent="#accordion" 
			        href="#collapse14" aria-expanded="false" 
			        aria-controls="collapse14" onclick="chevron(14)" ondblclick="chevron(14)">
			          <i id="chevron14" class="fa fa-chevron-circle-right"></i> &nbsp;Advanced Options
			        </div>
			      </h4>
			    </div>
			    <div id="collapse14" class="panel-collapse collapse" role="tabpanel" aria-labelledby="heading14">
			      	<div class="panel-body">
				      	<div class="row">
							<div class="col-lg-12">
								<form id="phase" class="form-horizontal" method="post" action="/admin/projects/phase/move" onsubmit="noDouble(); return true;">
									<input type="hidden" name="_token" value="<?php echo e(csrf_token()); ?>">
									<input type="hidden" name="projectID" value="<?php echo e($project->id); ?>">
									<input type="hidden" name="lastUpdated" value="<?php echo e($project->updated_at); ?>">
									
									<div class="form-group">
										<div class="col-sm-12 col-md-3 morePadding morePadding2" style="padding-top: 5px;">
											<strong>Move Project Back To:</strong>
										</div>
										<div class="col-sm-12 col-md-7 morePadding morePadding2" onclick="inputFocus('previous_phase')">
											<select class="form-control" id="previous_phase" name="previous_phase"  title="Previous Phase">
												<option id="previous_phase_option"></option>
												<?php foreach($progression as $kk => $vv): ?>
													<?php if($vv): ?>
														<option value="<?php echo e($kk); ?>"
														><?php echo e(\App\Team::find($kk)->name); ?></option>
													<?php endif; ?>
												<?php endforeach; ?>
											</select>
											<span id="previous_phase-label" class="label-text">Previous Phase</span>	
										</div>

										<div class="col-sm-12 col-md-2 morePadding morePadding2">
											<input type="submit" class="btn btn-primary" name="submit" value="Submit" style="float: right;">
										</div>
									</div>
								</form>
							</div>
				      	</div>
			    	</div>
		  		</div>
		  	</div>
		  <?php endif; ?>
		  <br>
	
</div>
 		
<?php $__env->stopSection(); ?>

<?php $__env->startSection('extras'); ?>
	<link rel="stylesheet" type="text/css" href="<?php echo e(asset('css/jquery.timepicker.css')); ?>" />
	<link rel="stylesheet" type="text/css" href="<?php echo e(asset('css/bootstrap-datepicker3.min.css')); ?>" />
	<style>
			input:focus+.label-text, input:not([value=""])+.label-text, select+.label-text
		    		{
		    font-weight: normal;
		    padding: 0;
		    padding-left: 20px;
		    -webkit-transform: translateY(-2rem) scale(.7);
		    transform: translateY(-2rem) scale(.7);
		}
		input+.label-text, select+.label-text, .hasValue{
		    font-size: 1.5rem;
		    font-weight: 400;
		    position: absolute;
		    top: 0;
		    left: 0;
		    display: block;

		    padding-left: 20px;
		    padding-top: 5px;
		    padding-bottom: 5px;
		    opacity: .8;
		    transition: all .3s ease-out,opacity 150ms ease .3s;
		    -webkit-transform: translateY(0) scale(1);
		    transform: translateY(0) scale(1);
		    -webkit-transform-origin: left top;
		    transform-origin: left top;
		}
		span {
		    font-size: 1rem;
		    font-weight: 600;
		    display: block;
		    padding-top: .25rem;
		    padding-bottom: .25rem;
		    margin-left: 1rem;
		    color: #317aba;
		}
		.hasValue
		{
		    font-weight: normal;
		    padding: 0;
		    padding-left: 20px;
		    -webkit-transform: translateY(-2rem) scale(.7);
		    transform: translateY(-2rem) scale(.7);    
		}
		
		.moveOver
		{
			padding-left: 9px;
			padding-bottom: 5px;
			padding-top: 5px;
			margin-bottom: 15px;
			font-weight: normal;
			border: none;
			border-radius: 10px;
			background-color: #eee;
			width: 100%;
		}
		

		@media (max-width: 959px)
		{
			.morePadding {
			    margin-top: 1.5em;
			}
		}

		@media (min-width: 960px)
		{
			.morePadding {
			    margin-top: 1em;
			}
		}
		
		.accordion-ts {float: right; color: #888; margin-top: -20px; font-weight: normal; font-size: 14px;}
		.completed-info {font-size: .9em; color: #96cf96; float: right; padding-right: 10px;}
		
	</style>

<?php $__env->stopSection(); ?>

<?php $__env->startSection('bottom'); ?>

	<script src="<?php echo e(asset('js/jquery.datepair.min.js')); ?>"></script>
	<script src="<?php echo e(asset('js/bootstrap-datepicker.min.js')); ?>"></script>
	<script src="<?php echo e(asset('js/jquery.timepicker.min.js')); ?>"></script>
	
	<script>
    $('#date_sold_container .date').datepicker({
        'format': 'yyyy-m-d',
        'autoclose': true
    });
    $('#desired_due_date_container .date').datepicker({
        'format': 'yyyy-m-d',
        'autoclose': true
    });
    $('#ready_to_bill_container .date').datepicker({
        'format': 'yyyy-m-d',
        'autoclose': true
    });
    $('#foc_date_container .date').datepicker({
        'format': 'yyyy-m-d',
        'autoclose': true
    });
    $('#submit_date_container .date').datepicker({
        'format': 'yyyy-m-d',
        'autoclose': true
    });
	</script>

<script>

	$('.form-control').each(function() {
	   var elem = $(this);

	   // Save current value of element
	   elem.data('oldVal', elem.val());

	   // Look for changes in the value
	   elem.bind("propertychange change click keyup input paste", function(event){
	      // If value has changed...
	      if (elem.data('oldVal') != elem.val()) {
	       // Updated stored value
	       elem.data('oldVal', elem.val());
	       var elem2 = $('#'+elem.attr('id')+"-label");
	       elem2.addClass('hasValue');
	       elem2.removeClass('label-text');
	       if(elem.val() == "")
	       {
		       
	    	   elem2.addClass('label-text');
		       elem2.removeClass('hasValue');
	       }
	     }
	   });
	 });

	function inputFocus(id)
	{
		document.getElementById(id).focus();
	}

	function enter911()
	{
		var checkbox = document.getElementById('checkbox_911_container');
		var address = document.getElementById('address_911_container');

		if(address.style.display == 'none')
		{
			address.style.display = '';
		}
		else
		{
			address.style.display = 'none';
			document.getElementById('address_911').value = '';
			document.getElementById('city_911').value = '';
			document.getElementById('state_911').value = '';
			document.getElementById('zip_911').value = '';
			document.getElementById('county_code_911').value = '';
		}
	}
	function showConstruction()
	{
		var checkbox = document.getElementById('checkbox_construction_container');
		var address = document.getElementById('construction_container');

		if(address.style.display == 'none')
		{
			address.style.display = '';
		}
		else
		{
			address.style.display = 'none';
			document.getElementById('construction_location').value = '';
			document.getElementById('construction_build_estimate').value = '';
		}
	}
	function showNNI()
	{
		var checkbox = document.getElementById('checkbox_nni_container');
		var address = document.getElementById('nni_container');

		if(address.style.display == 'none')
		{
			address.style.display = '';
		}
		else
		{
			address.style.display = 'none';
			document.getElementById('a_loc_address').value = '';
			document.getElementById('a_loc_carrier').value = '';
			document.getElementById('z_loc_address').value = '';
			document.getElementById('z_loc_carrier').value = '';
		}
	}
	function addProduct2()
	{
		var next = 31;
		for(i = 30; i>=1; i--)
		{
			if(document.getElementById('product_group'+i).style.display != "none")
			{
				if(i != 30)
				{
					next = i + 1;
					document.getElementById('product_group'+next).style.display = '';
					return;
				}
				else
				{
					alert('Error: 2750724');
					return;
				}
				
			}
			
		}

		
	}
	function addProduct()
	{
		var product_group = document.getElementById('product_group');
		var plus_container = document.getElementById('plus_container');
		var theForm = document.getElementById('theForm');

		var string = 
			'<div class="form-group" id="product_group2">'+
				'<div class="col-sm-2 col-md-1 morePadding morePadding2" >'+
					'<div class="btn btn-primary" onclick="removeProduct(\'product_group2\')"><i class="fa fa-minus"></i></div>'+
				'</div>'+
				'<div class="col-sm-10 col-md-3 morePadding morePadding2" onclick="inputFocus(\'product2\')">'+
					'<input type="text" class="form-control" id="product2" name="product[2]" value="" title="Product 2">'+
					'<span id="product2-label" class="label-text">Product</span>'+
				'</div>'+
				'<div class="col-sm-12 col-md-2 morePadding morePadding2" onclick="inputFocus(\'quantity2\')">'+
					'<input type="text" class="form-control" id="quantity2" name="quantity[2]" value="" title="Quantity 2">'+
					'<span id="quantity2-label" class="label-text">Quantity</span>'+
				'</div>'+
				'<div class="col-sm-12 col-md-2 morePadding morePadding2" onclick="inputFocus(\'unit_price2\')">'+
					'<input type="text" class="form-control" id="unit_price2" name="unit_price[2]" value="" title="Unit Price 2">'+
					'<span id="unit_price2-label" class="label-text">Unit Price</span>'+
				'</div>'+
				'<div class="col-sm-12 col-md-2 morePadding morePadding2" onclick="inputFocus(\'product_mrc2\')">'+
					'<input type="text" class="form-control" id="product_mrc2" name="product_mrc[2]" value="" title="MRC 2">'+
					'<span id="product_mrc2-label" class="label-text">MRC</span>'+
				'</div>'+
				'<div class="col-sm-12 col-md-2 morePadding morePadding2" onclick="inputFocus(\'product_nrc2\')">'+
					'<input type="text" class="form-control" id="product_nrc2" name="product_nrc[2]" value="" title="NRC 2">'+
					'<span id="product_nrc2-label" class="label-text">NRC</span>'+
				'</div>'+
			'</div>';

		//alert(string);

		var div = document.createElement('div');
		div.innerHTML = string;
		
		

		
		theForm.insertBefore(div.firstChild, plus_container);
		
	}

	function removeProduct2(num)
	{
		document.getElementById('product_group'+num).style.display = 'none';
		document.getElementById('product'+num).value = '';
		document.getElementById('quantity'+num).value = '';
		document.getElementById('unit_price'+num).value = '';
		document.getElementById('product_mrc'+num).value = '';
		document.getElementById('product_nrc'+num).value = '';

		document.getElementById('product'+num+'-label').className = 'label-text';
		document.getElementById('quantity'+num+'-label').className = 'label-text';
		document.getElementById('unit_price'+num+'-label').className = 'label-text';
		document.getElementById('product_mrc'+num+'-label').className = 'label-text';
		document.getElementById('product_nrc'+num+'-label').className = 'label-text';

		calcMRC();
		calcNRC();
	}
	
	function removeProduct(id)
	{
		document.getElementById(id).remove();
	}

	function addConstruction()
	{
		var next = 31;
		for(i = 30; i>=1; i--)
		{
			if(document.getElementById('construction_group'+i).style.display != "none")
			{
				if(i != 30)
				{
					next = i + 1;
					document.getElementById('construction_group'+next).style.display = '';
					return;
				}
				else
				{
					alert('Error: 2667158');
					return;
				}
				
			}
			
		}
		
	}

	function removeConstruction(num)
	{
		document.getElementById('construction_group'+num).style.display = 'none';
		document.getElementById('construction_location'+num).value = '';
		document.getElementById('construction_build_estimate'+num).value = '';
		document.getElementById('building_contact'+num).value = '';
		document.getElementById('building_phone_number'+num).value = '';
		document.getElementById('building_email'+num).value = '';

		document.getElementById('construction_location'+num+'-label').className = 'label-text';
		document.getElementById('construction_build_estimate'+num+'-label').className = 'label-text';
		document.getElementById('building_contact'+num+'-label').className = 'label-text';
		document.getElementById('building_phone_number'+num+'-label').className = 'label-text';
		document.getElementById('building_email'+num+'-label').className = 'label-text';

		estimateTotal();
	}

	function estimateTotal()
	{
		var total = 0;
		for(i = 1; i<=30; i++)
		{
			if(document.getElementById('construction_build_estimate'+i).value != "")
			{
				total += parseFloat(document.getElementById('construction_build_estimate'+i).value);
			}
		}
		document.getElementById('estimate_total').innerHTML = '$' + total.toFixed(3);
	}

	function addNNI()
	{
		var next = 31;
		for(i = 30; i>=1; i--)
		{
			if(document.getElementById('nni_group'+i).style.display != "none")
			{
				if(i != 30)
				{
					next = i + 1;
					document.getElementById('nni_group'+next).style.display = '';
					return;
				}
				else
				{
					alert('Error: 9573009');
					return;
				}
				
			}
			
		}
		
	}

	function removeNNI(num)
	{
		document.getElementById('nni_group'+num).style.display = 'none';
		document.getElementById('nni_service_address'+num).value = '';
		document.getElementById('nni_carrier'+num).value = '';
		document.getElementById('mrc_cogs'+num).value = '';
		document.getElementById('nrc_cogs'+num).value = '';

		document.getElementById('nni_service_address'+num+'-label').className = 'label-text';
		document.getElementById('nni_carrier'+num+'-label').className = 'label-text';
		document.getElementById('mrc_cogs'+num+'-label').className = 'label-text';
		document.getElementById('nrc_cogs'+num+'-label').className = 'label-text';

		calcMRCcogs();
		calcNRCcogs();
	}

	function calcMRCcogs()
	{
		var total = 0;
		for(i = 1; i<=30; i++)
		{
			if(document.getElementById('mrc_cogs'+i).value != "")
			{
				total += parseFloat(document.getElementById('mrc_cogs'+i).value);
			}
		}
		document.getElementById('mrc_total_cogs').innerHTML = '$' + total.toFixed(3);
	}

	function calcNRCcogs()
	{
		var total = 0;
		for(i = 1; i<=30; i++)
		{
			if(document.getElementById('nrc_cogs'+i).value != "")
			{
				total += parseFloat(document.getElementById('nrc_cogs'+i).value);
			}
		}
		document.getElementById('nrc_total_cogs').innerHTML = '$' + total.toFixed(3);
	}
	

	function calcMRC()
	{
		var total = 0;
		for(i = 1; i<=30; i++)
		{
			if(document.getElementById('product_mrc'+i).value != "")
			{
				total += parseFloat(document.getElementById('product_mrc'+i).value);
			}
		}
		document.getElementById('mrc_total').innerHTML = '$' + total.toFixed(3);
	}
	
	function calcNRC()
	{
		var total = 0;
		for(i = 1; i<=30; i++)
		{
			if(document.getElementById('product_nrc'+i).value != "")
			{
				total += parseFloat(document.getElementById('product_nrc'+i).value);
			}
		}
		document.getElementById('nrc_total').innerHTML = '$' + total.toFixed(3);
	}

	function setMRC(num)
	{
		
		var quantity = document.getElementById('quantity'+num).value;
		var unit_price = document.getElementById('unit_price'+num).value;

		if(quantity == '') quantity = 0;
		if(unit_price == '') unit_price = 0;

		var total = parseFloat(quantity) * parseFloat(unit_price);

		var mrc = document.getElementById('product_mrc'+num);
		var mrc_label = document.getElementById('product_mrc'+num+'-label');
	
		mrc.value = total.toFixed(3);
		mrc_label.className = 'hasValue';
		

		calcMRC();
	}

	function noDouble()
	{
		//$(':button').prop('disabled', true);
		$('[name="submit"]').hide();
	}

	calcMRC();
	calcNRC();
	estimateTotal();
	calcNRCcogs();
	calcMRCcogs();

</script>

<script>
	var keys = [];
	
	document.onkeydown = function(evt){    
	   var key = evt.keyCode;
	   keys[key] = true;
	    if(keys[68] && keys[17]){
			
			document.getElementById('entry_pencil').style.display = 'none';
			document.getElementById('project_delete_button').style.display = 'inline';
	    	

			keys[68] = false;
			keys[17] = false;
	    } 
	}
	document.onkeyup = function(evt){    
	   var key = evt.keyCode;
	   keys[key] = false;
	}
</script>

<script>	
	function chevron(group_id)
	{
		var chev = document.getElementById('chevron'+group_id);
		var state = chev.className.indexOf('right');
		
		
		for(i = 1; i <= 14; i++)
		{
			document.getElementById('chevron'+i).className = 'fa '+'fa-chevron-circle-right';
		}
			
		if(state > -1)
		{
			chev.className = '';
			chev.className = 'fa '+'fa-chevron-circle-down';
		}
		else
		{
			chev.className = '';
			chev.className = 'fa '+'fa-chevron-circle-right';
		}

	}
</script>
	
<?php $__env->stopSection(); ?>	

<?php echo $__env->make('residential.templates.uadmin', array_except(get_defined_vars(), array('__data', '__path')))->render(); ?>