session->flashdata('success')) { ?> session->flashdata('danger')) { ?>
$staff) { // echo '
';
													// print_r($staff);


													$baseUrl = str_replace('/hr', '', base_url());

													if (empty($staff['photo'])) {

														$staffPhoto = $baseUrl . "common_assets/user.png";
													} else {

														$photoUrl = '../assets_admin/images/teacher-profile/' . $staff['photo'];
														if (file_exists($photoUrl)) {

															$staffPhoto = $baseUrl . "assets_admin/images/teacher-profile/" . $staff['photo'];
															// $staffPhoto = $baseUrl . "common_assets/user.png";
														} else {
															$staffPhoto = $baseUrl . "common_assets/user.png";
														}
													}

													if (empty($staff['document_photo_1'])) {

														$documentPhoto = $baseUrl . "common_assets/No-Image.jpg";
													} else {

														$documentPhotoURL = '../assets_admin/docs/staff-documents/' . $staff['document_photo_1'];
														if (file_exists($documentPhotoURL)) {

															$documentPhoto = $baseUrl . "assets_admin/docs/staff-documents/" . $staff['document_photo_1'];
															// $staffPhoto = $baseUrl . "common_assets/user.png";
														} else {
															$documentPhoto = $baseUrl . "common_assets/No-Image.jpg";
														}
													}

													if (empty($staff['resume'])) {

														$staffResume = $baseUrl . "common_assets/No-Image.jpg";
													} else {

														$resumeURL = '../assets_admin/docs/staff-documents/' . $staff['resume'];
														if (file_exists($resumeURL)) {

															$staffResume = $baseUrl . "assets_admin/docs/staff-documents/" . $staff['resume'];
															// $staffPhoto = $baseUrl . "common_assets/user.png";
														} else {
															$staffResume = $baseUrl . "common_assets/No-Image.jpg";
														}
													}

													if (empty($staff['joining_letter'])) {

														$joiningLetter = $baseUrl . "common_assets/No-Image.jpg";
													} else {

														$documentPhotoURL = '../assets_admin/docs/staff-documents/' . $staff['joining_letter'];
														if (file_exists($documentPhotoURL)) {

															$joiningLetter = $baseUrl . "assets_admin/docs/staff-documents/" . $staff['joining_letter'];
															// $staffPhoto = $baseUrl . "common_assets/user.png";
														} else {
															$joiningLetter = $baseUrl . "common_assets/No-Image.jpg";
														}
													}

													if (empty($staff['other_document'])) {

														$otherDocument = $baseUrl . "common_assets/No-Image.jpg";
													} else {

														$otherDocumentURL = '../assets_admin/docs/staff-documents/' . $staff['other_document'];
														if (file_exists($otherDocumentURL)) {

															$otherDocument = $baseUrl . "assets_admin/docs/staff-documents/" . $staff['other_document'];
															// $staffPhoto = $baseUrl . "common_assets/user.png";
														} else {
															$otherDocument = $baseUrl . "common_assets/No-Image.jpg";
														}
													}

													$address = array();
													$address[0] = $staff['address'];
													foreach ($provinces as $p_key => $province) {
														if ($province['id'] == $staff['province']) {
															// $address[0] = $province['id'];
															array_push($address, $province['name']);
														}
													}
													array_push($address, $staff['country']);


												?>
													
S.No Staff Id Name Role Department Designation Contact No. Joined Date Is Active Action