<?php $this->load->view('admin/includes/head'); ?>

<body>
	<?php
	$header_data = getWebSyncsData('Header Settings', 'headerSettings', '');
	?>
	<style type="text/css">
		.select2-container--default .select2-selection--single {
			margin-bottom: 7px;
		}

		.fa2 {
			margin-top: 7px;

		}

		.fa {
			padding-top: 3px;
		}

		input {
			padding-top: 0px !important;
			padding-left: 15px !important;
		}

		.form-check-input:checked[type=checkbox] {
			padding: 12px 12px !important;
		}

		.form-check-label {
			padding-left: 24px;
		}

		.form-check-input:focus {
			box-shadow: 0 0 0 0.25rem #ffc107 !important;
		}

		.form-check-input[type=checkbox] {
			padding: 12px 12px !important;
		}

		.select2-selection {
			margin-bottom: 0 !important;
		}
	</style>

	<?php

	$fieldset_bg = 'readonly style="background-color: #e7e6e6;"';

	?>


	<div class="d-flex" id="wrapper">
		<?php $this->load->view('admin/includes/sidebar'); ?>
		<!-- Page content wrapper-->
		<div id="page-content-wrapper">
			<!-- Top navigation-->
			<?php $this->load->view('admin/includes/topbar'); ?>
			<!-- Main content-->
			<div class="container">
				<div class="row p-4 ">

					<div class="col-md-12 mx-auto d-block shadow-lg bg-body rounded">
						<?php echo $this->session->flashdata('success'); ?>
						<?= form_open('admin/update/profile', ' method="post" id="UpdateProfileForm"') ?>


						<fieldset class="border-2">
							<legend class="legend-outer  float-none w-auto"> Personal Details </legend>

							<div class="row">

								<div class="col-md-4">
									<?php
									$parts = explode(" ", @$userDetails->refDataName);
									$lastname = array_pop($parts);
									$firstname = implode(" ", $parts);

									if (empty($firstname)) {
										$firstname = $lastname;
										$lastname = "";
									}


									// echo '<pre>';
									// print_r($userDetails);
									?>
									<fieldset class="border" <?= $fieldset_bg ?>>
										<legend class="legend-inner float-none w-auto">First Name<span class="text-danger fw-bold" style="font-size: 20px;">*</span></legend>
										<!-- <div class="input-group"></div> -->

										<div class="input-group">
											<i class="fa fa-user"></i>
											<input type="text" class="form-control" id="fname" name="fname" placeholder="First Name" value="<?= @$firstname ?>" required aria-label="fname" aria-describedby="basic-addon1" readonly disabled <?= $fieldset_bg ?>>
										</div>
									</fieldset>
								</div>
								<div class="col-md-4">
									<fieldset class="border" <?= $fieldset_bg ?>>
										<legend class="legend-inner float-none w-auto">Last Name<span class="text-danger fw-bold" style="font-size: 20px;"></span></legend>
										<div class="input-group">
											<i class="fa fa-user"></i>
											<input type="text" class="form-control" id="lname" name="lname" value="<?= @$lastname ?>" placeholder="Last Name" aria-label="lname" required aria-describedby="basic-addon1" readonly disabled <?= $fieldset_bg ?>>
										</div>
									</fieldset>

								</div>



								<div class="col-md-4">
									<fieldset class="border" <?= $fieldset_bg ?>>

										<legend class="legend-inner float-none w-auto">Date Of Birth <span class="text-danger fw-bold text-white" style="font-size: 20px;">*</span></legend>
										<div class="input-group">
											<labe class="fa fa-calendar" for="dob"></labe>

											<input type="text" name="dob" id="dob" class="form-control datepicker" value="<?= @$userDetails->dob ?>" placeholder="MM/DD/YYYY" aria-label="dob" aria-describedby="basic-addon1" readonly disabled <?= $fieldset_bg ?>>


										</div>
									</fieldset>

								</div>
							</div>
							<div class="row">
								<div class="col-md-4">
									<fieldset class="border" <?= $fieldset_bg ?>>
										<legend class="legend-inner float-none w-auto">Gothram<span class="text-danger fw-bold" style="font-size: 20px;"></span></legend>
										<div class="input-group">

											<input type="text" class="form-control" value="<?= @$userDetails->gotraName ?>" readonly disabled <?= $fieldset_bg ?>>

										</div>
									</fieldset>

								</div>
								<div class="col-md-4">
									<fieldset class="border" <?= $fieldset_bg ?>>
										<legend class="legend-inner float-none w-auto">Nakshatra</legend>
										<div class="input-group">

											<input type="text" class="form-control" value="<?= @$userDetails->Nakshtra ?>" readonly disabled <?= $fieldset_bg ?>>


										</div>
									</fieldset>
								</div>
								<div class="col-md-4">
									<fieldset class="border" <?= $fieldset_bg ?>>
										<legend class="legend-inner float-none w-auto">Rashi</legend>
										<div class="input-group">

											<input type="text" class="form-control" value="<?= @$userDetails->rashi ?>" readonly disabled <?= $fieldset_bg ?>>

										</div>
									</fieldset>
								</div>
							</div>
							<div class="row">
								<div class="col-md-6">

									<fieldset class="border" <?= $fieldset_bg ?> <?= $fieldset_bg; ?>>
										<legend class="legend-inner float-none w-auto">Email<span class="text-danger fw-bold" style="font-size: 20px;">*</span></legend>
										<div class="input-group">
											<i class="fa fa-envelope"></i>

											<input type="text" class="form-control" value="<?= base64_decode(@$userDetails->email) ?>" readonly disabled <?= $fieldset_bg ?>>

										</div>
									</fieldset>
								</div>
								<div class="col-md-6">



									<fieldset class="border" <?= $fieldset_bg ?>>
										<legend class="legend-inner float-none w-auto">Phone<span class="text-danger fw-bold" style="font-size: 20px;">*</span></legend>
										<div class="input-group">
											<i class="fa fa-phone"></i>

											<input type="text" class="form-control" value="<?= formatPhoneNumber(base64_decode(@$userDetails->phone)) ?>" readonly disabled <?= $fieldset_bg ?>>
										</div>
									</fieldset>
								</div>
							</div>



							<div class="row">
								<div class="col-md-12">
									<fieldset class="border" <?= $fieldset_bg ?>>
										<legend class="legend-inner float-none w-auto">Address Line 1</legend>
										<div class="input-group">
											<i class="fa fa2 fa-map-marker"></i>

											<input type="text" class="form-control" value="<?= @$userDetails->addressLine1 ?>" readonly disabled <?= $fieldset_bg ?>>

										</div>
									</fieldset>
								</div>
							</div>
							<div class="row">
								<div class="col-md-6">
									<fieldset class="border" <?= $fieldset_bg ?>>
										<legend class="legend-inner float-none w-auto">Address Line 2<span class="text-danger fw-bold" style="font-size: 20px;">&nbsp;</span></legend>
										<div class="input-group">
											<i class="fa fa2 fa-map-marker"></i>

											<input type="text" class="form-control" value="<?= @$userDetails->addressLine2 ?>" readonly disabled <?= $fieldset_bg ?>>
										</div>
									</fieldset>
								</div>


								<div class="col-md-6">
									<fieldset class="border" <?= $fieldset_bg ?>>
										<legend class="legend-inner float-none w-auto">County<span class="text-danger fw-bold" style="font-size: 20px;">&nbsp;</span></legend>
										<div class="input-group">
											<i class="fa fa2 fa-map-marker"></i>
											<input type="text" class="form-control" value="<?= @$userDetails->county ?>" readonly disabled <?= $fieldset_bg ?>>
										</div>
									</fieldset>
								</div>

							</div>

							<div class="row">
								<div class="col-md-4">
									<fieldset class="border" <?= $fieldset_bg ?>>
										<legend class="legend-inner float-none w-auto">State</legend>
										<div class="input-group">
											<input type="text" class="form-control" value="<?= @$userDetails->stateTypes ?>" readonly disabled <?= $fieldset_bg ?>>

										</div>
									</fieldset>
								</div>
								<div class="col-md-4">
									<fieldset class="border" <?= $fieldset_bg ?>>
										<legend class="legend-inner float-none w-auto">City</legend>

										<div class="input-group">


											<input type="text" class="form-control" value="<?= @$userDetails->cityTypes ?>" readonly disabled <?= $fieldset_bg ?>>

										</div>
									</fieldset>
								</div>
								<div class="col-md-4">
									<fieldset class="border" <?= $fieldset_bg ?>>
										<legend class="legend-inner float-none w-auto">Zip Code</legend>
										<div class="input-group">
											<i class="fa fa-file"></i>

											<input type="text" class="form-control" value="<?= @$userDetails->zip ?>" readonly disabled <?= $fieldset_bg ?>>


										</div>
									</fieldset>
								</div>
							</div>


							<div class="row">
								<div class="col-md-3">
									<fieldset class="border" <?= $fieldset_bg ?>>
										<legend class="legend-inner float-none w-auto">Spouse Name</legend>
										<div class="input-group">
											<input type="text" class="form-control" value="<?= @$userDetails->spouseName ?>" readonly disabled <?= $fieldset_bg ?>>

										</div>
									</fieldset>

								</div>
								<div class="col-md-3">
									<fieldset class="border" <?= $fieldset_bg ?>>
										<legend class="legend-inner float-none w-auto">Spouse Date Of Birth</legend>
										<div class="input-group">

											<input type="text" class="form-control" value="<?= @$userDetails->spouseDob ?>" readonly disabled <?= $fieldset_bg ?>>

										</div>
									</fieldset>
								</div>

								<div class="col-md-3">
									<fieldset class="border" <?= $fieldset_bg ?>>
										<legend class="legend-inner float-none w-auto">Spouse Nakshatra</legend>
										<div class="input-group">

											<input type="text" class="form-control" value="<?= @$userDetails->spouseNakshtra ?>" readonly disabled <?= $fieldset_bg ?>>


										</div>
									</fieldset>
								</div>

								<div class="col-md-3">
									<fieldset class="border" <?= $fieldset_bg ?>>
										<legend class="legend-inner float-none w-auto">Spouse Rashi</legend>
										<div class="input-group">

											<input type="text" class="form-control" value="<?= @$userDetails->spouseRashi ?>" readonly disabled <?= $fieldset_bg ?>>



										</div>
									</fieldset>
								</div>


							</div>


							<div class="row">


								<div class="col-md-4">
									<fieldset class="border" <?= $fieldset_bg ?>>
										<legend class="legend-inner float-none w-auto">Spouse Email</legend>
										<div class="input-group">

											<input type="text" class="form-control" value="<?= base64_decode(@$userDetails->spouseEmail) ?>" readonly disabled <?= $fieldset_bg ?>>


										</div>
									</fieldset>
								</div>
								<div class="col-md-4">
									<fieldset class="border" <?= $fieldset_bg ?>>
										<legend class="legend-inner float-none w-auto">Spouse Phone</legend>
										<div class="input-group">

											<input type="text" class="form-control" value="<?= formatPhoneNumber(base64_decode(@$userDetails->spousePhone)) ?>" readonly disabled <?= $fieldset_bg ?>>


										</div>
									</fieldset>
								</div>


								<div class="col-md-4">
									<!-- <fieldset class="border" <?= $fieldset_bg ?>> -->
									<legend class="legend-inner float-none w-auto fw-bold">Household Indicator</legend>


									<div class="form-check form-check-inline" style="padding-bottom: 5px;">
										<input class="form-check-input" type="checkbox" id="inlineCheckbox2" name="household_indicator[]" <?= @$userDetails->householdInd == 'YES' ? 'checked' : '' ?> readonly disabled>
										<label class="form-check-label m-auto pt-2" for="inlineCheckbox2">Yes</label>
									</div>

									<div class="form-check form-check-inline mx-4" style="padding-bottom: 5px;">
										<input class="form-check-input" type="checkbox" id="inlineCheckbox1" name="household_indicator[]" <?= @$userDetails->householdInd == 'YES' ? '' : 'checked' ?> disabled>
										<label class="form-check-label m-auto pt-2" for="inlineCheckbox1">No</label>
									</div>
									<!-- </fieldset> -->
								</div>


							</div>

							<div class="row d-none">
								<div class="col-md-6">
									<fieldset class="border" <?= $fieldset_bg ?>>
										<legend class="legend-inner float-none w-auto">Company Name</legend>
										<div class="input-group">
											<i class="fa fa-building-o"></i>

											<input type="text" class="form-control" value="<?= @$userDetails->companyName ?>" readonly disabled <?= $fieldset_bg ?>>

										</div>
									</fieldset>
								</div>
								<div class="col-md-6">
									<fieldset class="border" <?= $fieldset_bg ?>>
										<legend class="legend-inner float-none w-auto">Company Email</legend>
										<div class="input-group">
											<i class="fa fa-envelope"></i>

											<input type="text" class="form-control" value="<?= base64_decode(@$userDetails->companyEmail); ?>" readonly disabled <?= $fieldset_bg ?>>

										</div>
									</fieldset>
								</div>
							</div>
							<div class="row d-none">
								<div class="col-md-6">
									<fieldset class="border" <?= $fieldset_bg ?>>
										<legend class="legend-inner float-none w-auto">Company Phone Number</legend>
										<div class="input-group">
											<i class="fa fa-phone"></i>

											<input type="text" class="form-control" value="<?= formatPhoneNumber(base64_decode(@$userDetails->companyPhone)) ?>" readonly disabled <?= $fieldset_bg ?>>



										</div>
									</fieldset>
								</div>
								<div class="col-md-6">
									<fieldset class="border" <?= $fieldset_bg ?>>
										<legend class="legend-inner float-none w-auto">Company Website</legend>
										<div class="input-group">
											<i class="fa fa-globe"></i>

											<input type="text" class="form-control" value="<?= @$userDetails->website ?>" readonly disabled <?= $fieldset_bg ?>>



										</div>
									</fieldset>
								</div>
							</div>







							<div class="row my-3">

								<div class="col-md-3">
									<fieldset class="border" <?= $fieldset_bg ?>>
										<legend class="legend-inner float-none w-auto">Preferred Language</legend>
										<div class="input-group">

											<input type="text" class="form-control" value="<?= @$userDetails->languagePreferenceName ?>" readonly disabled <?= $fieldset_bg ?>>


										</div>
									</fieldset>
								</div>

								<div class="col-md-3">
									<fieldset class="border" <?= $fieldset_bg ?>>
										<legend class="legend-inner float-none w-auto">Preferred Priest</legend>
										<div class="input-group">


											<input type="text" class="form-control" value="<?= @$userDetails->requestForPriestName ?>" readonly disabled <?= $fieldset_bg ?>>


										</div>
									</fieldset>
								</div>
								<div class="col-md-6">
									<!-- <fieldset class="border" <?= $fieldset_bg ?>> -->
									<legend class="legend-inner float-none w-auto fw-bold">Do you want to receive temple newsletter and communications?</legend>


									<div class="form-check form-check-inline mx-4" style="padding-bottom: 5px;">
										<input class="form-check-input" type="checkbox" id="inlineCheckbox2" name="emailNotification" <?= @$userDetails->emailPref == TRUE ? 'checked' : '' ?> readonly disabled>
										<label class="form-check-label m-auto pt-2" for="inlineCheckbox2">On Email</label>
									</div>

									<div class="form-check form-check-inline mx-4" style="padding-bottom: 5px;">
										<input class="form-check-input" type="checkbox" id="inlineCheckbox1" name="phoneNotification" <?= @$userDetails->smsPref == TRUE ? 'checked' : '' ?> readonly disabled>
										<label class="form-check-label m-auto pt-2" for="inlineCheckbox1">On SMS</label>
									</div>
									<!-- </fieldset> -->
								</div>
							</div>

						</fieldset>



						<fieldset class="border-2">
							<legend class="legend-outer float-none w-auto">Family Members, Rashi & Star</legend>

							<div class="row">

								<?php if (empty(@$userDetails->memberDetail) || @$userDetails->memberDetail[0]->memberName == '') { ?>

									<div class="row customer_records px-0 familyMemberSection">
										<div class="col-md-4">
											<fieldset class="border" <?= $fieldset_bg ?>>
												<legend class="legend-inner float-none w-auto">Family Member 1</legend>
												<div class="input-group">
													<i class="fa fa-user"></i>

													<input type="text" class="form-control" value="<?= @$userDetails->memberDetail[0]->memberName ?>" readonly disabled <?= $fieldset_bg ?>>
													<input type="text" class="form-control" value="<?= @$userDetails->memberDetail[0]->gotraName ?>" readonly disabled <?= $fieldset_bg ?>>




												</div>
											</fieldset>
										</div>


										<div class="col-md-4">
											<fieldset class="border" <?= $fieldset_bg ?>>
												<legend class="legend-inner float-none w-auto">Date Of Birth</legend>
												<div class="input-group">


													<input type="text" class="form-control" value="<?= @$userDetails->memberDetail[0]->dob ?>" readonly disabled <?= $fieldset_bg ?>>


												</div>
											</fieldset>
										</div>


										<div class="col-md-4">
											<fieldset class="border" <?= $fieldset_bg ?>>
												<legend class="legend-inner float-none w-auto">Nakshatra</legend>
												<div class="input-group">


													<input type="text" class="form-control" value="<?= @$userDetails->memberDetail[0]->nakshatra ?>" readonly disabled <?= $fieldset_bg ?>>


												</div>
											</fieldset>
										</div>


										<div class="col-md-4">
											<fieldset class="border" <?= $fieldset_bg ?>>
												<legend class="legend-inner float-none w-auto">Relationship</legend>
												<div class="input-group">

													<input type="text" class="form-control" value="<?= @$userDetails->memberDetail[0]->relationship ?>" readonly disabled <?= $fieldset_bg ?>>







												</div>
											</fieldset>
										</div>

										<div class="col-md-4">
											<fieldset class="border" <?= $fieldset_bg ?>>
												<legend class="legend-inner float-none w-auto">Anniversary</legend>
												<div class="input-group">

													<input type="text" class="form-control" value="<?= @$userDetails->memberDetail[0]->anniversaryDate ?>" readonly disabled <?= $fieldset_bg ?>>


												</div>
											</fieldset>
										</div>
										<div class="col-md-4">
											<fieldset class="border" <?= $fieldset_bg ?>>
												<legend class="legend-inner float-none w-auto">Status</legend>
												<div class="input-group">


													<input type="text" class="form-control" value="<?= @$userDetails->memberDetail[0]->status ?>" readonly disabled <?= $fieldset_bg ?>>



												</div>
											</fieldset>
										</div>


										<div class="col-md-4">


											<legend class="legend-inner float-none w-auto fw-bold">Household Indicator</legend>

											<div class="form-check form-check-inline" style="padding-bottom: 5px;">

												<input class="form-check-input" type="checkbox" id="inlineCheckboxYes1" name="member_household_indicator[]" onclick="selectOnlyThis(1, this)" value="YES" <?= @$userDetails->memberDetail[0]->householdInd == 'YES' ? 'checked' : '' ?> readonly disabled>

												<label class="form-check-label m-auto pt-2" for="inlineCheckboxYes1">Yes</label>

											</div>



											<div class="form-check form-check-inline mx-4" style="padding-bottom: 5px;">

												<input class="form-check-input" type="checkbox" id="inlineCheckboxNo1" name="member_household_indicator[]" onclick="selectOnlyThis(1, this)" value="NO" <?= @$userDetails->memberDetail[0]->householdInd == 'YES' ? '' : 'checked' ?> readonly disabled>

												<label class="form-check-label m-auto pt-2" for="inlineCheckboxNo1">No</label>

											</div>
										</div>

										<div class="col-md-4" id="member_email_section1" <?= @$userDetails->memberDetail[0]->householdInd == 'YES' ? 'style="display:block"' : 'style="display:none"' ?>>

											<fieldset class="border" <?= $fieldset_bg ?>>
												<legend class="legend-inner float-none w-auto">Household Member Email</legend>
												<div class="input-group">
													<input type="email" class="form-control" id="member_email1" name="member_email[]" placeholder="Member Email" required>
												</div>
											</fieldset>
										</div>
										<div class="col-md-4" id="member_phone_section1" <?= @$userDetails->memberDetail[0]->householdInd == 'YES' ? 'style="display:block"' : 'style="display:none"' ?>>
											<fieldset class="border" <?= $fieldset_bg ?>>
												<legend class="legend-inner float-none w-auto">Household Member Phone</legend>
												<div class="input-group">
													<input type="text" class="form-control phone" id="member_phone1" name="member_phone[]" placeholder="Member Phone">
												</div>
											</fieldset>
										</div>





										<div class="text-end py-4">

											<a class="extra-fields-customer btn btn-success btn-sm" style="border-radius:5px!important" href="#">Add More</a>



										</div>
									</div>




									<?php $total_no_member = 0;
								} else {

									foreach (@$userDetails->memberDetail as $key => $val) {

									?>



										<div class="row customer_records px-0 familyMemberSection">
											<div class="col-md-4">
												<fieldset class="border" <?= $fieldset_bg ?>>
													<legend class="legend-inner float-none w-auto">Family Member <?= $key + 1 ?></legend>
													<div class="input-group">
														<i class="fa fa-user"></i>


														<input type="text" class="form-control" value="<?= @$val->memberName ?>" readonly disabled <?= $fieldset_bg ?>>



														<input type="text" class="form-control" value="<?= @$val->gotraName ?>" readonly disabled <?= $fieldset_bg ?>>

													</div>
												</fieldset>
											</div>


											<div class="col-md-4">
												<fieldset class="border" <?= $fieldset_bg ?>>
													<legend class="legend-inner float-none w-auto">Date Of Birth</legend>
													<div class="input-group">

														<input type="text" class="form-control" value="<?= @$val->dob ?>" readonly disabled <?= $fieldset_bg ?>>

													</div>
												</fieldset>







											</div>


											<div class="col-md-4">
												<fieldset class="border" <?= $fieldset_bg ?>>
													<legend class="legend-inner float-none w-auto">Nakshatra</legend>
													<div class="input-group">

														<input type="text" class="form-control" value="<?= @$val->nakshatra ?>" readonly disabled <?= $fieldset_bg ?>>



													</div>
												</fieldset>
											</div>


											<div class="col-md-4">
												<fieldset class="border" <?= $fieldset_bg ?>>
													<legend class="legend-inner float-none w-auto">Relationship</legend>
													<div class="input-group">

														<input type="text" class="form-control" value="<?= @$val->relationship ?>" readonly disabled <?= $fieldset_bg ?>>



													</div>
												</fieldset>
											</div>

											<div class="col-md-4">
												<fieldset class="border" <?= $fieldset_bg ?>>
													<legend class="legend-inner float-none w-auto">Anniversary</legend>
													<div class="input-group">

														<input type="text" class="form-control" value="<?= @$val->anniversaryDate ?>" readonly disabled <?= $fieldset_bg ?>>



													</div>


												</fieldset>
											</div>

											<div class="col-md-4">
												<fieldset class="border" <?= $fieldset_bg ?>>
													<legend class="legend-inner float-none w-auto">Status</legend>
													<div class="input-group">


														<input type="text" class="form-control" value="<?= @$val->status ?>" readonly disabled <?= $fieldset_bg ?>>




													</div>
												</fieldset>
											</div>

											<div class="col-md-4">


												<legend class="legend-inner float-none w-auto fw-bold">Household Indicator</legend>

												<div class="form-check form-check-inline" style="padding-bottom: 5px;">

													<input class="form-check-input" type="checkbox" id="inlineCheckboxYes<?= $key + 1 ?>" name="member_household_indicator[]" onclick="selectOnlyThis(<?= $key + 1 ?>, this)" value="YES" <?= @$val->householdInd == 'YES' ? 'checked' : '' ?> readonly disabled>

													<label class="form-check-label m-auto pt-2" for="inlineCheckboxYes<?= $key + 1 ?>">Yes</label>

												</div>



												<div class="form-check form-check-inline mx-4" style="padding-bottom: 5px;">

													<input class="form-check-input" type="checkbox" id="inlineCheckboxNo<?= $key + 1 ?>" name="member_household_indicator[]" onclick="selectOnlyThis(<?= $key + 1 ?>, this)" value="NO" <?= @$val->householdInd == 'YES' ? '' : 'checked' ?> readonly disabled>

													<label class="form-check-label m-auto pt-2" for="inlineCheckboxNo<?= $key + 1 ?>">No</label>

												</div>
											</div>

											<div class="col-md-4" id="member_email_section<?= $key + 1 ?>" <?= @$val->householdInd == 'YES' ? 'style="display:block"' : 'style="display:none"' ?>>

												<fieldset class="border" <?= $fieldset_bg ?>>
													<legend class="legend-inner float-none w-auto">Household Member Email</legend>
													<div class="input-group">

														<input type="text" class="form-control" value="<?= base64_decode(@$val->member_email) ?>" readonly disabled <?= $fieldset_bg ?>>


													</div>
												</fieldset>
											</div>
											<div class="col-md-4" id="member_phone_section<?= $key + 1 ?>" <?= @$val->householdInd == 'YES' ? 'style="display:block"' : 'style="display:none"' ?>>
												<fieldset class="border" <?= $fieldset_bg ?>>
													<legend class="legend-inner float-none w-auto">Household Member Phone</legend>
													<div class="input-group">


														<input type="text" class="form-control" value="<?= formatPhoneNumber(base64_decode(@$val->member_phone)) ?>" readonly disabled <?= $fieldset_bg ?>>

													</div>
												</fieldset>
											</div>






											<?php if ($key == 0) { ?>
												<div class="text-end py-4">

													<!-- <a class="extra-fields-customer btn btn-success btn-sm" style="border-radius:5px!important" href="#">Add More</a> -->



												</div>

											<?php } else { ?>

												<!-- <div class="text-end py-4"><a href="#" style="border-radius:5px!important" class="remove-field btn-remove-customer btn btn-danger btn-sm">Remove</a></div> -->

											<?php } ?>
										</div>


								<?php }
									$total_no_member = $key;
								} ?>
								<div class="customer_records_dynamic px-0"></div>
							</div>


							<input type="hidden" id="total_member_row" value="<?= $total_no_member + 1 ?>">
							<script type="text/javascript" id="newjs"></script>

						</fieldset>
						</form>
					</div>
				</div>
			</div>
			<!-- End Main content-->
		</div>
	</div>
	<!-- Bootstrap core JS-->
	<script src="<?= base_url('admin_assets/js/bootstrap.bundle.min.js'); ?>"></script>
	<!-- Core theme JS-->
	<script src="<?= base_url('admin_assets/js/theme.js'); ?>"></script>
	<script src="https://ajax.googleapis.com/ajax/libs/jquery/2.1.1/jquery.min.js"></script>
	<script src="<?= base_url('assets/js/jquery-ui.min.js'); ?>"></script>

	<script type="text/javascript">
		$("#heading").text('My Profile');
	</script>

</body>

</html>
