<div class="widget-box ">
<?php
                                $message = $this->session->userdata('message');
                                if (!empty($message)) {
                                    ?>
                                    <div class="alert alert-block alert-success">
                                        <h6 class="lighter arial green" style="text-align:center;"><b>
                                                <?php echo $message;
                                                $this->session->unset_userdata('message');
                                                ?>
                                            </b></h6>
                                    </div>  
                                    <?php
                                }
                                $errormessage = $this->session->userdata('errormessage');
                                if (!empty($errormessage)) {
                                    ?>
                                    <div class="alert alert-block alert-danger">
                                        <h6 class="lighter arial red" style="text-align:center;"><b>
                                                <?php echo $errormessage;
                                                $this->session->unset_userdata('errormessage');
                                                ?>
                                            </b></h6>
                                    </div> 
                                    <?php
                                }
                                ?>
<?php if(!empty($customerById)){?>
<div class="clearfix"></div>
    <div class="row">

        <div class="col-sm-12" style="text-align:center">
            <h3 style="color:green;">Wellcome To</h3>
            <h5> <b style="color:red;">Hasan Homes And Development Limited</b></h5>
        </div>
    </div>
<div class="hr dotted"></div>

<div>
<div class="alert alert-block alert-info">
 <h4 class="lighter arial red" style="text-align:center;"><b>Customer Information</b></h4>
 </div>
									<div id="user-profile-1" class="user-profile row">
										<div class="col-xs-12 col-sm-3 center">
											<div>
												<span class="profile-picture">
												<?php if(!empty($customerById['photo'])){?>
													<img id="avatar" class="editable img-responsive" alt="Alex's Avatar" src="<?php if(file_exists($customerById['photo'])){ echo base_url().$customerById['photo'];}else{ echo base_url()."uploadimage/customerImage/logo1.png"; }?> " />
													<?php }?>
												</span>

												<div class="space-4"></div>
												

												<div class="width-80 label label-info label-xlg arrowed-in arrowed-in-right">
													<div class="inline position-relative">
														<a href="#" class="user-title-label dropdown-toggle" data-toggle="dropdown">
															<i class="ace-icon fa fa-circle light-green"></i>
															&nbsp;
															<span class="white"><?php if(!empty($customerById['applicant_name'])){ echo $customerById['applicant_name'];}?></span>
														</a>
													</div>
												</div>
											</div>


											
										</div>

										<div class="col-xs-12 col-sm-9">
											

											<div class="space-12"></div>

											<div class="profile-user-info profile-user-info-striped">
												
											
												

												<div class="profile-info-row">
													<div class="profile-info-name"> Customer Name  </div>

													<div class="profile-info-value">
														<span class="editable" id="age"><?php if(!empty($customerById['applicant_name'])){ echo $customerById['applicant_name'];}?></span>
													</div>
												</div>

												<div class="profile-info-row">
													<div class="profile-info-name"> Id </div>

													<div class="profile-info-value">
														<span class="editable" id="signup"><?php if(!empty($customerById['customerId'])){ echo $customerById['customerId'];}?></span>
													</div>
												</div>

												<div class="profile-info-row">
													<div class="profile-info-name"> National Id </div>

													<div class="profile-info-value">
														<span class="editable" id="login"><?php if(!empty($customerById['nationalid'])){ echo $customerById['nationalid'];}?></span>
													</div>
												</div>

												<div class="profile-info-row">
													<div class="profile-info-name"> Mobile </div>

													<div class="profile-info-value">
														<span class="editable" id="about"><?php if(!empty($customerById['mobile'])){ echo $customerById['mobile'];}?></span>
													</div>
												</div>
												<div class="profile-info-row">
													<div class="profile-info-name"> Email </div>

													<div class="profile-info-value">
														<span class="editable" id="about"><?php if(!empty($customerById['email'])){ echo $customerById['email'];}?></span>
													</div>
												</div>

												<div class="profile-info-row">
													<div class="profile-info-name"> Father's Name </div>

													<div class="profile-info-value">
														<span class="editable" id="about"><?php if(!empty($customerById['fatherName'])){ echo $customerById['fatherName'];}?></span>
													</div>
												</div>
												<div class="profile-info-row">
													<div class="profile-info-name"> Mother's Name </div>

													<div class="profile-info-value">
														<span class="editable" id="about"><?php if(!empty($customerById['motherName'])){ echo $customerById['motherName'];}?></span>
													</div>
												</div>
												<div class="profile-info-row">
													<div class="profile-info-name"> Gender </div>

													<div class="profile-info-value">
														<span class="editable" id="about"><?php if(!empty($customerById['gender'])){ foreach(getGender() as $key=>$val){if($key==$customerById['gender']){echo $val;}}}?></span>
													</div>
												</div>
												<div class="profile-info-row">
													<div class="profile-info-name"> Religion </div>

													<div class="profile-info-value">
														<span class="editable" id="about"><?php if(!empty($customerById['religion'])){ foreach(getReligion() as $key=>$val){if($key==$customerById['religion']){echo $val;}}}?></span>
													</div>
												</div>
												<div class="profile-info-row">
													<div class="profile-info-name"> Present Address </div>

													<div class="profile-info-value">
														<span class="editable" id="about"><?php if(!empty($customerById['presentAddress'])){ echo $customerById['presentAddress'];}?></span>
													</div>
												</div>
												<div class="profile-info-row">
													<div class="profile-info-name"> Permanent Address </div>

													<div class="profile-info-value">
														<span class="editable" id="about"><?php if(!empty($customerById['permanentAddress'])){ echo $customerById['permanentAddress'];}?></span>
													</div>
												</div>

												<div class="profile-info-row">
													<div class="profile-info-name"> Office </div>

													<div class="profile-info-value">
														<span class="editable" id="login"><?php if(!empty($customerById['office'])){ echo $customerById['office'];}?></span>
													</div>
												</div>
												<div class="profile-info-row">
													<div class="profile-info-name"> TinNo </div>

													<div class="profile-info-value">
														<span class="editable" id="login"><?php if(!empty($customerById['tinNo'])){ echo $customerById['tinNo'];}?></span>
													</div>
												</div>
												
												
											</div>
										</div>
									</div>

<!-- ___________________                         Nomeeni Info      __________________________  -->
<div class="alert alert-block alert-info">
 <h4 class="lighter arial red" style="text-align:center;"><b>Nominee's Information </b></h4>
 </div>
									<div id="user-profile-1" class="user-profile row">
										<div class="col-xs-12 col-sm-3 center">
											<div>
												<span class="profile-picture">
												<?php if(!empty($customerById['nominee_photo'])){?>
													<img id="avatar" class="editable img-responsive" alt="Alex's Avatar" src="<?php if(file_exists($customerById['nominee_photo'])){ echo base_url().$customerById['nominee_photo'];}else{ echo base_url()."uploadimage/customerImage/logo1.png"; }?> " />
													<?php }?>
												</span>

												<div class="space-4"></div>
												

												<div class="width-80 label label-info label-xlg arrowed-in arrowed-in-right">
													<div class="inline position-relative">
														<a href="#" class="user-title-label dropdown-toggle" data-toggle="dropdown">
															<i class="ace-icon fa fa-circle light-green"></i>
															&nbsp;
															<span class="white"><?php if(!empty($customerById['nomineeName'])){ echo $customerById['nomineeName'];}?></span>
														</a>
													</div>
												</div>
											</div>

											
										</div>

										<div class="col-xs-12 col-sm-9">
											

											<div class="space-12"></div>

											<div class="profile-user-info profile-user-info-striped">
												
											
												

												<div class="profile-info-row">
													<div class="profile-info-name"> Nominee's Name  </div>

													<div class="profile-info-value">
														<span class="editable" id="age"><?php if(!empty($customerById['nomineeName'])){ echo $customerById['nomineeName'];}?></span>
													</div>
												</div>

												<div class="profile-info-row">
													<div class="profile-info-name"> phone </div>

													<div class="profile-info-value">
														<span class="editable" id="signup"><?php if(!empty($customerById['nominee_phone'])){ echo $customerById['nominee_phone'];}?></span>
													</div>
												</div>

												

												<div class="profile-info-row">
													<div class="profile-info-name"> Mobile </div>

													<div class="profile-info-value">
														<span class="editable" id="about"><?php if(!empty($customerById['nominee_mobile'])){ echo $customerById['nominee_mobile'];}?></span>
													</div>
												</div>
												<div class="profile-info-row">
													<div class="profile-info-name"> Email </div>

													<div class="profile-info-value">
														<span class="editable" id="about"><?php if(!empty($customerById['nominee_email'])){ echo $customerById['nominee_email'];}?></span>
													</div>
												</div>

												<div class="profile-info-row">
													<div class="profile-info-name"> Relation </div>

													<div class="profile-info-value">
														<span class="editable" id="about"><?php if(!empty($customerById['relationship'])){ echo $customerById['relationship'];}?></span>
													</div>
												</div>
												<div class="profile-info-row">
													<div class="profile-info-name"> Address </div>

													<div class="profile-info-value">
														<span class="editable" id="about"><?php if(!empty($customerById['address'])){ echo $customerById['address'];}?></span>
													</div>
												</div>
												
												<div class="profile-info-row">
													<div class="profile-info-name"> Part </div>

													<div class="profile-info-value">
														<span class="editable" id="about"><?php if(!empty($customerById['part'])){ echo $customerById['part'];}?>&nbsp;&nbsp;(will get)</span>
													</div>
												</div>
												<div class="profile-info-row">
													<div class="profile-info-name"> Permanent Address </div>

													<div class="profile-info-value">
														<span class="editable" id="about"><?php if(!empty($customerById['permanentAddress'])){ echo $customerById['permanentAddress'];}?></span>
													</div>
												</div>
												
												
											</div>
										</div>
									</div>



<!-- ___________________                      End    Nomeeni Info      __________________________  -->

<!--  ___________________________________________Project Details ___________________________________-->

<div class="alert alert-block alert-info">
 <h4 class="lighter arial red" style="text-align:center;"><b>Plot Information </b></h4>
 </div>
									<div id="user-profile-1" class="user-profile row">
										<div class="col-xs-12 col-sm-3 center">
											<div>
												

												<div class="space-4"></div>
												

												<div class="width-80 label label-info label-xlg arrowed-in arrowed-in-right">
											:: Notice board ::
												</div>
											</div>

											
										</div>

										<div class="col-xs-12 col-sm-9">
											

											<div class="space-12"></div>

											<div class="profile-user-info profile-user-info-striped">
												
												<div class="profile-info-row">
													<div class="profile-info-name"> Block No  </div>

													<div class="profile-info-value">
														<span class="editable" id="age"><?php if(!empty($customerById['projectBlockNo'])){ echo $customerById['projectBlockNo'];}?></span>
													</div>
												</div>

												<div class="profile-info-row">
													<div class="profile-info-name"> Road No </div>

													<div class="profile-info-value">
														<span class="editable" id="about"><?php if(!empty($customerById['roadNo'])){ echo $customerById['roadNo'];}?></span>
													</div>
												</div>
												

												<div class="profile-info-row">
													<div class="profile-info-name"> Plot No  </div>

													<div class="profile-info-value">
														<span class="editable" id="age"><?php if(!empty($customerById['plotNo'])){ echo $customerById['plotNo'];}?></span>
													</div>
												</div>

												<div class="profile-info-row">
													<div class="profile-info-name"> Plot Size </div>

													<div class="profile-info-value">
														<span class="editable" id="signup"><?php if(!empty($customerById['plote_size'])){ echo $customerById['plote_size'];}?></span>
													</div>
												</div>

												

												<div class="profile-info-row">
													<div class="profile-info-name"> Plot Face </div>

													<div class="profile-info-value">
														<span class="editable" id="about"><?php if(!empty($customerById['plote_face'])){ echo element($customerById['plote_face'],getPlotface(),null);}?></span>
													</div>
												</div>
												

												<div class="profile-info-row">
													<div class="profile-info-name"> Plot Total Cost </div>

													<div class="profile-info-value">
														<span class="editable" id="about"><?php if(!empty($customerById['total_cost'])){ echo $customerById['total_cost'];}?></span>
													</div>
												</div>
												<div class="profile-info-row">
													<div class="profile-info-name"> Payment Type </div>

													<div class="profile-info-value">
														<span class="editable" id="about"><?php if(!empty($customerById['payment_type'])){ echo element($customerById['payment_type'],getPaymentType() ,null);}?></span>
													</div>
												</div>
												
												<div class="profile-info-row">
													<div class="profile-info-name"> Down Payment </div>

													<div class="profile-info-value">
														<span class="editable" id="about"><?php if(!empty($customerById['down_payment'])){ echo $customerById['down_payment'];}?></span>
													</div>
												</div>

												<div class="profile-info-row">
													<div class="profile-info-name"> Dues / Instal Installment per month   </div>

													<div class="profile-info-value">
														<span class="editable" id="about"><?php if(!empty($customerById['dues'])){ echo $customerById['dues'];}?></span>
													</div>
												</div>
												
											</div>
										</div> 
									</div>



<!--  ___________________________________________End Project Details ___________________________________-->
								</div>
								<?php }?>
								</div>
