<?php if (!defined('ABSPATH')) die('Restricted Access'); ?>
<?php
/**
 * @param module 		module name - optional
 * module => id
 *layouts => from which layouts
 */
?>
<?php
$wpjobportal_html ='';
if ($wpjobportal_module) {
	$wpjobportal_html.= '<div id="wpjobportal-head">';
		switch ($wpjobportal_layouts) {
			case 'controlpanel':
				$wpjobportal_html.='<h1 class="wpjobportal-head-text">'. esc_html(__('Dashboard', 'wp-job-portal')).'</h1>
	        			<a class="wpjobportal-add-link orange-bg button" href="admin.php?page=wpjobportal_job&wpjobportallt=formjob" title="'. esc_attr(__('Add Job','wp-job-portal')).'">
	        				<img src="'.esc_url(WPJOBPORTAL_PLUGIN_URL).'includes/images/control_panel/dashboard/plus-icon.png" alt="'. esc_attr(__('plus icon','wp-job-portal')).'" />
	        				'. esc_html(__('Add Job','wp-job-portal')).'
	        			</a>
	        			<a class="wpjobportal-add-link button" href="admin.php?page=wpjobportal_job" title="'. esc_attr(__('All Jobs','wp-job-portal')).'">
	        				<img src="'.esc_url(WPJOBPORTAL_PLUGIN_URL).'includes/images/control_panel/dashboard/all-jobs.png" alt="'. esc_html(__('All Jobs','wp-job-portal')).'" />
	        				'. esc_html(__('All Jobs','wp-job-portal')).'
	        			</a>';
			break;
			case 'shortcodes':
				$wpjobportal_html.='<h1 class="wpjobportal-head-text">'. esc_html(__('Shortcodes', 'wp-job-portal')).'</h1>';
			break;
			case 'help':
				$wpjobportal_html.='<h1 class="wpjobportal-head-text">'. esc_html(__('Help', 'wp-job-portal')).'</h1>';
			break;
			case 'jobtype':
				$wpjobportal_html.='<h1 class="wpjobportal-head-text">'. esc_html(__('Job Types', 'wp-job-portal')).'</h1>
	        			<a class="wpjobportal-add-link button" href="'.esc_url_raw(admin_url('admin.php?page=wpjobportal_jobtype&wpjobportallt=formjobtype')).'" title="'. esc_attr(__('Add New Job Type','wp-job-portal')).'">
	        				<img src="'.esc_url(WPJOBPORTAL_PLUGIN_URL).'includes/images/control_panel/dashboard/plus-icon.png" alt="'. esc_attr(__('plus icon','wp-job-portal')).'" />
	        				'. esc_html(__('Add New Job Type','wp-job-portal')).'
	        			</a>';
			break;
			case 'slug':
				$wpjobportal_html.='<h1 class="wpjobportal-head-text">'. esc_html(__('Slug', 'wp-job-portal')).'</h1>
	        			<a class="wpjobportal-add-link button" href="'. wp_nonce_url(admin_url('admin.php?page=wpjobportal_slug&task=resetallslugs&action=wpjobportaltask'),'wpjobportal_slug_nonce').'" title="'. esc_attr(__('Reset All','wp-job-portal')).'">
	        				'. esc_html(__('Reset All','wp-job-portal')).'
	        			</a>';
			break;
			case 'stats':
				$wpjobportal_html.='<h1 class="wpjobportal-head-text">'. esc_html(__('Stats', 'wp-job-portal')).'</h1>';
			break;
			case 'translations':
				$wpjobportal_html.='<h1 class="wpjobportal-head-text">'. esc_html(__('Translations', 'wp-job-portal')).'</h1>';
			break;
			case 'systemerror':
				$wpjobportal_html.='<h1 class="wpjobportal-head-text">'. esc_html(__('Error Log', 'wp-job-portal')).'</h1>';
			break;
			case 'shift':
				$wpjobportal_html.='<h1 class="wpjobportal-head-text">'. esc_html(__('Shifts', 'wp-job-portal')).'</h1>
	        			<a class="wpjobportal-add-link button" href="'.esc_url_raw(admin_url('admin.php?page=wpjobportal_shift&wpjobportallt=formshift')).' title="'. esc_attr(__('Add New Shift','wp-job-portal')).'">
	        				<img src="'.esc_url(WPJOBPORTAL_PLUGIN_URL).'includes/images/control_panel/dashboard/plus-icon.png" alt="'. esc_attr(__('plus icon','wp-job-portal')).'" />
	        				'. esc_html(__('Add New Shift','wp-job-portal')).'
	        			</a>';
			break;
			case 'age':
				$wpjobportal_html.='<h1 class="wpjobportal-head-text">'. esc_html(__('Age', 'wp-job-portal')).'</h1>
	        			<a class="wpjobportal-add-link button" href="'.esc_url_raw(admin_url('admin.php?page=wpjobportal_age&wpjobportallt=formages')).'" title="'. esc_attr(__('Add New Age','wp-job-portal')).'">
	        				<img src="'.esc_url(WPJOBPORTAL_PLUGIN_URL).'includes/images/control_panel/dashboard/plus-icon.png" alt="'. esc_attr(__('plus icon','wp-job-portal')).'" />
	        				'. esc_html(__('Add New Age','wp-job-portal')).'
	        			</a>';
			break;
			case 'experience':
				$wpjobportal_html.='<h1 class="wpjobportal-head-text">'. esc_html(__('Experiences', 'wp-job-portal')).'</h1>
	        			<a class="wpjobportal-add-link button" href="'. esc_url_raw(admin_url('admin.php?page=wpjobportal_experience&wpjobportallt=formexperience')).'" title="'. esc_attr(__('Add New Experience','wp-job-portal')).'">
	        				<img src="'.esc_url(WPJOBPORTAL_PLUGIN_URL).'includes/images/control_panel/dashboard/plus-icon.png" alt="'. esc_attr(__('plus icon','wp-job-portal')).'" />
	        				'. esc_html(__('Add New Experience','wp-job-portal')).'
	        			</a>';
			break;
			case 'currency':
				$wpjobportal_html.='<h1 class="wpjobportal-head-text">'. esc_html(__('Currency', 'wp-job-portal')).'</h1>
	        			<a class="wpjobportal-add-link button" href="'. esc_url_raw(admin_url('admin.php?page=wpjobportal_currency&wpjobportallt=formcurrency')).'" title="'. esc_attr(__('Add New Currency','wp-job-portal')).'">
	        				<img src="'.esc_url(WPJOBPORTAL_PLUGIN_URL).'includes/images/control_panel/dashboard/plus-icon.png" alt="'. esc_attr(__('plus icon','wp-job-portal')).'" />
	        				'. esc_html(__('Add New Currency','wp-job-portal')).'
	        			</a>';
			break;
			case 'jobalert':
				$wpjobportal_html.='<h1 class="wpjobportal-head-text">'. esc_html(__('Job Alert', 'wp-job-portal')).'</h1>
	        			<a class="wpjobportal-add-link button" href="'. esc_url_raw(admin_url('admin.php?page=wpjobportal_jobalert&wpjobportallt=formjobalert')).'" title="'. esc_attr(__('Add New Job Alert','wp-job-portal')).'">
	        				<img src="'.esc_url(WPJOBPORTAL_PLUGIN_URL).'includes/images/control_panel/dashboard/plus-icon.png" alt="'. esc_attr(__('plus icon','wp-job-portal')).'" />
	        				'. esc_html(__('Add New Job Alert','wp-job-portal')).'
	        			</a>';
			break;
			case 'departmentque':
				$wpjobportal_html.='<h1 class="wpjobportal-head-text">'. esc_html(__('Departments Approval Queue', 'wp-job-portal')) .'</h1>';
			break;
			case 'department':
				$wpjobportal_html.='<h1 class="wpjobportal-head-text">'. esc_html(__('Departments', 'wp-job-portal')) .'</h1>
			        	<a class="wpjobportal-add-link button" href="'. esc_url_raw(admin_url('admin.php?page=wpjobportal_departments&wpjobportallt=formdepartment')).'" title="'. esc_attr(__('Add New Department','wp-job-portal')).'">
			        		<img src="'.esc_url(WPJOBPORTAL_PLUGIN_URL).'includes/images/control_panel/dashboard/plus-icon.png" alt="'. esc_attr(__('plus icon','wp-job-portal')).'" />
			        		'. esc_html(__('Add New Department','wp-job-portal')).'
		        		</a>';
			break;
			case 'company':
				$wpjobportal_html.='<h1 class="wpjobportal-head-text">'.esc_html(__('Companies', 'wp-job-portal')).'</h1>
	    				<a class="wpjobportal-add-link button" href="'. esc_url_raw(admin_url('admin.php?page=wpjobportal_company&wpjobportallt=formcompany')).'" title="'. esc_attr(__('Add New Company','wp-job-portal')).'">
	    					<img src="'.esc_url(WPJOBPORTAL_PLUGIN_URL).'includes/images/control_panel/dashboard/plus-icon.png" alt="'. esc_attr(__('plus icon','wp-job-portal')).'" />
	    					'. esc_html(__('Add New Company','wp-job-portal')).'
						</a>';
			break;
			case 'companyque':
				$wpjobportal_html.='<h1 class="wpjobportal-head-text">'. esc_html(__('Companies Approval Queue', 'wp-job-portal')).'</h1>';
			break;
			case 'joblist':
				$wpjobportal_html.='<h1 class="wpjobportal-head-text">'. esc_html(__('Jobs', 'wp-job-portal')) .'</h1>
	        			<a class="wpjobportal-add-link button" href="'. esc_url_raw(admin_url('admin.php?page=wpjobportal_job&wpjobportallt=formjob')).'" title="'.esc_attr(__('Add New Job','wp-job-portal')).'">
	        				<img src="'.esc_url(WPJOBPORTAL_PLUGIN_URL).'includes/images/control_panel/dashboard/plus-icon.png" alt="'. esc_attr(__('plus icon','wp-job-portal')).'" />
	        				'.esc_html(__('Add New Job','wp-job-portal')).'
	    				</a>';
			break;
			case 'jobapply':
				$wpjobportal_html.='<h1 class="wpjobportal-head-text">'. esc_html(__('Job Applied Resume', 'wp-job-portal')).'</h1>';
			break;
			case 'resume':
				$wpjobportal_html.='<h1 class="wpjobportal-head-text">'. esc_html(__('Resume', 'wp-job-portal')).'</h1>';
			break;
			case 'resumeque':
				$wpjobportal_html.='<h1 class="wpjobportal-head-text">'. esc_html(__('Resume Approval Queue', 'wp-job-portal')) .'</h1>';
			break;
			case 'jobapprovalque':
			 	$wpjobportal_html.='<h1 class="wpjobportal-head-text">'. esc_html(__('Jobs Approval Queue', 'wp-job-portal')) .'</h1>';
			break;
			case 'addnewage':
				$wpjobportal_msg = isset(wpjobportal::$_data[0]) ? esc_html(__('Edit', 'wp-job-portal')) : esc_html(__('Add New','wp-job-portal'));
	    		$wpjobportal_html.='<h1 class="wpjobportal-head-text">'. $wpjobportal_msg . ' ' . esc_html(__('Age', 'wp-job-portal')).'</h1>';
			break;
			case 'careerlevel':
				$wpjobportal_html.= '<h1 class="wpjobportal-head-text">'.esc_html(__('Career Levels', 'wp-job-portal')).'</h1>';
	            $wpjobportal_html.='<a class="wpjobportal-add-link button" href="'.esc_url_raw(admin_url('admin.php?page=wpjobportal_careerlevel&wpjobportallt=formcareerlevels')).'" title="'. esc_attr(__('Add New Career Level','wp-job-portal')).'">
	            			<img src="'.esc_url(WPJOBPORTAL_PLUGIN_URL).'includes/images/control_panel/dashboard/plus-icon.png" alt="'. esc_attr(__('plus icon','wp-job-portal')).'" />
	            			'. esc_html(__('Add New Career Level','wp-job-portal')).'
	        			</a>';
			break;
			case 'addnew':
				$wpjobportal_heading = isset(wpjobportal::$_data[0]) ? esc_html(__('Edit', 'wp-job-portal')) : esc_html(__('Add New','wp-job-portal'));
	    		$wpjobportal_html.='<h1 class="wpjobportal-head-text">'. $wpjobportal_heading . ' ' . esc_html(__('Career Levels', 'wp-job-portal')).'</h1>';
			break;
	    	case 'categories':
	    	 	$wpjobportal_html.='<h1 class="wpjobportal-head-text">'. esc_html(__('Categories', 'wp-job-portal')).'</h1>';
	        	$wpjobportal_html.='<a class="wpjobportal-add-link button" href="'. esc_url_raw(admin_url('admin.php?page=wpjobportal_category&wpjobportallt=formcategory')).'" title="'. esc_attr(__('Add New Category','wp-job-portal')).'">
	        				<img src="'.esc_url(WPJOBPORTAL_PLUGIN_URL).'includes/images/control_panel/dashboard/plus-icon.png" alt="'. esc_attr(__('plus icon','wp-job-portal')).'" />
	        				'. esc_html(__('Add New Category','wp-job-portal')).'
	    				</a>';
			break;
			case 'addcategories':
	    	 	$wpjobportal_heading = isset(wpjobportal::$_data[0]) ? esc_html(__('Edit', 'wp-job-portal')) : esc_html(__('Add New', 'wp-job-portal'));
	        	$wpjobportal_html.='<h1 class="wpjobportal-head-text">'. $wpjobportal_heading . ' ' . esc_html(__('Category', 'wp-job-portal')).'</h1>';
			break;
			case 'city':
				$wpjobportal_html.= '<h1 class="wpjobportal-head-text">'.esc_html(__('Cities', 'wp-job-portal')).'</h1>';
				$wpjobportal_html.='<a class="wpjobportal-add-link button" href="'.esc_url_raw(admin_url('admin.php?page=wpjobportal_city&wpjobportallt=formcity')).'" title="'. esc_attr(__('Add New City','wp-job-portal')).'">
							<img src="'.esc_url(WPJOBPORTAL_PLUGIN_URL).'includes/images/control_panel/dashboard/plus-icon.png" alt="'. esc_attr(__('plus icon','wp-job-portal')).'" />
							'. esc_html(__('Add New City','wp-job-portal')).'
						</a>';
			break;
			case 'cityadd':
				$wpjobportal_heading = isset(wpjobportal::$_data[0]) ? esc_html(__('Edit', 'wp-job-portal')) : esc_html(__('Add New', 'wp-job-portal'));
		        $wpjobportal_html.='<h1 class="wpjobportal-head-text">'. $wpjobportal_heading . ' ' . esc_html(__('City', 'wp-job-portal')).'</h1>';
			break;
			case 'countries':
	            $wpjobportal_html.='<h1 class="wpjobportal-head-text">'.esc_html(__('Countries', 'wp-job-portal')).'</h1>';
	         	$wpjobportal_html.='<a class="wpjobportal-add-link button" href="'.esc_url_raw(admin_url('admin.php?page=wpjobportal_country&wpjobportallt=formcountry')).'" title="'. esc_attr(__('Add New Country','wp-job-portal')).'">
	         				<img src="'.esc_url(WPJOBPORTAL_PLUGIN_URL).'includes/images/control_panel/dashboard/plus-icon.png" alt="'. esc_attr(__('plus icon','wp-job-portal')).'" />
	         				'. esc_html(__('Add New Country','wp-job-portal')).'
	     				</a>';
			break;
			case 'newcountry':
				$wpjobportal_heading = isset(wpjobportal::$_data[0]) ? esc_html(__('Edit', 'wp-job-portal')) : esc_html(__('Add New', 'wp-job-portal'));
		        $wpjobportal_html.='<h1 class="wpjobportal-head-text">'. $wpjobportal_heading . ' ' . esc_html(__('Country', 'wp-job-portal')).'</h1>';
			break;
			case 'highesteducation':
				$wpjobportal_html.='<h1 class="wpjobportal-head-text">'. esc_html(__('Educations', 'wp-job-portal')).'</h1>';
	            $wpjobportal_html.='<a class="wpjobportal-add-link button" href="'. esc_url_raw(admin_url('admin.php?page=wpjobportal_highesteducation&wpjobportallt=formhighesteducation')).'" title="'. esc_attr(__('Add New Education','wp-job-portal')).'">
	            			<img src="'.esc_url(WPJOBPORTAL_PLUGIN_URL).'includes/images/control_panel/dashboard/plus-icon.png" alt="'. esc_attr(__('plus icon','wp-job-portal')).'" />
	            			'. esc_html(__('Add New Education','wp-job-portal')).'
	        			</a>';
			break;
			case 'educationsts':
				$wpjobportal_heading = isset(wpjobportal::$_data[0]) ? esc_html(__('Edit', 'wp-job-portal')) : esc_html(__('Add New', 'wp-job-portal'));
		        $wpjobportal_html.='<h1 class="wpjobportal-head-text">'. $wpjobportal_heading . ' ' . esc_html(__('Education', 'wp-job-portal')).'</h1>';
			break;
			case 'jobstatus':
				$wpjobportal_html.='<h1 class="wpjobportal-head-text">'. esc_html(__('Job Status', 'wp-job-portal')).'</h1>
	        			<a class="wpjobportal-add-link button" href="?page=wpjobportal_jobstatus&wpjobportallt=formjobstatus" title="'. esc_attr(__('Add New Job Status','wp-job-portal')).'">
	        				<img src="'.esc_url(WPJOBPORTAL_PLUGIN_URL).'includes/images/control_panel/dashboard/plus-icon.png" alt="'. esc_attr(__('plus icon','wp-job-portal')).'" />
	        				'. esc_html(__('Add New Job Status','wp-job-portal')).'
	        			</a>';
			break;
			case 'jobstatusadd':
				$wpjobportal_heading = isset(wpjobportal::$_data[0]) ? esc_html(__('Edit', 'wp-job-portal')) : esc_html(__('Add New', 'wp-job-portal'));
		        $wpjobportal_html.='<h1 class="wpjobportal-head-text">'.$wpjobportal_heading . ' ' . esc_html(__('Job Status', 'wp-job-portal')).'</h1>';
			break;
			case 'salaryrangetype':
				$wpjobportal_html.='<h1 class="wpjobportal-head-text">'. esc_html(__('Salary Range Type', 'wp-job-portal')).'</h1>';
	        	$wpjobportal_html.='<a class="wpjobportal-add-link button" href="'. esc_url_raw(admin_url('admin.php?page=wpjobportal_salaryrangetype&wpjobportallt=formsalaryrangetype')).'" title="'. esc_attr(__('Add New Salary Range Type','wp-job-portal')).'">
	        				<img src="'.esc_url(WPJOBPORTAL_PLUGIN_URL).'includes/images/control_panel/dashboard/plus-icon.png" alt="'. esc_attr(__('plus icon','wp-job-portal')).'" />
	        				'. esc_html(__('Add New Salary Range Type','wp-job-portal')).'
	    				</a>';
			break;
			case 'rangetypeadd':
				$wpjobportal_heading = isset(wpjobportal::$_data[0]) ? esc_html(__('Edit', 'wp-job-portal')) : esc_html(__('Add New', 'wp-job-portal'));
	        	$wpjobportal_html.='<h1 class="wpjobportal-head-text">'. $wpjobportal_heading . ' ' . esc_html(__('Salary Range Type', 'wp-job-portal')).'</h1>';
			break;
			case 'state':
				$wpjobportal_html.='<h1 class="wpjobportal-head-text">'. esc_html(__('States', 'wp-job-portal')).'</h1>';
	    		$wpjobportal_html.='<a class="wpjobportal-add-link button" href="'.esc_url_raw(admin_url('admin.php?page=wpjobportal_state&wpjobportallt=formstate')).'" title="'. esc_attr(__('Add New State','wp-job-portal')).'">
	    					<img src="'.esc_url(WPJOBPORTAL_PLUGIN_URL).'includes/images/control_panel/dashboard/plus-icon.png" alt="'. esc_attr(__('plus icon','wp-job-portal')).'" />
	    					'. esc_html(__('Add New State','wp-job-portal')).'
						</a>';
			break;
			case 'jobs':
				$wpjobportal_html.='<h1 class="wpjobportal-head-text">'. ($wpjobportal_job ? esc_html(__('Edit', 'wp-job-portal')) : esc_html(__('Add New', 'wp-job-portal'))) . ' ' . esc_html(__('Job', 'wp-job-portal')).'</h1>';
			break;
			case 'activitylog':
				$wpjobportal_html.='<h1 class="wpjobportal-head-text">'. esc_html(__('Activity Log', 'wp-job-portal')) .'</h1>';
			break;
			case 'addcompany':
				$wpjobportal_html.='<h1 class="wpjobportal-head-text">'. esc_html(__('Companies', 'wp-job-portal')).'</h1>
	    				<a class="wpjobportal-add-link button" href="'. esc_url_raw(admin_url('admin.php?page=wpjobportal_company&wpjobportallt=formcompany')).'" title="'. esc_attr(__('Add New Company','wp-job-portal')).'">
	    					<img src="'.esc_url(WPJOBPORTAL_PLUGIN_URL).'includes/images/control_panel/dashboard/plus-icon.png" alt="'. esc_attr(__('plus icon','wp-job-portal')).'" />
	    					'. esc_html(__('Add New Company','wp-job-portal')).'
						</a>';
			break;
			case 'comp':
				$wpjobportal_html.='<h1 class="wpjobportal-head-text">'.($wpjobportal_company ? esc_html(__('Edit', 'wp-job-portal')) : esc_html(__('Add New', 'wp-job-portal'))) . ' ' . esc_html(__('Company', 'wp-job-portal')).'</h1>';
	        break;
			case 'viewresume':
				$wpjobportal_html.='<h1 class="wpjobportal-head-text">'. esc_html(__('View Resume', 'wp-job-portal')) .'</h1>';
			break;
			case 'formresume':
				$wpjobportal_html.='<h1 class="wpjobportal-head-text">'. esc_html(__('Resume', 'wp-job-portal')) .'</h1>';
			break;
			case 'users':
				$wpjobportal_html.= '<h1 class="wpjobportal-head-text">'. esc_html(__('Users', 'wp-job-portal')) .'</h1>
					    <a class="wpjobportal-add-link button" href="'. esc_url_raw(admin_url('admin.php?page=wpjobportal_user&wpjobportallt=assignrole')).'" title="'. esc_attr(__('Assign Role', 'wp-job-portal')) .'">
					    	<img src="'.esc_url(WPJOBPORTAL_PLUGIN_URL).'includes/images/control_panel/dashboard/plus-icon.png" alt="'. esc_attr(__('plus icon','wp-job-portal')).'" />
					    	'. esc_html(__('Assign Role', 'wp-job-portal')) .'
				    	</a>';
			break;
			case 'assignrole':
				$wpjobportal_html .='<h1 class="wpjobportal-head-text">'. esc_html(__('Assign Role', 'wp-job-portal')).'</h1>';
	        break;
			case 'userform':
				$wpjobportal_html.='<h1 class="wpjobportal-head-text">'. esc_html(__('Change Role', 'wp-job-portal')).'</h1>';
	    	break;
			case 'folder':
				$wpjobportal_html.='<h1 class="wpjobportal-head-text">'. esc_html(__('Folders', 'wp-job-portal')).'</h1>';
				$wpjobportal_html.='<a class="wpjobportal-add-link button" href="'. esc_url_raw(admin_url('admin.php?page=wpjobportal_folder&wpjobportallt=formfolder')).'" title="'. esc_attr(__('Add New Folder','wp-job-portal')).'">
							<img src="'.esc_url(WPJOBPORTAL_PLUGIN_URL).'includes/images/control_panel/dashboard/plus-icon.png" alt="'. esc_attr(__('plus icon','wp-job-portal')).'" />
							'. esc_html(__('Add New Folder','wp-job-portal')).'
						</a>';
	    	break;
			case 'folderstat':
				$wpjobportal_heading = (isset($wpjobportal_data) && !empty($wpjobportal_data)) ? esc_html(__('Edit', 'wp-job-portal')) : esc_html(__('Add New', 'wp-job-portal'));
				$wpjobportal_html.='<h1 class="wpjobportal-head-text">'. $wpjobportal_heading. ' ' . esc_html(__('Folder', 'wp-job-portal')).'</h1>';
			break;
			case 'folder-que':
				$wpjobportal_html .='<h1 class="wpjobportal-head-text">'. esc_html(__('Folders Approval Queue', 'wp-job-portal')).'</h1>';
	        break;
			case 'tag':
				if(empty($wpjobportal_heading)){
					$wpjobportal_heading = '';
				}
				$wpjobportal_html .='<h1 class="wpjobportal-head-text">'. $wpjobportal_heading . ' ' . esc_html(__('Tag', 'wp-job-portal')).'</h1>';
			break;
			case 'tags':
				$wpjobportal_html .= '<h1 class="wpjobportal-head-text">'.esc_html(__('Tags', 'wp-job-portal')) .'</h1>
	        			<a class="wpjobportal-add-link button" href="'. esc_url_raw(admin_url('admin.php?page=wpjobportal_tag&wpjobportallt=formtag')) .'" title="'. esc_attr(__('Add New Tag','wp-job-portal')).'">
	        				<img src="'.esc_url(WPJOBPORTAL_PLUGIN_URL).'includes/images/control_panel/dashboard/plus-icon.png" alt="'. esc_attr(__('plus icon','wp-job-portal')).'" />
	        				'. esc_html(__('Add New Tag','wp-job-portal')).'
	    				</a>';
			break;
			case 'message':
				$wpjobportal_html .='<h1 class="wpjobportal-head-text">'. esc_html(__('Messages', 'wp-job-portal')).'</h1>';
			break;
			case 'messageque':
				$wpjobportal_html .='<h1 class="wpjobportal-head-text">'. esc_html(__('Messages Approval Queue', 'wp-job-portal')).'</h1>';
			break;
			case 'messagedetail':
				$wpjobportal_html .='<h1 class="wpjobportal-head-text">'. esc_html(__('Messages', 'wp-job-portal')).'</h1>';
	        break;
			case 'package':
				$wpjobportal_html .='<h1 class="wpjobportal-head-text">'. esc_html(__('Package','wp-job-portal')).'</h1>';
				$wpjobportal_html .= '<a class="wpjobportal-add-link" href="'.esc_url_raw(admin_url('admin.php?page=wpjobportal_package&wpjobportallt=formpackage')).'" title="'. esc_attr(__('Add New Package','wp-job-portal')).'">
							<img src="'.esc_url(WPJOBPORTAL_PLUGIN_URL).'includes/images/control_panel/dashboard/plus-icon.png" alt="'. esc_attr(__('plus icon','wp-job-portal')).'" />
							'. esc_html(__('Add New Package','wp-job-portal')).'
						</a>';
			break;
			case 'formpackage':
				$wpjobportal_html .='<h1 class="wpjobportal-head-text">';
					if($wpjobportal_package) $wpjobportal_html .= esc_html(__('Edit Package', 'wp-job-portal'));
					else $wpjobportal_html .= esc_html(__('Add New Package', 'wp-job-portal'));
					$wpjobportal_html .= '</h1>';
			break;
			case 'customfield':
				$wpjobportal_heading = isset(wpjobportal::$_data[0]['fieldvalues']) ? esc_html(__('Edit', 'wp-job-portal')) : esc_html(__('Add', 'wp-job-portal'));
        		$wpjobportal_html .= '<h1 class="wpjobportal-head-text">'. $wpjobportal_heading . ' ' . esc_html(__('User Field', 'wp-job-portal')).'</h1>';
				break;
			case 'coverletter':
					$wpjobportal_html .='<h1 class="wpjobportal-head-text">'. esc_html(__('Cover Letters', 'wp-job-portal')).'</h1>';
			break;
			case 'coverletterque':
					$wpjobportal_html .='<h1 class="wpjobportal-head-text">'. esc_html(__('Cover Letter Approval Queue', 'wp-job-portal')).'</h1>';
			break;
			case 'addonstatus':
					$wpjobportal_addons_auto_update = wpjobportal::$_config->getConfigValue('wpjobportal_addons_auto_update');
					$wpjobportal_html .='
						<div class="wpjobportal-head-addons-status-wrp">
							<h1 class="wpjobportal-head-text">'. esc_html(__('Addons Status', 'wp-job-portal')).'</h1>
							<div class="wpjobportal-head-addons-status-update">
								'. esc_html(__('Addon will automatically update to the newest version', 'wp-job-portal'));
								if($wpjobportal_addons_auto_update == 1 ){
									$wpjobportal_html .= ' <a href="'.esc_url(wp_nonce_url(admin_url('admin.php?page=wpjobportal_configuration&task=saveautoupdateconfiguration&action=wpjobportaltask&wpjobportal_addons_auto_update=0'),'wpjobportal_configuration_nonce')).'" class="wpjobportal-head-addons-status-update-onbtn">'. esc_html(__('Auto Update: On', 'wp-job-portal')).'</a>';
								}else{
									$wpjobportal_html .= ' <a href="'.esc_url(wp_nonce_url(admin_url('admin.php?page=wpjobportal_configuration&task=saveautoupdateconfiguration&action=wpjobportaltask&wpjobportal_addons_auto_update=1'),'wpjobportal_configuration_nonce')).'" class="wpjobportal-head-addons-status-update-offbtn">'. esc_html(__('Auto Update: Off', 'wp-job-portal')).'</a>';
								}

							$wpjobportal_html .= '
							</div>
						</div>
					';
			break;
			case 'seooptions':
					$wpjobportal_html .='<h1 class="wpjobportal-head-text">'. esc_html(__('SEO', 'wp-job-portal')).'</h1>';
			break;
			case 'loadaddressdata':
					$wpjobportal_html .='<h1 class="wpjobportal-head-text">'. esc_html(__('Load Address Data', 'wp-job-portal')).'</h1>';
			break;
			case 'importdata':
					$wpjobportal_html .='<h1 class="wpjobportal-head-text">'. esc_html(__('Import Data', 'wp-job-portal')).'</h1>';
			break;
			case 'importresult':
					$wpjobportal_html .='<h1 class="wpjobportal-head-text">'. esc_html(__('Import Data Report', 'wp-job-portal')).'</h1>';
			break;
			case 'playground':
					$wpjobportal_html .='<h1 class="wpjobportal-head-text">'. esc_html(__('AI Content Generation', 'wp-job-portal')).'</h1>';
			break;
			case 'zywraplogs':
					$wpjobportal_html .='<h1 class="wpjobportal-head-text">'. esc_html(__('Zywrap Logs', 'wp-job-portal')).'</h1>';
			break;
			case 'hook_reference':
					$wpjobportal_html .='<h1 class="wpjobportal-head-text">'. esc_html(__('Hook Reference Documentation', 'wp-job-portal')).'</h1>';
			break;
		}
	$wpjobportal_html.=  '</div>';
	echo wp_kses($wpjobportal_html, WPJOBPORTAL_ALLOWED_TAGS);
}
?>

