<?php
if (!defined('ABSPATH')) {
	exit; // Exit if accessed directly
}

if (!class_exists('Civi_Admin')) {
	/**
	 * Class Civi_Admin
	 */
	class Civi_Admin
	{

		/**
		 * Remove admin bar
		 * @return bool
		 */
		function remove_admin_bar()
		{
			if (!current_user_can('administrator') && !is_admin()) {
				show_admin_bar(false);
			}
		}

		/**
		 * Check if it is a jobs edit page.
		 * @return bool
		 */
		public function is_civi_admin()
		{
			if (is_admin()) {
				global $pagenow;
				if (in_array($pagenow, array('edit.php', 'post.php', 'post-new.php', 'edit-tags.php'))) {
					global $post_type;
					if ('jobs' == $post_type) {
						return true;
					}
				}
			}
			return false;
		}

		/**
		 * Register admin_menu
		 */
		public function admin_menu()
		{
			$enable_claim_listing = civi_get_option('enable_claim_listing', '1');
			if ($enable_claim_listing) :
				add_menu_page(
					esc_html__('Claim Listing', 'civi-framework'),
					esc_html__('Claim Listing', 'civi-framework'),
					'manage_options',
					'claim_listing',
					array($this, 'menu_claim_listing_callback'),
					'dashicons-list-view',
					12
				);
			endif;
		}

		public function menu_claim_listing_callback()
		{
			$claim_email = $claim_name = $claim_username = $claim_status = '';

			$meta_query = array(
				'relative' => 'AND',
				array(
					'key' => 'civi-claim_request',
					'value' => 1,
					'compare' => '=',
				),
			);
			if (isset($_GET['claim_name']) && $_GET['claim_name'] != '') {
				$claim_name = $_GET['claim_name'];
				$meta_query[] = array(
					'key' => 'civi-cd_your_name',
					'value' => $_GET['claim_name'],
					'compare' => 'LIKE',
				);
			}
			if (isset($_GET['claim_email']) && $_GET['claim_email'] != '') {
				$claim_email = $_GET['claim_email'];
				$meta_query[] = array(
					'key' => 'civi-cd_your_email',
					'value' => $_GET['claim_email'],
					'compare' => 'LIKE',
				);
			}
			if (isset($_GET['claim_username']) && $_GET['claim_username'] != '') {
				$claim_username = $_GET['claim_username'];
				$meta_query[] = array(
					'key' => 'civi-cd_your_username',
					'value' => $_GET['claim_username'],
					'compare' => 'LIKE',
				);
			}
			if (isset($_GET['claim_status']) && $_GET['claim_status'] != '') {
				$claim_status = $_GET['claim_status'];
				$meta_query[] = array(
					'key' => 'civi-cd_status',
					'value' => $_GET['claim_status'],
					'compare' => '=',
				);
			}
			$paged = isset($_REQUEST['paged']) ? max(1, (int)$_REQUEST['paged']) : 1;
			$args = array(
				'post_type' => 'jobs',
				'posts_per_page' => 20,
				'paged' => $paged,
				'post_status' => 'publish',
				'meta_query' => $meta_query,
			);
			// The Query
			$the_query = new WP_Query($args);
			$count = $the_query->found_posts;
?>
			<div class="civi-wrap wrap about-wrap claim-wrap">
				<div class="entry-search">
					<div class="claim-action">
						<a href="#" class="button button-delete"><?php esc_html_e('Delete', 'civi-framework'); ?></a>
					</div>
					<form action="" method="GET" class="claimFilter">
						<div class="field-group">
							<input type="text" name="claim_name" value="<?php echo $claim_name; ?>" placeholder="<?php esc_html_e('Name', 'civi-framework'); ?>">
							<input type="email" name="claim_email" value="<?php echo $claim_email; ?>" placeholder="<?php esc_html_e('Email', 'civi-framework'); ?>">
							<input type="text" name="claim_username" value="<?php echo $claim_username; ?>" placeholder="<?php esc_html_e('Username', 'civi-framework'); ?>">
							<select name="claim_status" id="claim_status">
								<option value=""><?php esc_html_e('All Status', 'civi-framework'); ?></option>
								<option value="pending" <?php if ($claim_status == 'pending') {
															echo 'selected';
														} ?>><?php esc_html_e('Pending', 'civi-framework'); ?></option>
								<option value="accept" <?php if ($claim_status == 'accept') {
															echo 'selected';
														} ?>><?php esc_html_e('Accept', 'civi-framework'); ?></option>
								<option value="refuse" <?php if ($claim_status == 'refuse') {
															echo 'selected';
														} ?>><?php esc_html_e('Refuse', 'civi-framework'); ?></option>
							</select>
							<input type="hidden" name="page" value="claim_listing">
							<input type="submit" name="submit" value="<?php esc_html_e('Filter', 'civi-framework'); ?>">
						</div>
					</form>
					<div class="total"><?php printf(_n('%s item', '%s items', $count, 'civi-framework'), '<span class="count">' . esc_html($count) . '</span>'); ?></div>
				</div>

				<div class="wrap-content">
					<form action="" method="POST">
						<table class="table-changelogs">
							<thead>
								<tr>
									<th><input type="checkbox" id="checkall" name="claim_item"></th>
									<th><?php esc_html_e('Name', 'civi-framework'); ?></th>
									<th><?php esc_html_e('Email', 'civi-framework'); ?></th>
									<th><?php esc_html_e('Username', 'civi-framework'); ?></th>
									<th><?php esc_html_e('Listing Url', 'civi-framework'); ?></th>
									<th><?php esc_html_e('Messager', 'civi-framework'); ?></th>
									<th><?php esc_html_e('Status', 'civi-framework'); ?></th>
									<th><?php esc_html_e('Action', 'civi-framework'); ?></th>
								</tr>
							</thead>
							<tbody>
								<?php
								// The Loop
								if ($the_query->have_posts()) {

									$i = 0;
									while ($the_query->have_posts()) {
										$the_query->the_post();
										$i++;
										$id = get_the_ID();
										$cd_your_name = get_post_meta($id, CIVI_METABOX_PREFIX . 'cd_your_name', true);
										$cd_your_email = get_post_meta($id, CIVI_METABOX_PREFIX . 'cd_your_email', true);
										$cd_your_listing = get_post_meta($id, CIVI_METABOX_PREFIX . 'cd_your_listing', true);
										$cd_your_username = get_post_meta($id, CIVI_METABOX_PREFIX . 'cd_your_username', true);
										$cd_messager = get_post_meta($id, CIVI_METABOX_PREFIX . 'cd_messager', true);
										$cd_status = get_post_meta($id, CIVI_METABOX_PREFIX . 'cd_status', true);
										$verified_listing = get_post_meta($id, CIVI_METABOX_PREFIX . 'verified_listing', true);
										echo '<tr>';
										echo '<td><input type="checkbox" name="claim_item"></td>';
										echo '<td>' . $cd_your_name . '</td>';
										echo '<td>' . $cd_your_email . '</td>';
										echo '<td>' . $cd_your_username . '</td>';
										echo '<td><a href="' . $cd_your_listing . '" target="_Blank">' . $cd_your_listing . '</a></td>';
										echo '<td>' . $cd_messager . '</td>';
										if ($cd_status == 'pending') {
											$value = 'pending';
										} else if ($verified_listing == 1) {
											$value = 'accept';
										} else {
											$value = 'refuse';
										}
										$data = 'data-status="' . $value . '"';
										echo '<td class="status"' . $data . '>' . $value . '</td>';
										echo '<td>
                                                <input type="submit" data-status="accept" data-jobs_id="' . $id . '" class="button button-primary" value="' . esc_attr('Accept', 'civi-framework') . '">
                                                <input type="submit" data-status="refuse" data-jobs_id="' . $id . '" class="button button-secondary" value="' . esc_attr('Refuse', 'civi-framework') . '">
                                                <input type="submit" data-status="delete" data-jobs_id="' . $id . '" class="button button-delete" value="' . esc_attr('Delete', 'civi-framework') . '"></td>';
										echo '</tr>';
									}
								} else {
									echo '<tr class="align-center">';
									echo '<td colspan="7">' . esc_attr('No result', 'civi-framework') . '</td>';
									echo '</tr>';
								}
								/* Restore original Post Data */
								wp_reset_postdata();
								?>
							</tbody>
						</table>
						<div class="pagination">
							<?php
							$big = 999999999; // need an unlikely integer

							echo paginate_links(array(
								'base' => admin_url('admin.php?page=claim_listing&paged=%#%'),
								'format' => '?paged=%#%',
								'current' => max(1, $paged),
								'total' => $the_query->max_num_pages,
								'prev_text' => '<i class="far fa-angle-left"></i>',
								'next_text' => '<i class="far fa-angle-right"></i>',
							));
							?>
						</div>
						<div class="civi-loading-effect"><span class="civi-dual-ring small"></span></div>
					</form>
				</div><!-- end .wrap-content -->
			</div>
<?php
		}

		/**
		 * Register post_type
		 * @param $post_types
		 * @return mixed
		 */
		public function register_post_type($post_types)
		{
			$post_types['jobs'] = array(
				'labels' => array(
					'name' => esc_html__('Jobs', 'civi-framework'),
					'singular_name' => esc_html__('Jobs', 'civi-framework'),
					'all_items' => esc_html__('Jobs', 'civi-framework'),
				),
				'supports' => array('title', 'editor', 'excerpt', 'author', 'thumbnail', 'revisions', 'page-attributes', 'comments'),
				'menu_icon' => 'dashicons-hammer',
				'can_export' => true,
				'show_in_rest' => true,
				'capability_type' => 'jobs',
				'map_meta_cap' => true,
				'rewrite' => array(
					'slug' => apply_filters('civi_jobs_slug', 'jobs'),
					'with_front' => false,
				),
				'show_ui'	=> true,
				'menu_position' => 3,
				'has_archive' => apply_filters('civi_jobs_has_archive', 'jobs'),
				'show_in_menu' => true,
			);

			$post_types['applicants'] = array(
				'labels' => array(
					'name' => esc_html__('Applicants', 'civi-framework'),
					'singular_name' => esc_html__('Applicants', 'civi-framework'),
					'all_items' => esc_html__('Applicants', 'civi-framework'),
				),
				'menu_icon' => 'dashicons-universal-access-alt',
				'capabilities' => $this->get_applicants_capabilities(),
				'map_meta_cap' => true,
				'supports' => array('title'),
				'rewrite' => array(
					'slug' => apply_filters('civi_applicants_slug', 'applicants'),
				),
				'show_in_admin_bar' => true,
				'menu_position' => 4,
			);

			if (civi_get_option('enable_job_alerts') === '1') {
				$post_types['job_alerts'] = array(
					'labels' => array(
						'name' => esc_html__('Job Alerts', 'civi-framework'),
						'singular_name' => esc_html__('Job Alerts', 'civi-framework'),
						'all_items' => esc_html__('Job Alerts', 'civi-framework'),
					),
					'menu_icon'         => 'dashicons-email-alt',
					'map_meta_cap' => true,
					'supports' => array('title'),
					'show_in_admin_bar' => true,
					'menu_position' => 5,
				);
			}

			$post_types['company'] = array(
				'labels' => array(
					'name' => esc_html__('Companies', 'civi-framework'),
					'singular_name' => esc_html__('Companies', 'civi-framework'),
					'all_items' => esc_html__('Companies', 'civi-framework'),
				),
				'supports' => array('title', 'editor', 'excerpt', 'author', 'thumbnail', 'comments'),
				'menu_icon' => 'dashicons-admin-multisite',
				'can_export' => true,
				'show_in_rest' => true,
				'capability_type' => 'company',
				'map_meta_cap' => true,
				'rewrite' => array(
					'slug' => apply_filters('civi_company_slug', 'company'),
					'with_front' => false,
				),
				'has_archive' => apply_filters('civi_company_has_archive', 'company'),
				'show_in_admin_bar' => true,
				'menu_position' => 6,
			);

			$post_types['package'] = array(
				'labels' => array(
					'name' => esc_html__('Package', 'civi-framework'),
					'singular_name' => esc_html__('Package', 'civi-framework'),
					'all_items' => esc_html__('Package', 'civi-framework'),
				),
				'supports' => array('title', 'thumbnail'),
				'menu_icon' => 'dashicons-archive',
				'can_export' => true,
				'show_in_rest' => true,
				'capability_type' => 'package',
				'map_meta_cap' => true,
				'rewrite' => array(
					'slug' => apply_filters('civi_package_slug', 'package'),
				),
				'show_ui'	=> true,
				'show_in_menu' => true,
				'menu_position' => 7,
			);

			$post_types['user_package'] = array(
				'labels' => array(
					'name' => esc_html__('User Packages', 'civi-framework'),
					'singular_name' => esc_html__('User Packages', 'civi-framework'),
					'all_items' => esc_html__('User Packages', 'civi-framework'),
				),
				'supports' => array('title', 'excerpt'),
				'menu_icon' => 'dashicons-money',
				'can_export' => true,
				'capabilities' => $this->get_user_package_capabilities(),
				'map_meta_cap' => true,
				'rewrite' => array(
					'slug' => apply_filters('civi_user_package_slug', 'user_package'),
				),
				'show_ui'	=> true,
				'show_in_menu' => true,
				'menu_position' => 8,
			);

			$post_types['invoice'] = array(
				'labels' => array(
					'name' => esc_html__('Invoices', 'civi-framework'),
					'singular_name' => esc_html__('Invoices', 'civi-framework'),
					'all_items' => esc_html__('Invoices', 'civi-framework'),
				),
				'supports' => array('title', 'excerpt'),
				'menu_icon' => 'dashicons-list-view',
				'capabilities' => $this->get_invoice_capabilities(),
				'map_meta_cap' => true,
				'rewrite' => array(
					'slug' => apply_filters('civi_invoice_slug', 'invoice'),
				),
				'show_ui'	=> true,
				'show_in_menu' => true,
				'menu_position' => 9,
			);

			if (civi_get_option('enable_post_type_service') === '1') {
				$post_types['service_order'] = array(
					'labels' => array(
						'name' => esc_html__('Service Order', 'civi-framework'),
						'singular_name' => esc_html__('Service Order', 'civi-framework'),
						'all_items' => esc_html__('Service Order', 'civi-framework'),
					),
					'supports' => array('title'),
					'menu_icon' => 'dashicons-printer',
					'capabilities' => $this->get_order_capabilities(),
					'map_meta_cap' => true,
					'rewrite' => array(
						'slug' => apply_filters('civi_service_order_slug', 'service_order'),
					),
					'show_ui'	=> true,
					'show_in_menu' => true,
					'menu_position' => 10,
				);
				$post_types['service_withdraw'] = array(
					'labels' => array(
						'name' => esc_html__('Service Withdraw', 'civi-framework'),
						'singular_name' => esc_html__('Service Withdraw', 'civi-framework'),
						'all_items' => esc_html__('Service Withdraw', 'civi-framework'),
					),
					'supports' => array('title'),
					'menu_icon' => 'dashicons-money-alt',
					'capabilities' => $this->get_service_withdraw_capabilities(),
					'map_meta_cap' => true,
					'rewrite' => array(
						'slug' => apply_filters('civi_service_withdraw_slug', 'service_withdraw'),
					),
					'show_ui'	=> true,
					'show_in_menu' => true,
					'menu_position' => 11,
				);
			}

			$post_types['candidate'] = array(
				'labels' => array(
					'name' => esc_html__('Candidates', 'civi-framework'),
					'singular_name' => esc_html__('Candidates', 'civi-framework'),
					'all_items' => esc_html__('Candidates', 'civi-framework'),
				),
				'supports' => array('title', 'editor', 'excerpt', 'author', 'thumbnail', 'page-attributes', 'comments'),
				'menu_icon' => 'dashicons-buddicons-buddypress-logo',
				'can_export' => true,
				'show_in_rest' => true,
				'capabilities' => $this->get_candidate_capabilities(),
				'map_meta_cap' => true,
				'rewrite' => array(
					'slug' => apply_filters('civi_candidate_slug', 'candidate'),
					'with_front' => false,
				),
				'has_archive' => apply_filters('civi_candidate_has_archive', 'candidate'),
				'show_ui'	=> true,
				'show_in_menu' => true,
				'menu_position' => 12,
			);

			if (civi_get_option('enable_post_type_service') === '1') {
				$post_types['service'] = array(
					'labels' => array(
						'name' => esc_html__('Services', 'civi-framework'),
						'singular_name' => esc_html__('Services', 'civi-framework'),
						'all_items' => esc_html__('Services', 'civi-framework'),
					),
					'supports' => array('title', 'editor', 'excerpt', 'author', 'thumbnail', 'revisions', 'page-attributes', 'comments'),
					'menu_icon' => 'dashicons-hammer',
					'can_export' => true,
					'show_in_rest' => true,
					'map_meta_cap' => true,
					'rewrite' => array(
						'slug' => apply_filters('civi_service_slug', 'services'),
						'with_front' => false,
					),
					'show_ui'	=> true,
					'has_archive' => apply_filters('civi_service_has_archive', 'services'),
					'show_in_menu' => true,
					'menu_position' => 13,
				);
			}

			$post_types['candidate_package'] = array(
				'labels' => array(
					'name' => esc_html__('Package', 'civi-framework'),
					'singular_name' => esc_html__('Package', 'civi-framework'),
					'all_items' => esc_html__('Package', 'civi-framework'),
				),
				'supports' => array('title', 'thumbnail'),
				'menu_icon' => 'dashicons-archive',
				'can_export' => true,
				'show_in_rest' => true,
				'map_meta_cap' => true,
				'rewrite' => array(
					'slug' => apply_filters('civi_candidate_package_slug', 'candidate_package'),
				),
				'show_ui'	=> true,
				'show_in_menu' => true,
				'menu_position' => 14,
			);

			$post_types['candidate_order'] = array(
				'labels' => array(
					'name' => esc_html__('Order', 'civi-framework'),
					'singular_name' => esc_html__('Order', 'civi-framework'),
					'all_items' => esc_html__('Service Order', 'civi-framework'),
				),
				'supports' => array('title'),
				'menu_icon' => 'dashicons-list-view',
				'capabilities' => $this->get_order_capabilities(),
				'map_meta_cap' => true,
				'rewrite' => array(
					'slug' => apply_filters('civi_order_slug', 'candidate_order'),
				),
				'show_ui'	=> true,
				'show_in_menu' => true,
				'menu_position' => 15,
			);

			$post_types['package_coupon'] = array(
				'labels' => array(
					'name' => esc_html__('Package Coupon', 'civi-framework'),
					'singular_name' => esc_html__('Package Coupon', 'civi-framework'),
					'all_items' => esc_html__('Package Coupon', 'civi-framework'),
				),
				'supports' => array('title'),
				'menu_icon'         => 'dashicons-tickets',
				'has_archive'       => false,
				'publicly_queryable' => false,
				'show_in_rest'		=> false,
				'show_ui'	=> true,
				'show_in_menu' => true,
				'menu_position' => 16,
			);

			$post_types['messages'] = array(
				'labels' => array(
					'name' => esc_html__('Messages', 'civi-framework'),
					'singular_name' => esc_html__('Messages', 'civi-framework'),
					'all_items' => esc_html__('Messages', 'civi-framework'),
				),
				'supports' => array('title', 'excerpt'),
				'menu_icon'         => 'dashicons-format-chat',
				'has_archive'       => false,
				'publicly_queryable' => false,
				'show_in_rest'		=> false,
				'show_ui'	=> true,
				'show_in_menu' => true,
				'menu_position' => 16,
			);

			$post_types['notification'] = array(
				'labels' => array(
					'name' => esc_html__('Notification', 'civi-framework'),
					'singular_name' => esc_html__('Notification', 'civi-framework'),
					'all_items' => esc_html__('Notification', 'civi-framework'),
				),
				'supports' => array('title', 'excerpt'),
				'menu_icon'         => 'dashicons-bell',
				'has_archive'       => false,
				'publicly_queryable' => false,
				'show_in_rest'		=> false,
				'show_ui'	=> true,
				'show_in_menu' => true,
				'menu_position' => 17,
			);

			$post_types['meetings'] = array(
				'labels' => array(
					'name' => esc_html__('Meetings', 'civi-framework'),
					'singular_name' => esc_html__('Meetings', 'civi-framework'),
					'all_items' => esc_html__('Meetings', 'civi-framework'),
				),
				'supports' => array('title'),
				'menu_icon' => 'dashicons-calendar-alt',
				'capabilities' => $this->get_meetings_capabilities(),
				'map_meta_cap' => true,
				'rewrite' => array(
					'slug' => apply_filters('civi_meetings_slug', 'meetings'),
				),
				'show_ui'	=> true,
				'show_in_menu' => true,
				'menu_position' => 18,
			);

			return $post_types;
		}

		/**
		 * Register post status
		 */
		public function register_post_status()
		{
			register_post_status('expired', array(
				'label' => _x('Expired', 'post status', 'civi-framework'),
				'public' => true,
				'protected' => true,
				'exclude_from_search' => true,
				'show_in_admin_all_list' => true,
				'show_in_admin_status_list' => true,
				'label_count' => _n_noop('Expired <span class="count">(%s)</span>', 'Expired <span class="count">(%s)</span>', 'civi-framework'),
			));

			register_post_status('pause', array(
				'label' => _x('Pause', 'post status', 'civi-framework'),
				'public' => true,
				'protected' => true,
				'exclude_from_search' => true,
				'show_in_admin_all_list' => true,
				'show_in_admin_status_list' => true,
				'label_count' => _n_noop('Pause <span class="count">(%s)</span>', 'Pause <span class="count">(%s)</span>', 'civi-framework'),
			));

			register_post_status('canceled', array(
				'label' => _x('Canceled', 'post status', 'civi-framework'),
				'public' => true,
				'protected' => true,
				'exclude_from_search' => true,
				'show_in_admin_all_list' => true,
				'show_in_admin_status_list' => true,
				'label_count' => _n_noop('Canceled <span class="count">(%s)</span>', 'Canceled <span class="count">(%s)</span>', 'civi-framework'),
			));

			register_post_status('hidden', array(
				'label' => _x('Hidden', 'post status', 'civi-framework'),
				'public' => true,
				'protected' => true,
				'exclude_from_search' => true,
				'show_in_admin_all_list' => true,
				'show_in_admin_status_list' => true,
				'label_count' => _n_noop('Hidden <span class="count">(%s)</span>', 'Hidden <span class="count">(%s)</span>', 'civi-framework'),
			));
		}

		/**
		 * Get invoice capabilities
		 * @return mixed
		 */
		private function get_invoice_capabilities()
		{
			$caps = array(
				'create_posts' => 'do_not_allow',
				'edit_post' => 'edit_invoices',
				'delete_posts' => 'delete_invoices'
			);
			return apply_filters('get_invoice_capabilities', $caps);
		}

		/**
		 * Get order capabilities
		 * @return mixed
		 */
		private function get_order_capabilities()
		{
			$caps = array(
				'create_posts' => 'do_not_allow',
				'edit_post' => 'edit_order',
				'delete_posts' => true,
			);
			return apply_filters('get_order_capabilities', $caps);
		}

		/**
		 * Get order capabilities
		 * @return mixed
		 */
		private function get_service_withdraw_capabilities()
		{
			$caps = array(
				'create_posts' => 'do_not_allow',
				'edit_post' => 'edit_order',
				'delete_posts' => true,
			);
			return apply_filters('get_order_capabilities', $caps);
		}

		/**
		 * Get applicants capabilities
		 * @return mixed
		 */
		private function get_applicants_capabilities()
		{
			$caps = array(
				'create_posts' => 'do_not_allow',
				'edit_post' => 'edit_applicants',
				'delete_posts' => true,
			);
			return apply_filters('get_applicants_capabilities', $caps);
		}

		/**
		 * Get meetings capabilities
		 * @return mixed
		 */
		private function get_meetings_capabilities()
		{
			$caps = array(
				'create_posts' => 'do_not_allow',
				'edit_post' => 'edit_meetings',
				'delete_posts' => true,
			);
			return apply_filters('get_meetings_capabilities', $caps);
		}

		/**
		 * Get user_package capabilities
		 * @return mixed
		 */
		private function get_user_package_capabilities()
		{
			$caps = array(
				'create_posts' => 'do_not_allow',
				'edit_post' => 'edit_user_packages',
				'delete_posts' => 'do_not_allow'
			);
			return apply_filters('get_user_package_capabilities', $caps);
		}

		/**
		 * Get candidate capabilities
		 * @return mixed
		 */
		private function get_candidate_capabilities()
		{
			$caps = array(
				'create_posts' => 'do_not_allow',
				'edit_post' => 'edit_candidate',
				'delete_post' => 'delete_candidate',
			);
			return apply_filters('get_candidate_capabilities', $caps);
		}

		/**
		 * Register taxonomy
		 * @param $taxonomies
		 * @return mixed
		 */
		public function register_taxonomy($taxonomies)
		{
			// Candidate taxonomy
			$taxonomies['candidate_categories'] = array(
				'post_type' => 'candidate',
				'hierarchical' => true,
				'show_in_rest' => true,
				'label' => esc_html__('Categories', 'civi-framework'),
				'singular_name' => esc_html__('Candidate Category', 'civi-framework'),
				'rewrite' => array(
					'slug' => apply_filters('civi_candidate_categories_slug', 'candidate_categories'),
				),
			);
			$taxonomies['candidate_ages'] = array(
				'post_type' => 'candidate',
				'hierarchical' => true,
				'show_in_rest' => true,
				'label' => esc_html__('Ages', 'civi-framework'),
				'singular_name' => esc_html__('Candidate Age', 'civi-framework'),
				'rewrite' => array(
					'slug' => apply_filters('civi_candidate_ages_slug', 'candidate_ages'),
				),
			);

			$taxonomies['candidate_languages'] = array(
				'post_type' => 'candidate',
				'hierarchical' => true,
				'show_in_rest' => true,
				'label' => esc_html__('Languages', 'civi-framework'),
				'singular_name' => esc_html__('Candidate Language', 'civi-framework'),
				'rewrite' => array(
					'slug' => apply_filters('civi_candidate_languages_slug', 'candidate_languages'),
				),
			);
			$taxonomies['candidate_qualification'] = array(
				'post_type' => 'candidate',
				'hierarchical' => true,
				'show_in_rest' => true,
				'label' => esc_html__('Qualification', 'civi-framework'),
				'singular_name' => esc_html__('Candidate Qualification', 'civi-framework'),
				'rewrite' => array(
					'slug' => apply_filters('civi_candidate_qualification_slug', 'candidate_qualification'),
				),
			);

			$taxonomies['candidate_yoe'] = array(
				'post_type' => 'candidate',
				'hierarchical' => true,
				'show_in_rest' => true,
				'label' => esc_html__('Years of Experience', 'civi-framework'),
				'singular_name' => esc_html__('Candidate Years of Experience', 'civi-framework'),
				'rewrite' => array(
					'slug' => apply_filters('civi_candidate_yoe_slug', 'candidate_yoe'),
				),
			);

			$taxonomies['candidate_education_levels'] = array(
				'post_type' => 'candidate',
				'hierarchical' => true,
				'show_in_rest' => true,
				'label' => esc_html__('Levels of Education', 'civi-framework'),
				'singular_name' => esc_html__('Candidate Level of Education', 'civi-framework'),
				'rewrite' => array(
					'slug' => apply_filters('civi_candidate_education_levels_slug', 'candidate_education_levels'),
				),
			);

			$taxonomies['candidate_skills'] = array(
				'post_type' => 'candidate',
				'hierarchical' => true,
				'show_in_rest' => true,
				'label' => esc_html__('Skills', 'civi-framework'),
				'singular_name' => esc_html__('Candidate Skill', 'civi-framework'),
				'rewrite' => array(
					'slug' => apply_filters('civi_candidate_skills_slug', 'candidate_skills'),
				),
			);

			$taxonomies['candidate_gender'] = array(
				'post_type' => 'candidate',
				'hierarchical' => true,
				'show_in_rest' => true,
				'label' => esc_html__('Gender', 'civi-framework'),
				'singular_name' => esc_html__('Candidate Gender', 'civi-framework'),
				'rewrite' => array(
					'slug' => apply_filters('civi_candidate_gender_slug', 'candidate_gender'),
				),
			);

			$taxonomies['candidate_locations'] = array(
				'post_type' => 'candidate',
				'hierarchical' => true,
				'show_in_rest' => true,
				'label' => esc_html__('City / Town', 'civi-framework'),
				'singular_name' => esc_html__('City', 'civi-framework'),
				'rewrite' => array(
					'slug' => apply_filters('civi_candidate_locations_slug', 'candidate_locations'),
				),
			);

			if (civi_get_option('enable_option_state') === '1') {
				$taxonomies['candidate_state'] = array(
					'post_type' => 'candidate',
					'hierarchical' => true,
					'show_in_rest' => true,
					'label' => esc_html__('Province / State', 'civi-framework'),
					'singular_name' => esc_html__('State', 'civi-framework'),
					'rewrite' => array(
						'slug' => apply_filters('civi_candidate_state_slug', 'candidate_state'),
					),
				);
			}

			//Jobs
			$taxonomies['jobs-categories'] = array(
				'post_type' => 'jobs',
				'hierarchical' => true,
				'show_in_rest' => true,
				'label' => esc_html__('Categories', 'civi-framework'),
				'singular_name' => esc_html__('Jobs Categories', 'civi-framework'),
				'rewrite' => array(
					'slug' => apply_filters('civi_jobs_categories_slug', 'jobs-categories'),
				),
			);
			$taxonomies['jobs-skills'] = array(
				'post_type' => 'jobs',
				'hierarchical' => true,
				'show_in_rest' => true,
				'label' => esc_html__('Skills', 'civi-framework'),
				'singular_name' => esc_html__('Jobs Skills', 'civi-framework'),
				'rewrite' => array(
					'slug' => apply_filters('civi_jobs_skills_slug', 'jobs-skills'),
				),
			);
			$taxonomies['jobs-type'] = array(
				'post_type' => 'jobs',
				'hierarchical' => true,
				'show_in_rest' => true,
				'label' => esc_html__('Type', 'civi-framework'),
				'singular_name' => esc_html__('Jobs Type', 'civi-framework'),
				'rewrite' => array(
					'slug' => apply_filters('civi_jobs_type_slug', 'jobs-type'),
				),
			);
			$taxonomies['jobs-career'] = array(
				'post_type' => 'jobs',
				'hierarchical' => true,
				'show_in_rest' => true,
				'label' => esc_html__('Career', 'civi-framework'),
				'singular_name' => esc_html__('Jobs Career', 'civi-framework'),
				'rewrite' => array(
					'slug' => apply_filters('civi_jobs_career_slug', 'jobs-career'),
				),
			);
			$taxonomies['jobs-experience'] = array(
				'post_type' => 'jobs',
				'hierarchical' => true,
				'show_in_rest' => true,
				'label' => esc_html__('Experience', 'jobs-framework'),
				'singular_name' => esc_html__('Jobs Experience', 'civi-framework'),
				'rewrite' => array(
					'slug' => apply_filters('civi_jobs_experience_slug', 'jobs-experience'),
				),
			);
			$taxonomies['jobs-qualification'] = array(
				'post_type' => 'jobs',
				'hierarchical' => true,
				'show_in_rest' => true,
				'label' => esc_html__('Qualification', 'civi-framework'),
				'singular_name' => esc_html__('Jobs Qualification', 'civi-framework'),
				'rewrite' => array(
					'slug' => apply_filters('civi_jobs_qualification_slug', 'jobs-qualification'),
				),
			);
			$taxonomies['jobs-gender'] = array(
				'post_type' => 'jobs',
				'hierarchical' => true,
				'show_in_rest' => true,
				'label' => esc_html__('Gender', 'civi-framework'),
				'singular_name' => esc_html__('Jobs Gender', 'civi-framework'),
				'rewrite' => array(
					'slug' => apply_filters('civi_jobs_gender_slug', 'jobs-gender'),
				),
			);
			$taxonomies['jobs-location'] = array(
				'post_type' => 'jobs',
				'hierarchical' => true,
				'show_in_rest' => true,
				'label' => esc_html__('City / Town', 'civi-framework'),
				'singular_name' => esc_html__('City', 'civi-framework'),
				'rewrite' => array(
					'slug' => apply_filters('civi_jobs_location_slug', 'jobs-location'),
				),
			);
			if (civi_get_option('enable_option_state') === '1') {
				$taxonomies['jobs-state'] = array(
					'post_type' => 'jobs',
					'hierarchical' => true,
					'show_in_rest' => true,
					'label' => esc_html__('Province / State', 'civi-framework'),
					'singular_name' => esc_html__('State', 'civi-framework'),
					'rewrite' => array(
						'slug' => apply_filters('civi_jobs_state_slug', 'jobs-state'),
					),
				);
			}

			//Company
			$taxonomies['company-categories'] = array(
				'post_type' => 'company',
				'hierarchical' => true,
				'show_in_rest' => true,
				'label' => esc_html__('Categories', 'civi-framework'),
				'singular_name' => esc_html__('Company Categories', 'civi-framework'),
				'rewrite' => array(
					'slug' => apply_filters('civi_company_categories_slug', 'company-categories'),
				),
			);
			$taxonomies['company-size'] = array(
				'post_type' => 'company',
				'hierarchical' => true,
				'show_in_rest' => true,
				'label' => esc_html__('Size', 'civi-framework'),
				'singular_name' => esc_html__('Company Size', 'civi-framework'),
				'rewrite' => array(
					'slug' => apply_filters('civi_company_size_slug', 'company-size'),
				),
			);
			$taxonomies['company-location'] = array(
				'post_type' => 'company',
				'hierarchical' => true,
				'show_in_rest' => true,
				'label' => esc_html__('City / Town', 'civi-framework'),
				'singular_name' => esc_html__('City', 'civi-framework'),
				'rewrite' => array(
					'slug' => apply_filters('civi_company_location_slug', 'company-location'),
				),
			);
			if (civi_get_option('enable_option_state') === '1') {
				$taxonomies['company-state'] = array(
					'post_type' => 'company',
					'hierarchical' => true,
					'show_in_rest' => true,
					'label' => esc_html__('Province / State', 'civi-framework'),
					'singular_name' => esc_html__('State', 'civi-framework'),
					'rewrite' => array(
						'slug' => apply_filters('civi_company_state_slug', 'company-state'),
					),
				);
			}

			//Service
			if (civi_get_option('enable_post_type_service') === '1') {
				$taxonomies['service-categories'] = array(
					'post_type' => 'service',
					'hierarchical' => true,
					'show_in_rest' => true,
					'label' => esc_html__('Categories', 'civi-framework'),
					'singular_name' => esc_html__('Service Categories', 'civi-framework'),
					'rewrite' => array(
						'slug' => apply_filters('civi_service_categories_slug', 'service-categories'),
					),
				);

				$taxonomies['service-skills'] = array(
					'post_type' => 'service',
					'hierarchical' => true,
					'show_in_rest' => true,
					'label' => esc_html__('Skills', 'civi-framework'),
					'singular_name' => esc_html__('Service Skills', 'civi-framework'),
					'rewrite' => array(
						'slug' => apply_filters('civi_service_skills_slug', 'service-skills'),
					),
				);
				$taxonomies['service-language'] = array(
					'post_type' => 'service',
					'hierarchical' => true,
					'show_in_rest' => true,
					'label' => esc_html__('Language', 'civi-framework'),
					'singular_name' => esc_html__('Service Language', 'civi-framework'),
					'rewrite' => array(
						'slug' => apply_filters('civi_service_language_slug', 'service-language'),
					),
				);
				$taxonomies['service-location'] = array(
					'post_type' => 'service',
					'hierarchical' => true,
					'show_in_rest' => true,
					'label' => esc_html__('City / Town', 'civi-framework'),
					'singular_name' => esc_html__('City', 'civi-framework'),
					'rewrite' => array(
						'slug' => apply_filters('civi_service_location_slug', 'service-location'),
					),
				);
				if (civi_get_option('enable_option_state') === '1') {
					$taxonomies['service-state'] = array(
						'post_type' => 'service',
						'hierarchical' => true,
						'show_in_rest' => true,
						'label' => esc_html__('Province / State', 'civi-framework'),
						'singular_name' => esc_html__('State', 'civi-framework'),
						'rewrite' => array(
							'slug' => apply_filters('civi_service_state_slug', 'service-state'),
						),
					);
				}
			}

			return $taxonomies;
		}

		/**
		 * Register meta term
		 * @param $configs
		 * @return mixed
		 */
		public function register_term_meta($configs)
		{
			$configs['jobs-experience-settings'] = apply_filters('civi_register_term_meta_jobs_experience', array(
				'name' => esc_html__('', 'civi-framework'),
				'layout' => 'horizontal',
				'taxonomy' => array('jobs-experience'),
				'fields' => array(
					array(
						'id' => 'jobs_experience_order',
						'title' => esc_html__('Number Order by', 'civi-framework'),
						'type' => 'text',
						'col' => '5',
						'pattern' => '[0-9]*',
						'default' => '',
					),
				)
			));

			$configs['company-size-settings'] = apply_filters('civi_register_term_meta_company_size', array(
				'name' => esc_html__('', 'civi-framework'),
				'layout' => 'horizontal',
				'taxonomy' => array('company-size'),
				'fields' => array(
					array(
						'id' => 'company_size_order',
						'title' => esc_html__('Number Order by', 'civi-framework'),
						'type' => 'text',
						'col' => '5',
						'pattern' => '[0-9]*',
						'default' => '',
					),
				)
			));

			$configs['canidate-experience-settings'] = apply_filters('civi_register_term_meta_candidate_experience', array(
				'name' => esc_html__('', 'civi-framework'),
				'layout' => 'horizontal',
				'taxonomy' => array('candidate_yoe'),
				'fields' => array(
					array(
						'id' => 'candidate_experience_order',
						'title' => esc_html__('Number Order by', 'civi-framework'),
						'type' => 'text',
						'col' => '5',
						'pattern' => '[0-9]*',
						'default' => '',
					),
				)
			));

			if (civi_get_option('enable_option_country') === '1' && civi_get_option('enable_option_state') === '1') {
				$select_option_country = civi_get_option('select_option_country');
				$countries = civi_get_countries();
				$keys = $values = array();
				if (!empty($select_option_country)) {
					foreach ($select_option_country as $key_country => $option_country) {
						if (array_key_exists($option_country, $countries)) {
							$keys[] = $option_country;
							$values[] = $countries[$option_country];
						}
					}
					$list_country = array_combine($keys, $values);
				} else {
					$list_country = $countries;
				}

				$taxonomy_state = array('jobs-state', 'company-state', 'candidate_state', 'service-state');
				foreach ($taxonomy_state  as $term) {
					$configs[$term . '-settings'] = apply_filters('civi_register_term_meta_' . $term, array(
						'name'     => '',
						'layout' => 'horizontal',
						'taxonomy' => array($term),
						'fields' => array(
							array(
								'id'      => $term . '-country',
								'title'   => esc_html__('Country', 'civi-framework'),
								'type'    => 'select',
								'options' => $list_country,
							),
						)
					));
				}
			}

			if (civi_get_option('enable_option_state') === '1') {
				$taxonomy_state_location = array(
					'jobs-state' => 'jobs-location',
					'company-state' => 'company-location',
					'candidate_state' => 'candidate_locations',
					'service-state' => 'service-location'
				);
				foreach ($taxonomy_state_location as $key => $value) {
					$list_state = civi_get_option_taxonomy($key);
					$configs[$value . 'state-location'] = apply_filters('civi_register_state_location_' . $value, array(
						'name'     => '',
						'layout' => 'horizontal',
						'taxonomy' => array($value),
						'fields' => array(
							array(
								'id'      => $value . '-state',
								'title'   => esc_html__('Province / State', 'civi-framework'),
								'default' => '',
								'type'    => 'select',
								'options' => $list_state,
							),
						)
					));
				}
			}

			return apply_filters('civi_register_term_meta', $configs);
		}

		/**
		 * Register meta boxes
		 * @param $configs
		 * @return mixed
		 */
		public function register_meta_boxes($configs)
		{
			$meta_prefix = CIVI_METABOX_PREFIX;
			$dec_point = civi_get_option('decimal_separator', '.');
			$format_number = '^[0-9]+([' . $dec_point . '][0-9]+)?$';

			//Custom field jobs
			$render_custom_field_jobs = civi_render_custom_field('jobs');
			$custom_field_jobs = array();
			if (count($render_custom_field_jobs) > 0) {
				$custom_field_jobs = array(
					array(
						'id' => "{$meta_prefix}custom_field_jobs_tab",
						'title' => esc_html__('Additional Fields', 'civi-framework'),
						'icon' => 'dashicons dashicons-welcome-add-page',
						'fields' => $render_custom_field_jobs
					),
				);
			}

			//Custom field company
			$render_custom_field_company = civi_render_custom_field('company');

			//Custom field candidate
			$render_custom_field_candidate = civi_render_custom_field('candidate');
			$custom_field_candidate = array();
			if (count($render_custom_field_candidate) > 0) {
				$custom_field_candidate = array(
					array(
						'id' => "{$meta_prefix}custom_field_candidate_tab",
						'title' => esc_html__('Additional Fields', 'civi-framework'),
						'icon' => 'dashicons dashicons-welcome-add-page',
						'fields' => $render_custom_field_candidate
					),
				);
			}

			$candidate_package_service = $candidate_package_service_featured = $candidate_package_jobs_apply = $candidate_package_jobs_wishlist =
				$candidate_package_company_follow = $candidate_package_contact_company = $candidate_package_info_company =
				$candidate_package_send_message = $candidate_package_review_and_commnent = array();

			if (civi_get_option('enable_post_type_service') === '1') {

				//Package Service
				$candidate_package_service = array(
					'type' => 'row',
					'col' => '4',
					'fields' => array(
						array(
							'id' => "{$meta_prefix}enable_package_service_unlimited",
							'title' => esc_html__('Unlimited Service', 'civi-framework'),
							'type' => 'button_set',
							'options' => array(
								'1' => esc_html__('Yes', 'civi-framework'),
								'0' => esc_html__('No', 'civi-framework'),
							),
							'default' => '0',
						),
						array(
							'id' => "{$meta_prefix}candidate_package_number_service",
							'title' => esc_html__('Number Service', 'civi-framework'),
							'type' => 'text',
							'default' => '',
							'pattern' => '[0-9]*',
							'required' => array("{$meta_prefix}enable_package_service_unlimited", '=', '0'),
						),
					)
				);
				$candidate_package_service_featured = array(
					'type' => 'row',
					'col' => '4',
					'fields' => array(
						array(
							'id' => "{$meta_prefix}enable_package_service_featured_unlimited",
							'title' => esc_html__('Unlimited Service Featured', 'civi-framework'),
							'type' => 'button_set',
							'options' => array(
								'1' => esc_html__('Yes', 'civi-framework'),
								'0' => esc_html__('No', 'civi-framework'),
							),
							'default' => '0',
						),
						array(
							'id' => "{$meta_prefix}candidate_package_number_service_featured",
							'title' => esc_html__('Number Featured Service', 'civi-framework'),
							'type' => 'text',
							'default' => '',
							'pattern' => '[0-9]*',
							'required' => array("{$meta_prefix}enable_package_service_featured_unlimited", '=', '0'),
						),
					)
				);

				//Single Service
				$configs['service_meta_boxes'] = apply_filters('civi_register_meta_boxes_service', array(
					'name' => esc_html__('Service Information', 'civi-framework'),
					'post_type' => array('service'),
					'section' => array_merge(
						apply_filters('civi_register_meta_boxes_service_top', array()),
						apply_filters(
							'civi_register_meta_boxes_service_main',
							array_merge(
								array(
									array(
										'id' => "{$meta_prefix}details_candidate_basic",
										'title' => esc_html__('Basic', 'civi-framework'),
										'icon' => 'dashicons dashicons-admin-home',
										'fields' => array(
											array(
												'id' => "{$meta_prefix}service_featured",
												'title' => esc_html__('Mark this service as featured ?', 'civi-framework'),
												'type' => 'button_set',
												'col' => '4',
												'options' => array(
													'1' => esc_html__('Yes', 'civi-framework'),
													'0' => esc_html__('No', 'civi-framework'),
												),
												'default' => '0',
											),
										)
									),
									array(
										'id' => "{$meta_prefix}details_candidate_package",
										'title' => esc_html__('package', 'civi-framework'),
										'icon' => 'dashicons dashicons-carrot',
										'fields' => array(
											array(
												'type' => 'row',
												'col' => '12',
												'fields' => array(
													array(
														'id' => "{$meta_prefix}service_price",
														'title' => esc_html__('Start Price', 'civi-framework'),
														'default' => '30',
														'type' => 'text',
														'col' => '4',
													),
													array(
														'id' => "{$meta_prefix}service_number_time",
														'title' => esc_html__('Transfer time', 'civi-framework'),
														'default' => '3',
														'type' => 'text',
														'col' => '4',
													),
													array(
														'id' => "{$meta_prefix}service_time_type",
														'title' => esc_html__('Time Type', 'civi-framework'),
														'type' => 'select',
														'options' => array(
															'hr' => esc_html__('Hour', 'civi-framework'),
															'day' => esc_html__('Day', 'civi-framework'),
															'week' => esc_html__('Week', 'civi-framework'),
															'month' => esc_html__('Month', 'civi-framework'),
														),
														'col' => '4',
														'default' => 'hr',
													),
													array(
														'id' => "{$meta_prefix}service_language_level",
														'title' => esc_html__('Languages Level', 'civi-framework'),
														'type' => 'select',
														'options' => array(
															'basic' => esc_html__('Basic', 'civi-framework'),
															'conversational' => esc_html__('Conversational', 'civi-framework'),
															'fluent' => esc_html__('Fluent', 'civi-framework'),
															'native' => esc_html__('Native or Bilingual', 'civi-framework'),
															'professional' => esc_html__('Professional', 'civi-framework'),
														),
														'col' => '4',
														'default' => 'native',
													),
												)
											),
											array(
												'id' => "{$meta_prefix}service_tab_addon",
												'type' => 'panel',
												'title' => esc_html__('Add ons', 'civi-framework'),
												'sort' => true,
												'panel_title' => 'label',
												'fields' => array(
													array(
														'type' => 'row',
														'col' => '12',
														'fields' => array(
															array(
																'id' => "{$meta_prefix}service_addons_title",
																'title' => esc_html__('Title', 'civi-framework'),
																'type' => 'text',
																'col' => '6',
															),
															array(
																'id' => "{$meta_prefix}service_addons_price",
																'title' => esc_html__('Price', 'civi-framework'),
																'type' => 'text',
																'col' => '6',
															),
															array(
																'id' => "{$meta_prefix}service_addons_description",
																'title' => esc_html__('Description', 'civi-framework'),
																'type' => 'textarea',
																'col' => '12',
															),
														)
													)
												)
											),
										)
									),
									array(
										'id' => "{$meta_prefix}details_service_faq",
										'title' => esc_html__('Faqs', 'civi-framework'),
										'icon' => 'dashicons dashicons-palmtree',
										'fields' => array(
											array(
												'id' => "{$meta_prefix}service_tab_faq",
												'type' => 'panel',
												'title' => esc_html__('Faqs', 'civi-framework'),
												'sort' => true,
												'panel_title' => 'label',
												'fields' => array(
													array(
														'type' => 'row',
														'col' => '12',
														'fields' => array(
															array(
																'id' => "{$meta_prefix}service_faq_title",
																'title' => esc_html__('Title', 'civi-framework'),
																'type' => 'text',
																'col' => '12',
															),
															array(
																'id' => "{$meta_prefix}service_faq_description",
																'title' => esc_html__('Description', 'civi-framework'),
																'type' => 'textarea',
																'col' => '12',
															),
														)
													)
												)
											),
										)
									),
									array(
										'id' => "{$meta_prefix}location_tab",
										'title' => esc_html__('Location', 'civi-framework'),
										'icon' => 'dashicons-location-alt',
										'fields' => array(
											array(
												'type' => 'row',
												'col' => '12',
												'fields' => array(
													array(
														'id' => "{$meta_prefix}service_address",
														'title' => esc_html__('Maps location', 'civi-framework'),
														'desc' => esc_html__('Full Address', 'civi-framework'),
														'type' => 'text',
														'col' => 4
													),
													array(
														'id' => "{$meta_prefix}service_latitude",
														'title' => esc_html__('Latitude', 'civi-framework'),
														'desc' => esc_html__('Latitude Details', 'civi-framework'),
														'type' => 'text',
														'col' => 4
													),
													array(
														'id' => "{$meta_prefix}service_longtitude",
														'title' => esc_html__('Longtitude', 'civi-framework'),
														'desc' => esc_html__('Longtitude Details', 'civi-framework'),
														'type' => 'text',
														'col' => 4
													),
													array(
														'id' => "{$meta_prefix}service_location",
														'title' => esc_html__('Service Location at Google Map', 'civi-framework'),
														'desc' => esc_html__('Drag the google map marker to point your service location.', 'civi-framework'),
														'type' => 'map',
														'address_field' => "{$meta_prefix}service_address",
													),
												)
											)
										)
									),
									array(
										'id' => "{$meta_prefix}gallery_service_tab",
										'title' => esc_html__('Gallery Images', 'civi-framework'),
										'icon' => 'dashicons-format-gallery',
										'fields' => array(
											array(
												'id' => "{$meta_prefix}service_images",
												'title' => esc_html__('Gallery', 'civi-framework'),
												'type' => 'gallery',
											),
										)
									),
									array(
										'id' => "{$meta_prefix}video_service_tab",
										'title' => esc_html__('Video', 'civi-framework'),
										'icon' => 'dashicons-video-alt3',
										'fields' => array(
											array(
												'id' => "{$meta_prefix}service_video_url",
												'title' => esc_html__('Video URL', 'civi-framework'),
												'desc' => esc_html__('Input only URL. YouTube, Vimeo, SWF File and MOV File', 'civi-framework'),
												'type' => 'text',
												'col' => 12,
											),
											array(
												'id' => "{$meta_prefix}service_video_image",
												'title' => esc_html__('Video Image', 'civi-framework'),
												'type' => 'gallery',
												'col' => 12,
											),
										)
									),
								)
							)
						),
						apply_filters('civi_register_meta_boxes_service_bottom', array())
					),
				));

				//Order Service
				$configs['service_order_meta_boxes'] = array(
					'name' => esc_html__('Service Order Settings', 'civi-framework'),
					'post_type' => array('service_order'),
					'fields' => array(
						array(
							'type' => 'row',
							'col' => '12',
							'fields' => array(
								array(
									'id' => "{$meta_prefix}service_order_payment_status",
									'title' => esc_html__('Status', 'civi-framework'),
									'type' => 'button_set',
									'options' => array(
										'pending' => esc_html__('Pending', 'civi-framework'),
										'inprogress' => esc_html__('In Process', 'civi-framework'),
										'transferring' => esc_html__('Transferring', 'civi-framework'),
										'canceled' => esc_html__('Canceled', 'civi-framework'),
										'completed' => esc_html__('Completed', 'civi-framework'),
										'expired' =>  esc_html__('Expired', 'civi-framework'),
										'refund' => esc_html__('Refund', 'civi-framework'),
									),
									'default' => 'pending',
								),
							)
						),
						array(
							'type' => 'row',
							'col' => '12',
							'fields' => array(
								array(
									'id' => "{$meta_prefix}service_order_user_id",
									'title' => esc_html__('User Order id', 'civi-framework'),
									'default' => '',
									'type' => 'text',
									'col' => '4',
								),
								array(
									'id' => "{$meta_prefix}service_order_author_service",
									'title' => esc_html__('Author Service', 'civi-framework'),
									'default' => '',
									'type' => 'text',
									'col' => '4',
								),
								array(
									'id' => "{$meta_prefix}service_order_item_id",
									'title' => esc_html__('Package id', 'civi-framework'),
									'default' => '',
									'type' => 'text',
									'col' => '4',
								),
								array(
									'id' => "{$meta_prefix}service_order_price",
									'title' => esc_html__('Price', 'civi-framework'),
									'default' => '',
									'type' => 'text',
									'col' => '4',
								),
								array(
									'id' => "{$meta_prefix}service_order_date",
									'title' => esc_html__('Activate Date', 'civi-framework'),
									'default' => '',
									'type' => 'text',
									'col' => '4',
								),
								array(
									'id' => "{$meta_prefix}service_order_payment_method",
									'title' => esc_html__('Payment Method', 'civi-framework'),
									'default' => '',
									'type' => 'text',
									'col' => '4',
								),
							)
						),
						array(
							'type' => 'divide',
						),
						array(
							'type' => 'row',
							'col' => '12',
							'fields' => array(
								array(
									'id' => "{$meta_prefix}service_refund_payment_method",
									'title' => esc_html__('Payment method refund', 'civi-framework'),
									'type' => 'select',
									'options' => array(
										'wire_transfer' => esc_html('Wire Transfer', 'civi-framework'),
										'stripe' => esc_html('Pay With Stripe', 'civi-framework'),
										'paypal' => esc_html('Pay With Paypal', 'civi-framework'),
									),
									'col' => '4',
									'default' => 'wire_transfer',
									'required' => array("{$meta_prefix}service_order_payment_status", '=', 'refund'),

								),
								array(
									'id' => "{$meta_prefix}service_refund_content",
									'title' => esc_html__('Content refund', 'civi-framework'),
									'type' => 'textarea',
									'default' => '',
									'col' => '12',
									'required' => array("{$meta_prefix}service_order_payment_status", '=', 'refund'),
								),
							)
						),
					),
				);

				//Withdrawals
				$configs['service_withdraw_meta_boxes'] = array(
					'name' => esc_html__('Service Withdraw Settings', 'civi-framework'),
					'post_type' => array('service_withdraw'),
					'fields' => array(
						array(
							'type' => 'row',
							'col' => '12',
							'fields' => array(
								array(
									'id' => "{$meta_prefix}service_withdraw_status",
									'title' => esc_html__('Status', 'civi-framework'),
									'type' => 'button_set',
									'options' => array(
										'pending' => esc_html__('Pending', 'civi-framework'),
										'completed' => esc_html__('Completed', 'civi-framework'),
										'canceled' => esc_html__('Canceled', 'civi-framework'),
									),
									'default' => 'pending',
								),
							)
						),
						array(
							'type' => 'row',
							'col' => '12',
							'fields' => array(
								array(
									'id' => "{$meta_prefix}service_withdraw_user_id",
									'title' => esc_html__('User Id', 'civi-framework'),
									'default' => '',
									'type' => 'text',
									'col' => '6',
								),
								array(
									'id' => "{$meta_prefix}service_withdraw_payment_method",
									'title' => esc_html__('Payment method refund', 'civi-framework'),
									'default' => '',
									'type' => 'text',
									'col' => '6',
								),
								array(
									'id' => "{$meta_prefix}service_withdraw_price",
									'title' => esc_html__('Price', 'civi-framework'),
									'default' => '',
									'type' => 'text',
									'col' => '6',
								),
								array(
									'id' => "{$meta_prefix}service_withdraw_total_price",
									'title' => esc_html__('Available Balance', 'civi-framework'),
									'default' => '',
									'type' => 'text',
									'col' => '6',
								),
							)
						),
					),
				);
			}

			if (civi_get_option('enable_candidate_package_jobs_apply') === '1') {
				$candidate_package_jobs_apply = array(
					'type' => 'row',
					'col' => '4',
					'fields' => array(
						array(
							'id' => "{$meta_prefix}show_package_jobs_apply",
							'title' => esc_html__('Show Jobs Apply', 'civi-framework'),
							'type' => 'button_set',
							'options' => array(
								'1' => esc_html__('Yes', 'civi-framework'),
								'0' => esc_html__('No', 'civi-framework'),
							),
							'default' => '0',
						),
						array(
							'id' => "{$meta_prefix}enable_package_jobs_apply_unlimited",
							'title' => esc_html__('Unlimited Jobs Apply', 'civi-framework'),
							'type' => 'button_set',
							'options' => array(
								'1' => esc_html__('Yes', 'civi-framework'),
								'0' => esc_html__('No', 'civi-framework'),
							),
							'default' => '0',
							'required' => array("{$meta_prefix}show_package_jobs_apply", '=', '1'),
						),
						array(
							'id' => "{$meta_prefix}candidate_package_number_jobs_apply",
							'title' => esc_html__('Number Jobs Apply', 'civi-framework'),
							'type' => 'text',
							'default' => '',
							'pattern' => '[0-9]*',
							'required' => array(
								array("{$meta_prefix}show_package_jobs_apply", '=', '1'),
								array("{$meta_prefix}enable_package_jobs_apply_unlimited", '!=', '1')
							),
						),
					)
				);
			}

			if (civi_get_option('enable_candidate_package_jobs_wishlist') === '1') {
				$candidate_package_jobs_wishlist = array(
					'type' => 'row',
					'col' => '4',
					'fields' => array(
						array(
							'id' => "{$meta_prefix}show_package_jobs_wishlist",
							'title' => esc_html__('Show Jobs Wishlist', 'civi-framework'),
							'type' => 'button_set',
							'options' => array(
								'1' => esc_html__('Yes', 'civi-framework'),
								'0' => esc_html__('No', 'civi-framework'),
							),
							'default' => '0',
						),
						array(
							'id' => "{$meta_prefix}enable_package_jobs_wishlist_unlimited",
							'title' => esc_html__('Unlimited Jobs Wishlist', 'civi-framework'),
							'type' => 'button_set',
							'options' => array(
								'1' => esc_html__('Yes', 'civi-framework'),
								'0' => esc_html__('No', 'civi-framework'),
							),
							'default' => '0',
							'required' => array(
								array("{$meta_prefix}show_package_jobs_wishlist", '=', '1'),
							),
						),
						array(
							'id' => "{$meta_prefix}candidate_package_number_jobs_wishlist",
							'title' => esc_html__('Number Jobs Wishlist', 'civi-framework'),
							'type' => 'text',
							'default' => '',
							'pattern' => '[0-9]*',
							'required' => array(
								array("{$meta_prefix}show_package_jobs_wishlist", '=', '1'),
								array("{$meta_prefix}enable_package_jobs_wishlist_unlimited", '!=', '1')
							),
						),
					)
				);
			}

			if (civi_get_option('enable_candidate_package_company_follow') === '1') {
				$candidate_package_company_follow = array(
					'type' => 'row',
					'col' => '4',
					'fields' => array(
						array(
							'id' => "{$meta_prefix}show_package_company_follow",
							'title' => esc_html__('Show Company Follow', 'civi-framework'),
							'type' => 'button_set',
							'options' => array(
								'1' => esc_html__('Yes', 'civi-framework'),
								'0' => esc_html__('No', 'civi-framework'),
							),
							'default' => '0',
						),
						array(
							'id' => "{$meta_prefix}enable_package_company_follow_unlimited",
							'title' => esc_html__('Unlimited Company Follow', 'civi-framework'),
							'type' => 'button_set',
							'options' => array(
								'1' => esc_html__('Yes', 'civi-framework'),
								'0' => esc_html__('No', 'civi-framework'),
							),
							'default' => '0',
							'required' => array(
								array("{$meta_prefix}show_package_company_follow", '=', '1'),
							),
						),
						array(
							'id' => "{$meta_prefix}candidate_package_number_company_follow",
							'title' => esc_html__('Number Company Follow', 'civi-framework'),
							'type' => 'text',
							'default' => '',
							'pattern' => '[0-9]*',
							'required' => array(
								array("{$meta_prefix}show_package_company_follow", '=', '1'),
								array("{$meta_prefix}enable_package_company_follow_unlimited", '!=', '1')
							),
						),
					)
				);
			}

			if (civi_get_option('enable_candidate_package_contact_company') === '1') {
				$candidate_package_contact_company = array(
					'id' => "{$meta_prefix}show_package_contact_company",
					'title' => esc_html__('View contact company in jobs', 'civi-framework'),
					'type' => 'button_set',
					'options' => array(
						'1' => esc_html__('Yes', 'civi-framework'),
						'0' => esc_html__('No', 'civi-framework'),
					),
					'default' => '0',
				);
			}

			if (civi_get_option('enable_candidate_package_info_company') === '1') {
				$candidate_package_info_company =  array(
					'id' => "{$meta_prefix}show_package_info_company",
					'title' => esc_html__('View info company', 'civi-framework'),
					'type' => 'button_set',
					'options' => array(
						'1' => esc_html__('Yes', 'civi-framework'),
						'0' => esc_html__('No', 'civi-framework'),
					),
					'default' => '0',
				);
			}

			if (civi_get_option('enable_candidate_package_send_message') === '1') {
				$candidate_package_send_message =  array(
					'id' => "{$meta_prefix}show_package_send_message",
					'title' => esc_html__('Send Message', 'civi-framework'),
					'type' => 'button_set',
					'options' => array(
						'1' => esc_html__('Yes', 'civi-framework'),
						'0' => esc_html__('No', 'civi-framework'),
					),
					'default' => '0',
				);
			}

			if (civi_get_option('enable_candidate_package_review_and_commnent') === '1') {
				$candidate_package_review_and_commnent =  array(
					'id' => "{$meta_prefix}show_package_review_and_commnent",
					'title' => esc_html__('Review and Commnet', 'civi-framework'),
					'type' => 'button_set',
					'options' => array(
						'1' => esc_html__('Yes', 'civi-framework'),
						'0' => esc_html__('No', 'civi-framework'),
					),
					'default' => '',
				);
			}

			//Company Package
			$company_package_download_cv_candidate = $company_package_candidate_follow  = $company_package_invite_candidate = $company_package_send_message_candidate =
				$company_package_print_candidate = $company_package_review_candidate = $company_package_info_candidate = array();

			if (civi_get_option('enable_company_package_download_cv') === '1') {
				$company_package_download_cv_candidate = array(
					'type' => 'row',
					'col' => '4',
					'fields' => array(
						array(
							'id' => "{$meta_prefix}show_package_company_download_cv",
							'title' => esc_html__('Download CV', 'civi-framework'),
							'type' => 'button_set',
							'options' => array(
								'1' => esc_html__('Yes', 'civi-framework'),
								'0' => esc_html__('No', 'civi-framework'),
							),
							'default' => '1',
						),
						array(
							'id' => "{$meta_prefix}enable_package_download_cv_unlimited",
							'title' => esc_html__('Unlimited Download CV', 'civi-framework'),
							'type' => 'button_set',
							'options' => array(
								'1' => esc_html__('Yes', 'civi-framework'),
								'0' => esc_html__('No', 'civi-framework'),
							),
							'default' => '0',
							'required' => array("{$meta_prefix}show_package_company_download_cv", '=', '1'),
						),
						array(
							'id' => "{$meta_prefix}company_package_number_download_cv",
							'title' => esc_html__('Number Download CV', 'civi-framework'),
							'type' => 'text',
							'default' => '',
							'pattern' => '[0-9]*',
							'required' => array(
								array("{$meta_prefix}show_package_company_download_cv", '=', '1'),
								array("{$meta_prefix}enable_package_download_cv_unlimited", '!=', '1')
							),
						),
					)
				);
			}

			if (civi_get_option('enable_company_package_candidate_follow') === '1') {
				$company_package_candidate_follow = array(
					'type' => 'row',
					'col' => '4',
					'fields' => array(
						array(
							'id' => "{$meta_prefix}show_package_company_candidate_follow",
							'title' => esc_html__('Show Candidate Follow', 'civi-framework'),
							'type' => 'button_set',
							'options' => array(
								'1' => esc_html__('Yes', 'civi-framework'),
								'0' => esc_html__('No', 'civi-framework'),
							),
							'default' => '1',
						),
						array(
							'id' => "{$meta_prefix}enable_package_candidate_follow_unlimited",
							'title' => esc_html__('Unlimited Candidate Follow', 'civi-framework'),
							'type' => 'button_set',
							'options' => array(
								'1' => esc_html__('Yes', 'civi-framework'),
								'0' => esc_html__('No', 'civi-framework'),
							),
							'default' => '0',
							'required' => array("{$meta_prefix}show_package_company_candidate_follow", '=', '1'),
						),
						array(
							'id' => "{$meta_prefix}company_package_number_candidate_follow",
							'title' => esc_html__('Number Candidate Follow', 'civi-framework'),
							'type' => 'text',
							'default' => '',
							'pattern' => '[0-9]*',
							'required' => array(
								array("{$meta_prefix}show_package_company_candidate_follow", '=', '1'),
								array("{$meta_prefix}enable_package_candidate_follow_unlimited", '!=', '1')
							),
						),
					)
				);
			}


			if (civi_get_option('enable_company_package_invite') === '1') {
				$company_package_invite_candidate =  array(
					'id' => "{$meta_prefix}show_package_company_invite",
					'title' => esc_html__('Invite Candidates', 'civi-framework'),
					'type' => 'button_set',
					'options' => array(
						'1' => esc_html__('Yes', 'civi-framework'),
						'0' => esc_html__('No', 'civi-framework'),
					),
					'default' => '0',
				);
			}

			if (civi_get_option('enable_company_package_send_message') === '1') {
				$company_package_send_message_candidate =  array(
					'id' => "{$meta_prefix}show_package_company_send_message",
					'title' => esc_html__('Send Messages Candidate', 'civi-framework'),
					'type' => 'button_set',
					'options' => array(
						'1' => esc_html__('Yes', 'civi-framework'),
						'0' => esc_html__('No', 'civi-framework'),
					),
					'default' => '0',
				);
			}

			if (civi_get_option('enable_company_package_print') === '1') {
				$company_package_print_candidate =  array(
					'id' => "{$meta_prefix}show_package_company_print",
					'title' => esc_html__('Print Candidate Profile', 'civi-framework'),
					'type' => 'button_set',
					'options' => array(
						'1' => esc_html__('Yes', 'civi-framework'),
						'0' => esc_html__('No', 'civi-framework'),
					),
					'default' => '0',
				);
			}

			if (civi_get_option('enable_company_package_review_and_commnent') === '1') {
				$company_package_review_candidate =  array(
					'id' => "{$meta_prefix}show_package_company_review_and_commnent",
					'title' => esc_html__('Review And Commnent', 'civi-framework'),
					'type' => 'button_set',
					'options' => array(
						'1' => esc_html__('Yes', 'civi-framework'),
						'0' => esc_html__('No', 'civi-framework'),
					),
					'default' => '0',
				);
			}

			if (civi_get_option('enable_company_package_info') === '1') {
				$company_package_info_candidate =  array(
					'id' => "{$meta_prefix}show_package_company_info",
					'title' => esc_html__('View Candidate Information', 'civi-framework'),
					'type' => 'button_set',
					'options' => array(
						'1' => esc_html__('Yes', 'civi-framework'),
						'0' => esc_html__('No', 'civi-framework'),
					),
					'default' => '0',
				);
			}


			$candidate_custom_social = array();
			$civi_social_fields = civi_get_option('civi_social_fields');
			if (is_array($civi_social_fields) && !empty($civi_social_fields)) {
				foreach ($civi_social_fields as $key => $value) {
					$candidate_custom_social[] = array(
						'id' => "{$meta_prefix}candidate_{$value['social_name']}",
						'title' => $value['social_name'],
						'type' => 'text',
						'col' => '6',
					);
				}
			}

			$candidate_custom_social0 = isset($candidate_custom_social[0]) ? $candidate_custom_social[0] : array();
			$candidate_custom_social1 = isset($candidate_custom_social[1]) ? $candidate_custom_social[1] : array();
			$candidate_custom_social2 = isset($candidate_custom_social[2]) ? $candidate_custom_social[2] : array();
			$candidate_custom_social3 = isset($candidate_custom_social[3]) ? $candidate_custom_social[3] : array();

			$configs['jobs_meta_boxes'] = apply_filters('civi_register_meta_boxes_jobs', array(
				'name' => esc_html__('Jobs Information', 'civi-framework'),
				'post_type' => array('jobs'),
				'section' => array_merge(
					apply_filters('civi_register_meta_boxes_jobs_top', array()),
					apply_filters(
						'civi_register_meta_boxes_jobs_main',
						array_merge(
							array(
								array(
									'id' => "{$meta_prefix}details_tab",
									'title' => esc_html__('Basic Infomation', 'civi-framework'),
									'icon' => 'dashicons-admin-home',
									'fields' => array(
										array(
											'type' => 'row',
											'col' => '12',
											'fields' => array(
												array(
													'id' => "{$meta_prefix}enable_jobs_package_expires",
													'type' => 'button_set',
													'title' => esc_html__('Enable package expires', 'civi-framework'),
													'desc' => esc_html__('Turn on when you want package to expire', 'civi-framework'),
													'options' => array(
														'1' => esc_html__('On', 'civi-framework'),
														'0' => esc_html__('Off', 'civi-framework'),
													),
													'col' => '4',
													'default' => '0'
												),

												array(
													'id' => "{$meta_prefix}enable_jobs_expires",
													'type' => 'button_set',
													'title' => esc_html__('Enable jobs expires', 'civi-framework'),
													'desc' => esc_html__('Turn on when you want jobs to expire', 'civi-framework'),
													'options' => array(
														'1' => esc_html__('On', 'civi-framework'),
														'0' => esc_html__('Off', 'civi-framework'),
													),
													'col' => '4',
													'default' => '0'
												),
												array(
													'id' => "{$meta_prefix}jobs_days_closing",
													'title' => esc_html__('Number of days to apply', 'civi-framework'),
													'desc' => esc_html__('Enter the number of days to apply for jobs', 'civi-framework'),
													'default' => '',
													'type' => 'text',
													'col' => '4',
													'required' => array(
														array("{$meta_prefix}enable_jobs_expires", '=', '0'),
													),
												),
												array(
													'id' => "{$meta_prefix}jobs_featured",
													'title' => esc_html__('Mark this jobs as featured ?', 'civi-framework'),
													'type' => 'button_set',
													'col' => '4',
													'options' => array(
														'1' => esc_html__('Yes', 'civi-framework'),
														'0' => esc_html__('No', 'civi-framework'),
													),
													'default' => '0',
												),
												array(
													'id' => "{$meta_prefix}jobs_quantity",
													'title' => esc_html__('Quantity to be recruited ', 'civi-framework'),
													'type' => 'select',
													'desc' => esc_html__('Select quantity', 'civi-framework'),
													'options' => array(
														'' => 'None',
														'1' => '1',
														'2' => '2',
														'3' => '3',
														'4' => '4',
														'5' => '5',
														'6' => '6',
														'7' => '7',
														'8' => '8',
														'9' => '9',
														'10' => '10+',
													),
													'col' => '4',
													'default' => 'quantity1',
												),
											)
										),
									)
								),
							),
							array(
								array(
									'id' => "{$meta_prefix}details_salary",
									'title' => esc_html__('Salary', 'civi-framework'),
									'icon' => 'dashicons dashicons-money-alt',
									'fields' => array(
										array(
											'type' => 'row',
											'col' => '12',
											'fields' => array(
												array(
													'id' => "{$meta_prefix}jobs_salary_show",
													'title' => esc_html__('Show pay by', 'civi-framework'),
													'type' => 'select',
													'options' => array(
														'range' => 'Range',
														'starting_amount' => 'Starting amount',
														'maximum_amount' => 'Maximum amount',
														'agree' => 'Negotiable Price',
													),
													'col' => '4',
													'default' => 'range',
												),
												array(
													'id' => "{$meta_prefix}jobs_salary_rate",
													'title' => esc_html__('Rate', 'civi-framework'),
													'type' => 'select',
													'options' => array(
														'' => esc_html('None', 'civi-framework'),
														'hour' => esc_html('Per Hour', 'civi-framework'),
														'day' => esc_html('Per Day', 'civi-framework'),
														'week' => esc_html('Per Week', 'civi-framework'),
														'month' => esc_html('Per Month', 'civi-framework'),
														'year' => esc_html('Per Year', 'civi-framework'),
													),
													'col' => '4',
													'default' => 'hour',
													'required' => array(
														array("{$meta_prefix}jobs_salary_show", '!=', 'agree')
													),
												),
												array(
													'id' => "{$meta_prefix}jobs_currency_type",
													'title' => esc_html__('Currency Type', 'civi-framework'),
													'type' => 'select',
													'options' => civi_get_select_currency_type(),
													'col' => '4',
												),
												array(
													'id' => "{$meta_prefix}jobs_salary_minimum",
													'title' => esc_html__('Minimum', 'civi-framework'),
													'desc' => esc_html__('Example Value: 450', 'civi-framework'),
													'type' => 'text',
													'pattern' => "{$format_number}",
													'default' => '450',
													'col' => '4',
													'required' => array(
														array("{$meta_prefix}jobs_salary_show", '=', 'range')
													),
												),
												array(
													'id' => "{$meta_prefix}jobs_salary_maximum",
													'title' => esc_html__('Maximum', 'civi-framework'),
													'desc' => esc_html__('Example Value: 900', 'civi-framework'),
													'type' => 'text',
													'pattern' => "{$format_number}",
													'default' => '900',
													'col' => '4',
													'required' => array(
														array("{$meta_prefix}jobs_salary_show", '=', 'range')
													),
												),
												array(
													'id' => "{$meta_prefix}jobs_maximum_price",
													'title' => esc_html__('Maximum Price', 'civi-framework'),
													'desc' => esc_html__('Example Value: 1000', 'civi-framework'),
													'type' => 'text',
													'pattern' => "{$format_number}",
													'default' => '',
													'col' => '4',
													'required' => array(
														array("{$meta_prefix}jobs_salary_show", '=', 'maximum_amount')
													),
												),
												array(
													'id' => "{$meta_prefix}jobs_minimum_price",
													'title' => esc_html__('Minimum Price', 'civi-framework'),
													'desc' => esc_html__('Example Value: 100', 'civi-framework'),
													'type' => 'text',
													'pattern' => "{$format_number}",
													'default' => '',
													'col' => '4',
													'required' => array(
														array("{$meta_prefix}jobs_salary_show", '=', 'starting_amount')
													),
												),
												array(
													'id' => "{$meta_prefix}jobs_salary_convert_min",
													'title' => esc_html__('Convert Min', 'civi-framework'),
													'type' => 'text',
													'col' => '4',
												),
												array(
													'id' => "{$meta_prefix}jobs_salary_convert_max",
													'title' => esc_html__('Convert Max', 'civi-framework'),
													'type' => 'text',
													'col' => '4',
												),
												array(
													'id' => "{$meta_prefix}jobs_price_convert_min",
													'title' => esc_html__('Convert Min', 'civi-framework'),
													'type' => 'text',
													'col' => '4',
												),
												array(
													'id' => "{$meta_prefix}jobs_price_convert_max",
													'title' => esc_html__('Convert Max', 'civi-framework'),
													'type' => 'text',
													'col' => '4',
												),
											)
										),
									)
								)
							),
							array(
								array(
									'id' => "{$meta_prefix}jobs_apply",
									'title' => esc_html__('Apply', 'civi-framework'),
									'icon' => 'dashicons-email',
									'fields' => array(
										array(
											'type' => 'row',
											'col' => '12',
											'fields' => array_merge(
												array(
													array(
														'id' => "{$meta_prefix}jobs_select_apply",
														'title' => esc_html__('Select Type', 'civi-framework'),
														'type' => 'select',
														'col' => 6,
														'options' => apply_filters(
															'civi_fields_select_apply_jobs',
															array(
																'email' => esc_html__('By email', 'civi-framework'),
																'external' => esc_html__('External Apply', 'civi-framework'),
																'internal' => esc_html__('Internal Apply', 'civi-framework'),
																'call-to' => esc_html__('Call To Apply', 'civi-framework'),
															)
														)
													),
													array(
														'id' => "{$meta_prefix}jobs_apply_email",
														'title' => esc_html__('Job apply email', 'civi-framework'),
														'type' => 'text',
														'col' => 6,
														'required' => array(
															array("{$meta_prefix}jobs_select_apply", '=', 'email'),
														),
													),
													array(
														'id' => "{$meta_prefix}jobs_apply_external",
														'title' => esc_html__('Job apply external', 'civi-framework'),
														'type' => 'text',
														'col' => 6,
														'required' => array(
															array("{$meta_prefix}jobs_select_apply", '=', 'external'),
														),
													),
													array(
														'id' => "{$meta_prefix}jobs_apply_call_to",
														'title' => esc_html__('Job Call To Apply', 'civi-framework'),
														'type' => 'text',
														'col' => 6,
														'required' => array(
															array("{$meta_prefix}jobs_select_apply", '=', 'call-to'),
														),
													),
												),
												apply_filters('civi_fields_jobs_apply', array())
											)
										)
									)
								)
							),
							array(
								array(
									'id' => "{$meta_prefix}jobs_company",
									'title' => esc_html__('Company', 'civi-framework'),
									'icon' => 'dashicons dashicons-building',
									'fields' => array(
										array(
											'id' => "{$meta_prefix}jobs_select_company",
											'title' => esc_html__('Select company', 'civi-framework'),
											'type' => 'select',
											'options' => civi_select_post_company(),
										),
									)
								)
							),
							array(
								array(
									'id' => "{$meta_prefix}location_tab",
									'title' => esc_html__('Location', 'civi-framework'),
									'icon' => 'dashicons-location-alt',
									'fields' => array(
										array(
											'type' => 'row',
											'col' => '12',
											'fields' => array(
												array(
													'id' => "{$meta_prefix}jobs_address",
													'title' => esc_html__('Maps location', 'civi-framework'),
													'desc' => esc_html__('Address Details', 'civi-framework'),
													'type' => 'text',
													'col' => 4
												),
												array(
													'id' => "{$meta_prefix}jobs_latitude",
													'title' => esc_html__('Latitude', 'civi-framework'),
													'desc' => esc_html__('Latitude Details', 'civi-framework'),
													'type' => 'text',
													'col' => 4
												),
												array(
													'id' => "{$meta_prefix}jobs_longtitude",
													'title' => esc_html__('Longtitude', 'civi-framework'),
													'desc' => esc_html__('Longtitude Details', 'civi-framework'),
													'type' => 'text',
													'col' => 4
												),
												array(
													'id' => "{$meta_prefix}jobs_location",
													'title' => esc_html__('Jobs Location at Google Map', 'civi-framework'),
													'desc' => esc_html__('Drag the google map marker to point your jobs location. You can also use the address field above to search for your jobs', 'civi-framework'),
													'type' => 'map',
													'address_field' => "{$meta_prefix}jobs_address",
												),
											)
										)
									)
								),
								array(
									'id' => "{$meta_prefix}gallery_tab",
									'title' => esc_html__('Gallery Images', 'civi-framework'),
									'icon' => 'dashicons-format-gallery',
									'fields' => array(
										array(
											'id' => "{$meta_prefix}jobs_images",
											'title' => esc_html__('Gallery Images', 'civi-framework'),
											'type' => 'gallery',
										),
									)
								),
								array(
									'id' => "{$meta_prefix}video_tab",
									'title' => esc_html__('Video', 'civi-framework'),
									'icon' => 'dashicons-video-alt3',
									'fields' => array(
										array(
											'id' => "{$meta_prefix}jobs_video_url",
											'title' => esc_html__('Video URL', 'civi-framework'),
											'desc' => esc_html__('Input only URL. YouTube, Vimeo, SWF File and MOV File', 'civi-framework'),
											'type' => 'text',
											'col' => 12,
										),
										array(
											'id' => "{$meta_prefix}jobs_video_image",
											'title' => esc_html__('Video Image', 'civi-framework'),
											'type' => 'gallery',
											'col' => 12,
										),
									)
								),
							),
							$custom_field_jobs
						)
					),
					apply_filters('civi_register_meta_boxes_jobs_bottom', array())
				),
			));

			$configs['company_meta_boxes'] = apply_filters('civi_register_meta_boxes_company', array(
				'name' => esc_html__('Company Information', 'civi-framework'),
				'post_type' => array('company'),
				'section' => array_merge(
					apply_filters('civi_register_meta_boxes_company_top', array()),
					apply_filters(
						'civi_register_meta_boxes_company_main',
						array_merge(
							array(
								array(
									'id' => "{$meta_prefix}details_company_tab",
									'title' => esc_html__('Basic Infomation', 'civi-framework'),
									'icon' => 'dashicons-admin-home',
									'fields' => array(
										array(
											'type' => 'row',
											'col' => '12',
											'fields' => array(
												array(
													'id' => "{$meta_prefix}company_green_tick",
													'type' => 'button_set',
													'title' => esc_html__('Enable Green Tick', 'civi-framework'),
													'subtitle' => esc_html__('Enable/Disable Green Tick', 'civi-framework'),
													'options' => array(
														'1' => esc_html__('On', 'civi-framework'),
														'0' => esc_html__('Off', 'civi-framework'),
													),
													'default' => '0',
												),
												array(
													'id' => "{$meta_prefix}company_website",
													'title' => esc_html__(' Website ', 'civi-framework'),
													'type' => 'text',
													'col' => '6',
												),
												array(
													'id' => "{$meta_prefix}company_phone",
													'title' => esc_html__('Phone number', 'civi-framework'),
													'type' => 'text',
													'col' => '6',
												),
												array(
													'id' => "{$meta_prefix}company_email",
													'title' => esc_html__('Email', 'civi-framework'),
													'type' => 'text',
													'col' => '6',
												),
												array(
													'id' => "{$meta_prefix}company_founded",
													'title' => esc_html__('Founded In', 'civi-framework'),
													'type' => 'select',
													'options' => civi_get_company_founded(false),
													'col' => '6',
												),
											)
										),
									)
								),
								array(
									'id' => "{$meta_prefix}details_company_social",
									'title' => esc_html__('Social Network', 'civi-framework'),
									'icon' => 'dashicons dashicons-networking',
									'fields' => array(
										array(
											'type' => 'row',
											'fields' => array(
												array(
													'id' => "{$meta_prefix}company_twitter",
													'title' => esc_html__('Twitter', 'civi-framework'),
													'type' => 'text',
													'col' => '6',
												),
												array(
													'id' => "{$meta_prefix}company_linkedin",
													'title' => esc_html__('Linkedin', 'civi-framework'),
													'type' => 'text',
													'col' => '6',
												),

												array(
													'id' => "{$meta_prefix}company_facebook",
													'title' => esc_html__('Facebook', 'civi-framework'),
													'type' => 'text',
													'col' => '6',
												),
												array(
													'id' => "{$meta_prefix}company_instagram",
													'title' => esc_html__('Instagram', 'civi-framework'),
													'type' => 'text',
													'col' => '6',
												),
											)
										),
										array(
											'type' => 'divide'
										),
										array(
											'id' => "{$meta_prefix}company_social_tabs",
											'type' => 'panel',
											'title' => esc_html__('Social Network', 'civi-framework'),
											'sort' => true,
											'panel_title' => 'label',
											'fields' => array(
												array(
													'type' => 'row',
													'col' => '12',
													'fields' => array(
														array(
															'id' => "{$meta_prefix}company_social_name",
															'type' => 'select',
															'options' => civi_get_repeater_social(''),
															'col' => '6',
															'title' => esc_html__('Name', 'civi-framework'),
														),
														array(
															'id' => "{$meta_prefix}company_social_url",
															'type' => 'text',
															'col' => '6',
															'title' => esc_html__('Url', 'civi-framework'),
														),
													)
												)
											)
										),
									)
								),
								array(
									'id' => "{$meta_prefix}company_logo_tab",
									'title' => esc_html__('Logo', 'civi-framework'),
									'icon' => 'dashicons dashicons-format-image',
									'fields' => array(
										array(
											'type' => 'row',
											'col' => '12',
											'fields' => array(
												array(
													'id' => "{$meta_prefix}company_logo",
													'title' => esc_html__('Logo', 'civi-framework'),
													'type' => 'image',
												),
											)
										),
									)
								),
								array(
									'id' => "{$meta_prefix}location_tab",
									'title' => esc_html__('Location', 'civi-framework'),
									'icon' => 'dashicons-location-alt',
									'fields' => array(
										array(
											'type' => 'row',
											'col' => '12',
											'fields' => array(
												array(
													'id' => "{$meta_prefix}company_address",
													'title' => esc_html__('Maps location', 'civi-framework'),
													'desc' => esc_html__('Full Address', 'civi-framework'),
													'type' => 'text',
													'col' => 4
												),
												array(
													'id' => "{$meta_prefix}company_latitude",
													'title' => esc_html__('Latitude', 'civi-framework'),
													'desc' => esc_html__('Latitude Details', 'civi-framework'),
													'type' => 'text',
													'col' => 4
												),
												array(
													'id' => "{$meta_prefix}company_longtitude",
													'title' => esc_html__('Longtitude', 'civi-framework'),
													'desc' => esc_html__('Longtitude Details', 'civi-framework'),
													'type' => 'text',
													'col' => 4
												),
												array(
													'id' => "{$meta_prefix}company_location",
													'title' => esc_html__('Company Location at Google Map', 'civi-framework'),
													'desc' => esc_html__('Drag the google map marker to point your company location. You can also use the address field above to search for your company', 'civi-framework'),
													'type' => 'map',
													'address_field' => "{$meta_prefix}company_address",
												),
											)
										)
									)
								),
								array(
									'id' => "{$meta_prefix}gallery_company_tab",
									'title' => esc_html__('Gallery Images', 'civi-framework'),
									'icon' => 'dashicons-format-gallery',
									'fields' => array(
										array(
											'id' => "{$meta_prefix}company_images",
											'title' => esc_html__('Civi Gallery Images', 'civi-framework'),
											'type' => 'gallery',
										),
									)
								),
								array(
									'id' => "{$meta_prefix}video_company_tab",
									'title' => esc_html__('Video', 'civi-framework'),
									'icon' => 'dashicons-video-alt3',
									'fields' => array(
										array(
											'id' => "{$meta_prefix}company_video_url",
											'title' => esc_html__('Video URL', 'civi-framework'),
											'desc' => esc_html__('Input only URL. YouTube, Vimeo, SWF File and MOV File', 'civi-framework'),
											'type' => 'text',
											'col' => 12,
										),
										array(
											'id' => "{$meta_prefix}company_video_image",
											'title' => esc_html__('Video Image', 'civi-framework'),
											'type' => 'gallery',
											'col' => 12,
										),
									)
								),
								array(
									'id' => "{$meta_prefix}custom_field_company_tab",
									'title' => esc_html__('Additional Fields', 'civi-framework'),
									'icon' => 'dashicons dashicons-welcome-add-page',
									'fields' => $render_custom_field_company,
								)
							)
						)
					),
					apply_filters('civi_register_meta_boxes_company_bottom', array())
				),
			));

			$configs['candidate_meta_boxes'] = apply_filters('civi_register_meta_boxes_candidate', array(
				'name' => esc_html__('Candidate Information', 'civi-framework'),
				'post_type' => array('candidate'),
				'section' => array_merge(
					apply_filters('jobi_register_meta_boxes_candidate_top', array()),
					apply_filters(
						'jobi_register_meta_boxes_candidate_main',
						array_merge(
							array(
								array(
									'id' => "{$meta_prefix}details_tab",
									'title' => esc_html__('Basic Infomation', 'civi-framework'),
									'icon' => 'dashicons-admin-home',
									'fields' => array(
										array(
											'type' => 'row',
											'col' => '12',
											'fields' => array(
												array(
													'id' => "{$meta_prefix}candidate_first_name",
													'title' => esc_html__('First Name', 'civi-framework'),
													'type' => 'text',
													'default' => '',
													'col' => '6',
												),
												array(
													'id' => "{$meta_prefix}candidate_last_name",
													'title' => esc_html__('Last Name', 'civi-framework'),
													'type' => 'text',
													'default' => '',
													'col' => '6',
												),
												array(
													'id' => "{$meta_prefix}candidate_email",
													'title' => esc_html__('Email Address', 'civi-framework'),
													'type' => 'text',
													'default' => '',
													'col' => '6',
												),
												array(
													'id' => "{$meta_prefix}candidate_phone",
													'title' => esc_html__('Phone Number', 'civi-framework'),
													'type' => 'text',
													'default' => '',
													'col' => '6',
												),
												array(
													'id' => "{$meta_prefix}candidate_current_position",
													'title' => esc_html__('Current Position', 'civi-framework'),
													'type' => 'text',
													'default' => '',
													'col' => '6',
												),
												array(
													'id' => "{$meta_prefix}candidate_dob",
													'title' => esc_html__('Date Of Birth', 'civi-framework'),
													'type' => 'text',
													'default' => '',
													'pattern' => '(?:19|20)[0-9]{2}-(?:(?:0[1-9]|1[0-2])-(?:0[1-9]|1[0-9]|2[0-9])|(?:(?!02)(?:0[1-9]|1[0-2])-(?:30))|(?:(?:0[13578]|1[02])-31))',
													'placeholder' => 'yyyy-mm-dd',
													'maxlength' => '10',
													'col' => '6',
												),
											)
										),


										array(
											'type' => 'divide'
										),

										array(
											'type' => 'row',
											'fields' => array(
												array(
													'id' => "{$meta_prefix}candidate_offer_salary",
													'title' => esc_html__('Offered Salary', 'civi-framework'),
													'type' => 'text',
													'pattern' => '^[0-9]+([.][0-9]+)?$',
													'default' => '',
													'col' => '4',
												),
												array(
													'id' => "{$meta_prefix}candidate_salary_type",
													'title' => esc_html__('Salary Type', 'civi-framework'),
													'type' => 'select',
													'options' => array(
														'' => esc_html__('None', 'civi-framework'),
														'hr' => esc_html__('Hourly', 'civi-framework'),
														'day' => esc_html__('Daily', 'civi-framework'),
														'month' => esc_html__('Monthly', 'civi-framework'),
														'year' => esc_html__('Yearly', 'civi-framework'),
													),
													'col' => '4',
													'default' => 'hr',
												),
												array(
													'id' => "{$meta_prefix}candidate_currency_type",
													'title' => esc_html__('Currency Type', 'civi-framework'),
													'type' => 'select',
													'options' => civi_get_select_currency_type(),
													'col' => '4',
												),
												array(
													'id' => "{$meta_prefix}candidate_featured",
													'title' => esc_html__('Mark this candidate as featured ?', 'civi-framework'),
													'type' => 'button_set',
													'options' => array(
														'1' => esc_html__('Yes', 'civi-framework'),
														'0' => esc_html__('No', 'civi-framework'),
													),
													'default' => '0',
												),
												apply_filters('civi_register_meta_boxes_candidate_center', array()),
												apply_filters('civi_register_meta_boxes_candidate_bottom', array())
											)
										)
									)
								)
							),

							array(
								array(
									'id' => "{$meta_prefix}details_candidate_social",
									'title' => esc_html__('Social Network', 'civi-framework'),
									'icon' => 'dashicons dashicons-networking',
									'fields' => array(
										array(
											'type' => 'row',
											'fields' => array(
												array(
													'id' => "{$meta_prefix}candidate_twitter",
													'title' => esc_html__('Twitter', 'civi-framework'),
													'type' => 'text',
													'col' => '6',
												),
												array(
													'id' => "{$meta_prefix}candidate_linkedin",
													'title' => esc_html__('Linkedin', 'civi-framework'),
													'type' => 'text',
													'col' => '6',
												),

												array(
													'id' => "{$meta_prefix}candidate_facebook",
													'title' => esc_html__('Facebook', 'civi-framework'),
													'type' => 'text',
													'col' => '6',
												),
												array(
													'id' => "{$meta_prefix}candidate_instagram",
													'title' => esc_html__('Instagram', 'civi-framework'),
													'type' => 'text',
													'col' => '6',
												),

												$candidate_custom_social0,
												$candidate_custom_social1,
												$candidate_custom_social2,
												$candidate_custom_social3,
											)
										),
										array(
											'type' => 'divide'
										),
										array(
											'id' => "{$meta_prefix}candidate_social_tabs",
											'type' => 'panel',
											'title' => esc_html__('Social Network', 'civi-framework'),
											'sort' => true,
											'panel_title' => 'label',
											'fields' => array(
												array(
													'type' => 'row',
													'col' => '12',
													'fields' => array(
														array(
															'id' => "{$meta_prefix}candidate_social_name",
															'type' => 'select',
															'options' => civi_get_repeater_social(''),
															'col' => '6',
															'title' => esc_html__('Name', 'civi-framework'),
														),
														array(
															'id' => "{$meta_prefix}candidate_social_url",
															'type' => 'text',
															'col' => '6',
															'title' => esc_html__('Url', 'civi-framework'),
														),
													)
												)
											)
										),
									)
								)
							),

							array(
								array(
									'id' => "{$meta_prefix}candidate_resume_tab",
									'title' => esc_html__('My Resume', 'civi-framework'),
									'icon' => 'dashicons-format-gallery',
									'fields' => array(
										array(
											'id' => "{$meta_prefix}candidate_resume_id_list",
											'title' => esc_html__('Candidate Resume', 'civi-framework'),
											'type' => 'file',
										),
									)
								),
								array(
									'id' => "{$meta_prefix}candidate_location_tab",
									'title' => esc_html__('Location', 'civi-framework'),
									'icon' => 'dashicons-location-alt',
									'fields' => array(
										array(
											'type' => 'row',
											'col' => '12',
											'fields' => array(
												array(
													'id' => "{$meta_prefix}candidate_address",
													'title' => esc_html__('Maps location', 'civi-framework'),
													'desc' => esc_html__('Address Details', 'civi-framework'),
													'type' => 'text',
													'col' => 4
												),
												array(
													'id' => "{$meta_prefix}candidate_latitude",
													'title' => esc_html__('Latitude', 'civi-framework'),
													'desc' => esc_html__('Latitude Details', 'civi-framework'),
													'type' => 'text',
													'col' => 4
												),
												array(
													'id' => "{$meta_prefix}candidate_longtitude",
													'title' => esc_html__('Longtitude', 'civi-framework'),
													'desc' => esc_html__('Longtitude Details', 'civi-framework'),
													'type' => 'text',
													'col' => 4
												),
												array(
													'id' => "{$meta_prefix}candidate_location",
													'title' => esc_html__('Location at Google Map', 'civi-framework'),
													'desc' => esc_html__('Drag the google map marker to point your candidate location. You can also use the address field above to search for your candidate', 'civi-framework'),
													'type' => 'map',
													'address_field' => "{$meta_prefix}candidate_address",
												),
											)
										)

									)
								),
								array(
									'id' => "{$meta_prefix}candidate_education_tabs",
									'title' => esc_html__('Education', 'civi-framework'),
									'icon' => 'dashicons-editor-ul',
									'fields' => array(
										array(
											'id' => "{$meta_prefix}candidate_education_list",
											'type' => 'panel',
											'title' => esc_html__('Education', 'civi-framework'),
											'sort' => true,
											'panel_title' => 'label',
											'fields' => array(
												array(
													'type' => 'row',
													'col' => '12',
													'fields' => array(
														array(
															'id' => "{$meta_prefix}candidate_education_title",
															'title' => esc_html__('Title', 'civi-framework'),
															'type' => 'text',
															'default' => '',
															'col' => '6'
														),
														array(
															'id' => "{$meta_prefix}candidate_education_level",
															'title' => esc_html__('Level of Education', 'civi-framework'),
															'type' => 'text',
															'default' => '',
															'col' => '6'
														),
														array(
															'id' => "{$meta_prefix}candidate_education_from",
															'title' => esc_html__('From', 'civi-framework'),
															'type' => 'text',
															'default' => '',
															'col' => '6'
														),
														array(
															'id' => "{$meta_prefix}candidate_education_to",
															'title' => esc_html__('To', 'civi-framework'),
															'type' => 'text',
															'default' => '',
															'col' => '6'
														),
														array(
															'id' => "{$meta_prefix}candidate_education_description",
															'title' => esc_html__('Description', 'civi-framework'),
															'type' => 'textarea',
															'default' => '',
															'col' => '12'
														),
													)
												)
											)
										)
									)
								),
								array(
									'id' => "{$meta_prefix}candidate_experience_tab",
									'title' => esc_html__('Experiencies', 'civi-framework'),
									'icon' => 'dashicons-location-alt',
									'fields' => array(
										array(
											'id' => "{$meta_prefix}candidate_experience_list",
											'type' => 'panel',
											'title' => esc_html__('Work Experience', 'civi-framework'),
											'sort' => true,
											'panel_title' => 'label',
											'fields' => array(
												array(
													'type' => 'row',
													'col' => '12',
													'fields' => array(
														array(
															'id' => "{$meta_prefix}candidate_experience_job",
															'title' => esc_html__('Job Title', 'civi-framework'),
															'type' => 'text',
															'default' => '',
															'col' => '6'
														),
														array(
															'id' => "{$meta_prefix}candidate_experience_company",
															'title' => esc_html__('Company', 'civi-framework'),
															'type' => 'text',
															'default' => '',
															'col' => '6'
														),
														array(
															'id' => "{$meta_prefix}candidate_experience_from",
															'title' => esc_html__('From', 'civi-framework'),
															'type' => 'text',
															'default' => '',
															'col' => '6'
														),
														array(
															'id' => "{$meta_prefix}candidate_experience_to",
															'title' => esc_html__('To', 'civi-framework'),
															'type' => 'text',
															'default' => '',
															'col' => '6'
														),
														array(
															'id' => "{$meta_prefix}candidate_experience_description",
															'title' => esc_html__('Description', 'civi-framework'),
															'type' => 'textarea',
															'default' => '',
															'col' => '12'
														),
													)
												)
											)
										)
									)
								),
								array(
									'id' => "{$meta_prefix}candidate_project_tab",
									'title' => esc_html__('Projects', 'civi-framework'),
									'icon' => 'dashicons-format-gallery',
									'fields' => array(
										array(
											'id' => "{$meta_prefix}candidate_project_list",
											'type' => 'panel',
											'title' => esc_html__('Projects', 'civi-framework'),
											'sort' => true,
											'panel_title' => 'label',
											'fields' => array(
												array(
													'type' => 'row',
													'col' => '12',
													'fields' => array(
														array(
															'id' => "{$meta_prefix}candidate_project_image_id",
															'title' => esc_html__('A screenshot of Project', 'civi-framework'),
															'type' => 'image',
															'default' => '',
															'col' => '12'
														),
														array(
															'id' => "{$meta_prefix}candidate_project_title",
															'title' => esc_html__('Project Title', 'civi-framework'),
															'type' => 'text',
															'default' => '',
															'col' => '6'
														),
														array(
															'id' => "{$meta_prefix}candidate_project_link",
															'title' => esc_html__('Link', 'civi-framework'),
															'type' => 'text',
															'default' => '',
															'col' => '6'
														),
														array(
															'id' => "{$meta_prefix}candidate_project_description",
															'title' => esc_html__('Description', 'civi-framework'),
															'type' => 'textarea',
															'default' => '',
															'col' => '12'
														),
													)
												)
											)
										)
									)
								),
								array(
									'id' => "{$meta_prefix}candidate_award_tab",
									'title' => esc_html__('Awards', 'civi-framework'),
									'icon' => 'dashicons-video-alt3',
									'fields' => array(
										array(
											'id' => "{$meta_prefix}candidate_award_list",
											'type' => 'panel',
											'title' => esc_html__('Awards', 'civi-framework'),
											'sort' => true,
											'panel_title' => 'label',
											'fields' => array(
												array(
													'type' => 'row',
													'col' => '12',
													'fields' => array(
														array(
															'id' => "{$meta_prefix}candidate_award_title",
															'title' => esc_html__('Title', 'civi-framework'),
															'type' => 'text',
															'default' => '',
															'col' => '6'
														),
														array(
															'id' => "{$meta_prefix}candidate_award_date",
															'title' => esc_html__('Date Awarded', 'civi-framework'),
															'type' => 'text',
															'default' => '',
															'col' => '6'
														),
														array(
															'id' => "{$meta_prefix}candidate_award_description",
															'title' => esc_html__('Description', 'civi-framework'),
															'type' => 'textarea',
															'default' => '',
															'col' => '12'
														),
													)
												)
											)
										)
									)
								),
								array(
									'id' => "{$meta_prefix}candidate_video_gallery_tab",
									'title' => esc_html__('Video and Gallery', 'civi-framework'),
									'icon' => 'dashicons-video-alt3',
									'fields' => array(
										array(
											'id' => "{$meta_prefix}candidate_galleries",
											'title' => esc_html__('Gallery', 'civi-framework'),
											'type' => 'gallery',
											'default' => '',
											'col' => '12'
										),
										array(
											'id' => "{$meta_prefix}candidate_video_url",
											'title' => esc_html__('Video URL', 'civi-framework'),
											'type' => 'text',
											'default' => '',
											'col' => '6'
										),
									)
								),
							),
							$custom_field_candidate
						)
					),
					apply_filters('jobi_register_meta_boxes_candidate_bottom', array())
				),
			));

			$configs['package_meta_boxes'] = array(
				'name' => esc_html__('Package Settings', 'civi-framework'),
				'post_type' => array('package'),
				'fields' => array_merge(
					array(
						array(
							'type' => 'row',
							'col' => '4',
							'fields' => array(
								array(
									'id' => "{$meta_prefix}package_unlimited_job",
									'title' => esc_html__('Unlimited Job', 'civi-framework'),
									'type' => 'button_set',
									'options' => array(
										'1' => esc_html__('Yes', 'civi-framework'),
										'0' => esc_html__('No', 'civi-framework'),
									),
									'default' => '0',
								),
								array(
									'id' => "{$meta_prefix}package_number_job",
									'title' => esc_html__('Number Listings', 'civi-framework'),
									'type' => 'text',
									'default' => '',
									'pattern' => '[0-9]*',
									'required' => array("{$meta_prefix}package_unlimited_job", '=', '0'),
								),
							)
						),
						array(
							'type' => 'row',
							'col' => '4',
							'fields' => array(
								array(
									'id' => "{$meta_prefix}package_unlimited_job_featured",
									'title' => esc_html__('Unlimited Job Featured', 'civi-framework'),
									'type' => 'button_set',
									'options' => array(
										'1' => esc_html__('Yes', 'civi-framework'),
										'0' => esc_html__('No', 'civi-framework'),
									),
									'default' => '0',
								),
								array(
									'id' => "{$meta_prefix}package_number_featured",
									'title' => esc_html__('Number Featured Listings', 'civi-framework'),
									'type' => 'text',
									'default' => '',
									'pattern' => '[0-9]*',
									'required' => array("{$meta_prefix}package_unlimited_job_featured", '=', '0'),
								),
							)
						),
						$company_package_candidate_follow,
						$company_package_download_cv_candidate,
						$result_package = apply_filters('civi_register_field_package_jobs', array()),
						array(
							'type' => 'row',
							'col' => '4',
							'fields' => array(
								$company_package_invite_candidate,
								$company_package_send_message_candidate,
								$company_package_print_candidate,
								$company_package_review_candidate,
								$company_package_info_candidate,
							)
						),
						array(
							'type' => 'divide'
						),
						array(
							'type' => 'row',
							'col' => '4',
							'fields' => array(
								array(
									'id' => "{$meta_prefix}package_free",
									'title' => esc_html__('Free package', 'civi-framework'),
									'type' => 'button_set',
									'options' => array(
										'1' => esc_html__('Yes', 'civi-framework'),
										'0' => esc_html__('No', 'civi-framework'),
									),
									'default' => '0',
								),
								array(
									'id' => "{$meta_prefix}package_price",
									'title' => esc_html__('Package Price', 'civi-framework'),
									'type' => 'text',
									'required' => array("{$meta_prefix}package_free", '=', '0'),
								),
							)
						),
						array(
							'type' => 'row',
							'col' => '4',
							'fields' => array(
								array(
									'id' => "{$meta_prefix}package_unlimited_time",
									'title' => esc_html__('Unlimited time', 'civi-framework'),
									'type' => 'button_set',
									'options' => array(
										'1' => esc_html__('Yes', 'civi-framework'),
										'0' => esc_html__('No', 'civi-framework'),
									),
									'default' => '0',
								),
								array(
									'id' => "{$meta_prefix}package_time_unit",
									'title' => esc_html__('Time Unit', 'civi-framework'),
									'type' => 'button_set',
									'options' => array(
										'Day' => esc_html__('Day', 'civi-framework'),
										'Week' => esc_html__('Week', 'civi-framework'),
										'Month' => esc_html__('Month', 'civi-framework'),
										'Year' => esc_html__('Year', 'civi-framework'),
									),
									'default' => 'Day',
									'required' => array("{$meta_prefix}package_unlimited_time", '=', '0'),
								),
								array(
									'id' => "{$meta_prefix}package_period",
									'title' => esc_html__('Number Time', 'civi-framework'),
									'type' => 'text',
									'default' => '1',
									'pattern' => '[0-9]*',
									'required' => array("{$meta_prefix}package_unlimited_time", '=', '0'),
								),
							)
						),
						array(
							'type' => 'row',
							'col' => '4',
							'fields' => array(
								array(
									'id' => "{$meta_prefix}package_order_display",
									'title' => esc_html__('Order Number Display Via Frontend', 'civi-framework'),
									'type' => 'text',
									'default' => '1',
									'pattern' => '[0-9]*',
								),
								array(
									'id' => "{$meta_prefix}package_featured",
									'title' => esc_html__('Is Featured?', 'civi-framework'),
									'type' => 'button_set',
									'options' => array(
										'1' => esc_html__('Yes', 'civi-framework'),
										'0' => esc_html__('No', 'civi-framework'),
									),
									'default' => '0',
								),
								array(
									'id' => "{$meta_prefix}package_visible",
									'title' => esc_html__('Is Visible?', 'civi-framework'),
									'type' => 'button_set',
									'options' => array(
										'1' => esc_html__('Yes', 'civi-framework'),
										'0' => esc_html__('No', 'civi-framework'),
									),
									'default' => '1',
								),
							)
						),
						array(
							'type' => 'divide'
						),
						array(
							'id' => "{$meta_prefix}package_additional_details",
							'type' => 'repeater',
							'title' => esc_html__('Additional details:', 'civi-framework'),
							'col' => '6',
							'sort' => true,
							'fields' => array(
								array(
									'id' => "{$meta_prefix}package_details_text",
									'type' => 'text',
									'default' => esc_html__('Limited support', 'civi-framework'),
								),
							)
						),
					),
					apply_filters('package_meta_boxes_candidate_bottom', array())
				),
			);

			$configs['candidate_package_meta_boxes'] = array(
				'name' => esc_html__('Candidate Package', 'civi-framework'),
				'post_type' => array('candidate_package'),
				'fields' => array(
					$candidate_package_service,
					$candidate_package_service_featured,
					$candidate_package_jobs_apply,
					$candidate_package_jobs_wishlist,
					$candidate_package_company_follow,
					array(
						'type' => 'row',
						'col' => '4',
						'fields' => array(
							$candidate_package_contact_company,
							$candidate_package_info_company,
							$candidate_package_send_message,
							$candidate_package_review_and_commnent,
							apply_filters('civi_register_field_package_info_candidate', array()),
						)
					),
					array(
						'type' => 'divide'
					),
					array(
						'type' => 'row',
						'col' => '4',
						'fields' => array(
							array(
								'id' => "{$meta_prefix}candidate_package_free",
								'title' => esc_html__('Free Package', 'civi-framework'),
								'type' => 'button_set',
								'options' => array(
									'1' => esc_html__('Yes', 'civi-framework'),
									'0' => esc_html__('No', 'civi-framework'),
								),
								'default' => '0',
							),
							array(
								'id' => "{$meta_prefix}candidate_package_price",
								'title' => esc_html__('Package Price', 'civi-framework'),
								'type' => 'text',
								'required' => array("{$meta_prefix}candidate_package_free", '=', '0'),
							),
						)
					),
					array(
						'type' => 'row',
						'col' => '4',
						'fields' => array(
							array(
								'id' => "{$meta_prefix}enable_package_service_unlimited_time",
								'title' => esc_html__('Unlimited time', 'civi-framework'),
								'type' => 'button_set',
								'options' => array(
									'1' => esc_html__('Yes', 'civi-framework'),
									'0' => esc_html__('No', 'civi-framework'),
								),
								'default' => '0',
							),
							array(
								'id' => "{$meta_prefix}candidate_package_time_unit",
								'title' => esc_html__('Time Unit', 'civi-framework'),
								'type' => 'button_set',
								'options' => array(
									'Day' => esc_html__('Day', 'civi-framework'),
									'Week' => esc_html__('Week', 'civi-framework'),
									'Month' => esc_html__('Month', 'civi-framework'),
									'Year' => esc_html__('Year', 'civi-framework'),
								),
								'default' => 'Day',
								'required' => array("{$meta_prefix}enable_package_service_unlimited_time", '=', '0'),
							),
							array(
								'id' => "{$meta_prefix}candidate_package_period",
								'title' => esc_html__('Number Time', 'civi-framework'),
								'type' => 'text',
								'default' => '1',
								'pattern' => '[0-9]*',
								'required' => array("{$meta_prefix}enable_package_service_unlimited_time", '=', '0'),
							),
						)
					),
					array(
						'type' => 'row',
						'col' => '4',
						'fields' => array(
							array(
								'id' => "{$meta_prefix}candidate_package_order_display",
								'title' => esc_html__('Order Number Display Via Frontend', 'civi-framework'),
								'type' => 'text',
								'default' => '1',
								'pattern' => '[0-9]*',
							),
							array(
								'id' => "{$meta_prefix}candidate_package_featured",
								'title' => esc_html__('Is Featured?', 'civi-framework'),
								'type' => 'button_set',
								'options' => array(
									'1' => esc_html__('Yes', 'civi-framework'),
									'0' => esc_html__('No', 'civi-framework'),
								),
								'default' => '0',
							),
							array(
								'id' => "{$meta_prefix}candidate_package_visible",
								'title' => esc_html__('Is Visible?', 'civi-framework'),
								'type' => 'button_set',
								'options' => array(
									'1' => esc_html__('Yes', 'civi-framework'),
									'0' => esc_html__('No', 'civi-framework'),
								),
								'default' => '1',
							),
						)
					),
					array(
						'type' => 'divide'
					),
					array(
						'id' => "{$meta_prefix}candidate_package_additional_details",
						'type' => 'repeater',
						'title' => esc_html__('Custom Field Package', 'civi-framework'),
						'col' => '6',
						'sort' => true,
						'fields' => array(
							array(
								'id' => "{$meta_prefix}candidate_package_details_text",
								'type' => 'text',
								'default' => esc_html__('Limited support', 'civi-framework'),
							),
						)
					),
				),
			);

			$configs['candidate_order_meta_boxes'] = array(
				'name' => esc_html__('Service Order Settings', 'civi-framework'),
				'post_type' => array('candidate_order'),
				'fields' => array(
					array(
						'type' => 'row',
						'col' => '12',
						'fields' => array(
							array(
								'id' => "{$meta_prefix}candidate_order_payment_status",
								'title' => esc_html__('Status', 'civi-framework'),
								'type' => 'button_set',
								'col' => '4',
								'options' => array(
									'0' => esc_html__('Pending', 'civi-framework'),
									'1' => esc_html__('Active', 'civi-framework'),
								),
								'default' => 'pending',
							),
						)
					),
					array(
						'type' => 'row',
						'col' => '12',
						'fields' => array(
							array(
								'id' => "{$meta_prefix}candidate_order_user_id",
								'title' => esc_html__('User Buyer id', 'civi-framework'),
								'default' => '',
								'type' => 'text',
								'col' => '4',
							),
							array(
								'id' => "{$meta_prefix}candidate_order_item_id",
								'title' => esc_html__('Package id', 'civi-framework'),
								'default' => '',
								'type' => 'text',
								'col' => '4',
							),
							array(
								'id' => "{$meta_prefix}candidate_order_price",
								'title' => esc_html__('Price', 'civi-framework'),
								'default' => '30',
								'type' => 'text',
								'col' => '4',
							),
							array(
								'id' => "{$meta_prefix}candidate_order_date",
								'title' => esc_html__('Activate Date', 'civi-framework'),
								'default' => '',
								'type' => 'text',
								'col' => '4',
							),
							array(
								'id' => "{$meta_prefix}candidate_order_payment_method",
								'title' => esc_html__('Payment Method', 'civi-framework'),
								'default' => '',
								'type' => 'text',
								'col' => '4',
							),
						)
					),
				),
			);

			$date_applicants = get_the_date(get_option('date_format'));
			$configs['applicants_meta_boxes'] = array(
				'name' => esc_html__('Applicants Settings', 'civi-framework'),
				'post_type' => array('applicants'),
				'fields' => array(
					array(
						'type' => 'row',
						'col' => '6',
						'fields' => array(
							array(
								'id' => "{$meta_prefix}applicants_status",
								'title' => esc_html__('Status', 'civi-framework'),
								'type' => 'button_set',
								'options' => array(
									'pending' => esc_html__('Pending', 'civi-framework'),
									'approved' => esc_html__('Approved', 'civi-framework'),
									'rejected' => esc_html__('Rejected', 'civi-framework'),
								),
								'default' => 'pending',
							),
							array(
								'id' => "{$meta_prefix}applicants_type",
								'title' => esc_html__('Type Apply', 'civi-framework'),
								'type' => 'button_set',
								'options' => array(
									'email' => esc_html__('Email', 'civi-framework'),
									'internal' => esc_html__('Internal', 'civi-framework'),
								),
								'default' => 'email',
							),
						)
					),
					array(
						'type' => 'row',
						'col' => '6',
						'fields' => array(
							array(
								'id' => "{$meta_prefix}applicants_author",
								'title' => esc_html__('Name Apply', 'civi-framework'),
								'type' => 'text',
								'default' => '',
								'required' => array("{$meta_prefix}applicants_type", '=', 'email'),
							),
							array(
								'id' => "{$meta_prefix}applicants_phone",
								'title' => esc_html__('Phone', 'civi-framework'),
								'type' => 'text',
								'default' => '',
								'required' => array("{$meta_prefix}applicants_type", '=', 'email'),
							),
							array(
								'id' => "{$meta_prefix}applicants_email",
								'title' => esc_html__('Email Address', 'civi-framework'),
								'type' => 'text',
								'default' => '',
								'required' => array("{$meta_prefix}applicants_type", '=', 'email'),
							),
							array(
								'id' => "{$meta_prefix}applicants_cv",
								'title' => esc_html__('Cv Url', 'civi-framework'),
								'type' => 'text',
								'default' => '',
							),
						)
					),
					array(
						'id' => "{$meta_prefix}applicants_message",
						'title' => esc_html__('Message', 'civi-framework'),
						'type' => 'textarea',
						'default' => '',
					),
					array(
						'type' => 'row',
						'col' => '12',
						'fields' => array(
							array(
								'id' => "{$meta_prefix}applicants_jobs_id",
								'title' => esc_html__('Jobs ID', 'civi-framework'),
								'type' => 'text',
								'col' => '6',
								'default' => '',
							),
							array(
								'id' => "{$meta_prefix}applicants_date",
								'title' => esc_html__('Post Date', 'civi-framework'),
								'type' => 'text',
								'col' => '6',
								'default' => $date_applicants,
							),
						)
					),
				),
			);

			$args = [
				'post_type'      => ['package', 'candidate_package'],
				'post_status'    => 'publish',
				'posts_per_page' => -1,
			];

			$posts = get_posts($args);
			$package_coupon = [];

			foreach ($posts as $post) {
				// Convert post type to a readable format
				$formatted_type = ucwords(str_replace('_', ' ', $post->post_type));

				$package_coupon[$post->ID] = $post->post_title . ' (' . $formatted_type . ')';
			}

			$configs['package_coupon_meta_boxes'] = array(
				'name' => esc_html__('Package Coupon Settings', 'civi-framework'),
				'post_type' => array('package_coupon'),
				'fields' => array(
					array(
						'type' => 'row',
						'col' => '6',
						'fields' => array(
							array(
								'id' => "{$meta_prefix}coupon_type",
								'title' => esc_html__('Coupon Type', 'civi-framework'),
								'type' => 'button_set',
								'options' => array(
									'fixed' => esc_html__('Fixed', 'civi-framework'),
									'percentage' => esc_html__('Percentage', 'civi-framework'),
								),
								'default' => 'fixed',
							),
							array(
								'id' => "{$meta_prefix}amount",
								'title' => esc_html__('Amount', 'civi-framework'),
								'type' => 'text',
								'default' => '',
							),
						)
					),
					array(
						'type' => 'row',
						'col' => '6',
						'fields' => array(
							array(
								'id' => "{$meta_prefix}coupon_limit",
								'title' => esc_html__('Coupon Limit', 'civi-framework'),
								'type' => 'button_set',
								'options' => array(
									'uses' => esc_html__('Number of uses', 'civi-framework'),
									'date' => esc_html__('Date', 'civi-framework'),
								),
								'default' => 'uses',
							),
							array(
								'id' => "{$meta_prefix}coupon_uses",
								'title' => esc_html__('Number of uses', 'civi-framework'),
								'type' => 'text',
								'input_type' => 'number',
								'default' => '50',
								'required' => array("{$meta_prefix}coupon_limit", '=', 'uses'),
								'desc' => esc_html__('Enter the number of uses for the discount code.', 'civi-framework'),
							),
							array(
								'id' => "{$meta_prefix}coupon_date",
								'title' => esc_html__('Date', 'civi-framework'),
								'type' => 'text',
								'input_type' => 'date',
								'default' => '',
								'required' => array("{$meta_prefix}coupon_limit", '=', 'date'),
								'desc' => esc_html__('Enter the expiration date of the discount code.', 'civi-framework'),
							),
						)
					),
					array(
						'id' => "{$meta_prefix}package_selected",
						'title' => esc_html__('Package', 'civi-framework'),
						'type' => 'checkbox_list',
						'options' => $package_coupon,
						'default' => '',
					),
				),
			);

			$configs['meetings_meta_boxes'] = array(
				'name' => esc_html__('Meetings Settings', 'civi-framework'),
				'post_type' => array('meetings'),
				'fields' => array(
					array(
						'id' => "{$meta_prefix}meeting_status",
						'title' => esc_html__('Status', 'civi-framework'),
						'type' => 'button_set',
						'options' => array(
							'upcoming' => esc_html__('Upcoming', 'civi-framework'),
							'completed' => esc_html__('Completed', 'civi-framework'),
						),
						'default' => 'upcoming',
					),
					array(
						'type' => 'row',
						'col' => '6',
						'fields' => array(
							array(
								'id' => "{$meta_prefix}meeting_with",
								'title' => esc_html__('Meeting With', 'civi-framework'),
								'type' => 'text',
								'default' => '',
							),
							array(
								'id' => "{$meta_prefix}meeting_date",
								'title' => esc_html__('Date', 'civi-framework'),
								'type' => 'text',
								'default' => '',
							),
							array(
								'id' => "{$meta_prefix}meeting_time",
								'title' => esc_html__('Time', 'civi-framework'),
								'type' => 'text',
								'default' => '',
							),
							array(
								'id' => "{$meta_prefix}meeting_time_duration",
								'title' => esc_html__('Time Duration', 'civi-framework'),
								'type' => 'text',
								'default' => '',
							),
						)
					),
					array(
						'id' => "{$meta_prefix}meeting_message",
						'title' => esc_html__('Message', 'civi-framework'),
						'type' => 'textarea',
						'default' => '',
					),
				),
			);

			if (post_type_exists('job_alerts')) {
				$configs['job_alerts_meta_boxes'] = array(
					'name' => esc_html__('Job Alerts Infomation', 'civi-framework'),
					'post_type' => array('job_alerts'),
					'fields' => array(
						array(
							'type' => 'row',
							'fields' => array(
								array(
									'id' => "{$meta_prefix}job_alerts_email",
									'title' => esc_html__('Email', 'civi-framework'),
									'type' => 'text',
									'default' => '',
									'col' => '6',
								),
								array(
									'id' => "{$meta_prefix}job_alerts_phone",
									'title' => esc_html__('Phone', 'civi-framework'),
									'type' => 'text',
									'default' => '',
									'col' => '6',
								),
								array(
									'id' => "{$meta_prefix}job_alerts_location",
									'title' => esc_html__('Location', 'civi-framework'),
									'type' => 'select',
									'options' => civi_get_taxonomy('jobs-location', false, true, true),
									'default' => '',
									'col' => '3',
								),
								array(
									'id' => "{$meta_prefix}job_alerts_categories",
									'title' => esc_html__('Categories', 'civi-framework'),
									'type' => 'select',
									'options' => civi_get_taxonomy('jobs-categories', false, true, true),
									'default' => '',
									'col' => '3',
								),
								array(
									'id' => "{$meta_prefix}job_alerts_experience",
									'title' => esc_html('Experience', 'civi-framework'),
									'type' => 'select',
									'options' => civi_get_taxonomy('jobs-experience', false, true, true),
									'default' => '',
									'col' => '3',
								),
								array(
									'id' => "{$meta_prefix}job_alerts_frequency",
									'title' => esc_html__('Frequency', 'civi-framework'),
									'type' => 'select',
									'options' => array(
										''	=> esc_html('Select an option', 'civi-framework'),
										'daily'	=> esc_html('Daily', 'civi-framework'),
										'weekly'	=> esc_html('Weekly', 'civi-framework'),
										'monthly'	=> esc_html('Monthly', 'civi-framework'),
									),
									'default' => '',
									'col' => '3',
								),
								array(
									'id' => "{$meta_prefix}job_alerts_skill",
									'type' => 'checkbox_list',
									'title' => esc_html__('Skills', 'civi-framework'),
									'options' => civi_get_taxonomy('jobs-skills', false, true, true),
									'value_inline' => true,
									'default' => array(),
									'col' => '12',
								),
								array(
									'id' => "{$meta_prefix}job_alerts_type",
									'type' => 'checkbox_list',
									'title' => esc_html__('Type', 'civi-framework'),
									'options' => civi_get_taxonomy('jobs-type', false, true, true),
									'value_inline' => true,
									'default' => array(),
									'col' => '12',
								),
							)
						),
					),
				);
			}

			// Page
			$configs['civi_page_options'] = array(
				'name' => esc_html__('Page Options', 'civi'),
				'post_type' => array('page'),
				'section' => array_merge(
					apply_filters('civi_register_meta_boxes_page_top', array()),
					apply_filters(
						'civi_register_meta_boxes_page_main',
						array_merge(
							array(
								array(
									'id' => "{$meta_prefix}page_Layout",
									'title' => esc_html__('Page Layout', 'civi-framework'),
									'icon' => 'dashicons-admin-home',
									'fields' => array(
										array(
											'type' => 'row',
											'col' => '12',
											'fields' => array(
												array(
													'id' => "{$meta_prefix}page_body_bg",
													'title' => esc_html__('Body Background', 'civi-framework'),
													'type' => 'color',
													'col' => '12',
													'default' => '',
												),
												array(
													'id' => "{$meta_prefix}page_pt_deskop",
													'title' => esc_html__('Padding Top (Deskop)', 'civi-framework'),
													'type' => 'text',
													'default' => '',
													'col' => '6',
													'pattern' => '[0-9]*',
												),
												array(
													'id' => "{$meta_prefix}page_pb_deskop",
													'title' => esc_html__('Padding Bottom (Deskop)', 'civi-framework'),
													'type' => 'text',
													'default' => '',
													'col' => '6',
													'pattern' => '[0-9]*',
												),
												array(
													'id' => "{$meta_prefix}page_pt_mobie",
													'title' => esc_html__('Padding Top (Mobie)', 'civi-framework'),
													'type' => 'text',
													'default' => '',
													'col' => '6',
													'pattern' => '[0-9]*',
												),
												array(
													'id' => "{$meta_prefix}page_pb_mobie",
													'title' => esc_html__('Padding Bottom (Mobie)', 'civi-framework'),
													'type' => 'text',
													'default' => '',
													'col' => '6',
													'pattern' => '[0-9]*',
												),
											)
										),

									)
								)
							),
							array(
								array(
									'id' => "{$meta_prefix}page_header",
									'title' => esc_html__('Page Header', 'civi-framework'),
									'icon' => 'dashicons-before dashicons-smiley',
									'fields' => array(
										array(
											'type' => 'row',
											'col' => '12',
											'fields' => array(
												array(
													'id' => "{$meta_prefix}header_show",
													'title' => esc_html__('Show Header', 'civi-framework'),
													'type' => 'button_set',
													'options' => array(
														'1' => esc_html__('Yes', 'civi-framework'),
														'0' => esc_html__('No', 'civi-framework'),
													),
													'col' => '4',
													'default' => '1',
												),
												array(
													'id' => "{$meta_prefix}header_style",
													'title' => esc_html__('Header Style', 'civi-framework'),
													'type' => 'button_set',
													'options' => array(
														'dark' => esc_html__('Dark', 'civi-framework'),
														'light' => esc_html__('Light', 'civi-framework'),
													),
													'col' => '4',
													'default' => 'dark',
													'required' => array("{$meta_prefix}header_show", '=', '1'),
												),
												array(
													'id' => "{$meta_prefix}show_top_bar",
													'title' => esc_html__('Show Top Bar', 'civi-framework'),
													'type' => 'button_set',
													'options' => array(
														'1' => esc_html__('Yes', 'civi-framework'),
														'0' => esc_html__('No', 'civi-framework'),
													),
													'col' => '4',
													'default' => '0',
													'required' => array("{$meta_prefix}header_show", '=', '1'),
												),
												array(
													'id' => "{$meta_prefix}header_type",
													'title' => esc_html__('Header Type', 'civi-framework'),
													'type' => 'select',
													'default' => '',
													'options' => civi_get_header_elementor(),
													'col' => '4',
													'required' => array("{$meta_prefix}header_show", '=', '1'),
												),
												array(
													'id' => "{$meta_prefix}show_header_float",
													'title' => esc_html__('Header Float', 'civi-framework'),
													'type' => 'select',
													'options' => array(
														'' => esc_html__('Default', 'civi-framework'),
														'1' => esc_html__('Yes', 'civi-framework'),
														'0' => esc_html__('No', 'civi-framework'),
													),
													'col' => '4',
													'default' => '',
													'required' => array("{$meta_prefix}header_show", '=', '1'),
												),
												array(
													'id' => "{$meta_prefix}show_header_sticky",
													'title' => esc_html__('Header Sticky', 'civi-framework'),
													'type' => 'select',
													'options' => array(
														'' => esc_html__('Default', 'civi-framework'),
														'1' => esc_html__('Yes', 'civi-framework'),
														'0' => esc_html__('No', 'civi-framework'),
													),
													'col' => '4',
													'default' => '',
													'required' => array("{$meta_prefix}header_show", '=', '1'),
												),
												array(
													'id' => "{$meta_prefix}show_header_rtl",
													'title' => esc_html__('Header Rtl', 'civi-framework'),
													'type' => 'select',
													'options' => array(
														'' => esc_html__('Default', 'civi-framework'),
														'1' => esc_html__('Yes', 'civi-framework'),
														'0' => esc_html__('No', 'civi-framework'),
													),
													'col' => '4',
													'default' => '',
													'required' => array("{$meta_prefix}header_show", '=', '1'),
												),
											)
										),

									)
								)
							),
							array(
								array(
									'id' => "{$meta_prefix}page_footer",
									'title' => esc_html__('Page Footer', 'civi-framework'),
									'icon' => 'dashicons-excerpt-view',
									'fields' => array(
										array(
											'type' => 'row',
											'col' => '12',
											'fields' => array(
												array(
													'id' => "{$meta_prefix}footer_show",
													'title' => esc_html__('Show Footer', 'civi-framework'),
													'type' => 'button_set',
													'options' => array(
														'1' => esc_html__('Yes', 'civi-framework'),
														'0' => esc_html__('No', 'civi-framework'),
													),
													'col' => '4',
													'default' => '1',
												),
												array(
													'id' => "{$meta_prefix}footer_type",
													'title' => esc_html__('Footer Type', 'civi-framework'),
													'type' => 'select',
													'default' => '',
													'options' => civi_get_footer_elementor(),
													'col' => '4',
													'required' => array("{$meta_prefix}footer_show", '=', '1'),
												)
											)
										),

									)
								)
							),
							array(
								array(
									'id' => "{$meta_prefix}page_title",
									'title' => esc_html__('Page Title', 'civi-framework'),
									'icon' => 'dashicons-analytics',
									'fields' => array(
										array(
											'type' => 'row',
											'col' => '12',
											'fields' => array(
												array(
													'id' => "{$meta_prefix}page_title_show",
													'title' => esc_html__('Show Page Title', 'civi-framework'),
													'type' => 'button_set',
													'options' => array(
														'1' => esc_html__('Yes', 'civi-framework'),
														'0' => esc_html__('No', 'civi-framework'),
													),
													'col' => '4',
													'default' => '0',
												),
												array(
													'id' => "{$meta_prefix}page_title_color",
													'title' => esc_html__('Text Color', 'civi-framework'),
													'type' => 'color',
													'col' => '4',
													'default' => '',
													'required' => array("{$meta_prefix}page_title_show", '=', '1'),
												),
												array(
													'id' => "{$meta_prefix}page_title_bg",
													'title' => esc_html__('Background Color', 'civi-framework'),
													'type' => 'color',
													'col' => '4',
													'default' => '',
													'required' => array("{$meta_prefix}page_title_show", '=', '1'),
												),
												array(
													'id' => "{$meta_prefix}page_title_image",
													'title' => esc_html__('Background Image', 'civi-framework'),
													'type' => 'image',
													'default' => '',
													'required' => array("{$meta_prefix}page_title_show", '=', '1'),
												)
											)
										),

									)
								)
							)
						)
					),
					apply_filters('civi_register_meta_boxes_page_bottom', array())
				),
			);

			return apply_filters('civi_register_meta_boxes', $configs);
		}

		/**
		 * Register options config
		 * @param $configs
		 * @return mixed
		 */
		public function register_options_config($configs)
		{
			if (function_exists('pll_the_languages')) {
				$configs['civi-framework'] = array(
					'layout' => 'horizontal',
					'page_title' => esc_html__('Theme Options', 'civi-framework'),
					'menu_title' => esc_html__('Theme Options', 'civi-framework'),
					'option_name' => pll_current_language() . '_civi-framework',
					'permission' => 'edit_theme_options',
					'section' => array_merge(
						apply_filters('civi_register_options_config_top', array()),
						array(
							$this->general_option(),
							$this->jobs_option(),
							$this->company_option(),
							$this->candidate_option(),
							$this->service_option(),
							$this->payout_option(),
							$this->social_network(),
							$this->login_option(),
							$this->locations_option(),
							$this->google_map_option(),
							$this->price_format_option(),
							$this->payment_option(),
							$this->user_option(),
							$this->url_slugs_option(),
							$this->setup_page(),
							$this->ai_helper(),
							$this->email_management_option(),
							$this->custom_field_jobs_option(),
							$this->custom_field_company_option(),
							$this->custom_field_candidate_option(),
						),
						apply_filters('civi_register_options_config_bottom', array())
					)
				);
			} else if (defined('ICL_SITEPRESS_VERSION')) {
				$current_language = apply_filters('wpml_current_language', NULL);

				if ($current_language) {
					$option_name = $current_language . '_civi-framework';
				} else {
					$option_name = 'civi-framework';
				}
				$configs['civi-framework'] = array(
					'layout' => 'horizontal',
					'page_title' => esc_html__('Theme Options', 'civi-framework'),
					'menu_title' => esc_html__('Theme Options', 'civi-framework'),
					'option_name' => $option_name,
					'permission' => 'edit_theme_options',
					'section' => array_merge(
						apply_filters('civi_register_options_config_top', array()),
						array(
							$this->general_option(),
							$this->jobs_option(),
							$this->company_option(),
							$this->candidate_option(),
							$this->service_option(),
							$this->payout_option(),
							$this->social_network(),
							$this->login_option(),
							$this->locations_option(),
							$this->google_map_option(),
							$this->price_format_option(),
							$this->payment_option(),
							$this->user_option(),
							$this->url_slugs_option(),
							$this->setup_page(),
							$this->ai_helper(),
							$this->email_management_option(),
							$this->custom_field_jobs_option(),
							$this->custom_field_company_option(),
							$this->custom_field_candidate_option(),
						),
						apply_filters('civi_register_options_config_bottom', array())
					)
				);
			} else {
				$configs['civi-framework'] = array(
					'layout' => 'horizontal',
					'page_title' => esc_html__('Theme Options', 'civi-framework'),
					'menu_title' => esc_html__('Theme Options', 'civi-framework'),
					'option_name' => 'civi-framework',
					'permission' => 'edit_theme_options',
					'section' => array_merge(
						apply_filters('civi_register_options_config_top', array()),
						array(
							$this->general_option(),
							$this->jobs_option(),
							$this->company_option(),
							$this->candidate_option(),
							$this->service_option(),
							$this->payout_option(),
							$this->social_network(),
							$this->login_option(),
							$this->locations_option(),
							$this->google_map_option(),
							$this->price_format_option(),
							$this->payment_option(),
							$this->user_option(),
							$this->url_slugs_option(),
							$this->setup_page(),
							$this->ai_helper(),
							$this->email_management_option(),
							$this->custom_field_jobs_option(),
							$this->custom_field_company_option(),
							$this->custom_field_candidate_option(),
						),
						apply_filters('civi_register_options_config_bottom', array())
					)
				);
			}
			return apply_filters('civi_register_options_config', $configs);
		}

		/**
		 * @return mixed|void
		 */
		private function general_option()
		{
			$prefix_code = phone_prefix_code();
			$keys = $values = array();
			foreach ($prefix_code as $key => $value) {
				$keys[] = $key;
				$values[] = $value['name'];
			}
			$phone_code_select = array_combine($keys, $values);

			return apply_filters('civi_register_option_general', array(
				'id' => 'civi_general_option',
				'title' => esc_html__('General Option', 'civi-framework'),
				'icon' => 'dashicons-admin-multisite',
				'fields' => array_merge(
					apply_filters('civi_register_option_general_top', array()),
					array(
						array(
							'id' => 'enable_24_time_format',
							'type' => 'button_set',
							'title' => esc_html__('Enable Time Format', 'civi-framework'),
							'subtitle' => esc_html__('Enable/Disable Time Format (24H)', 'civi-framework'),
							'desc' => '',
							'options' => array(
								'1' => esc_html__('On', 'civi-framework'),
								'0' => esc_html__('Off', 'civi-framework'),
							),
							'default' => '0',
						),
						array(
							'id' => 'enable_cookie',
							'type' => 'button_set',
							'title' => esc_html__('Enable Cookie Notice', 'civi-framework'),
							'subtitle' => esc_html__('Enable/Disable Popup Cookie Notice', 'civi-framework'),
							'desc' => '',
							'options' => array(
								'1' => esc_html__('On', 'civi-framework'),
								'0' => esc_html__('Off', 'civi-framework'),
							),
							'default' => '0',
						),
						array(
							'id' => "enable_back_top",
							'type' => 'button_set',
							'title' => esc_html__('Enable Back To Top', 'civi-framework'),
							'subtitle' => esc_html__('Enable/Disable Enable Back To Top', 'civi-framework'),
							'options' => array(
								'1' => esc_html__('On', 'civi-framework'),
								'0' => esc_html__('Off', 'civi-framework'),
							),
							'default' => '0',
						),
						array(
							'id' => 'enable_search_box_dropdown',
							'type' => 'button_set',
							'title' => esc_html__('Enable Search Box', 'civi-framework'),
							'subtitle' => esc_html__('Enable/Disable Search Box for Dropdown', 'civi-framework'),
							'desc' => '',
							'options' => array(
								'1' => esc_html__('On', 'civi-framework'),
								'0' => esc_html__('Off', 'civi-framework'),
							),
							'default' => '0',
						),
						array(
							'id' => 'limit_search_box',
							'title' => esc_html__('Limit Search Box', 'civi-framework'),
							'type' => 'text',
							'default' => '6',
							'pattern' => '[0-9]*',
							'subtitle' => 'If the option selects more than the set number, a search box will be displayed.',
							'required' => array(
								array("enable_search_box_dropdown", '=', '1')
							),
						),
						array(
							'id' => 'enable_rtl_mode',
							'type' => 'button_set',
							'title' => esc_html__('Enable RTL Mode', 'civi-framework'),
							'subtitle' => esc_html__('Enable/Disable RTL mode', 'civi-framework'),
							'desc' => '',
							'options' => array(
								'1' => esc_html__('On', 'civi-framework'),
								'0' => esc_html__('Off', 'civi-framework'),
							),
							'default' => '0'
						),
						array(
							'id' => 'default_phone_number',
							'type' => 'select',
							'title' => esc_html__('Default Phone Number', 'civi-framework'),
							'subtitle' => esc_html__('Chosse Default Phone Number', 'civi-framework'),
							'options' => $phone_code_select,
							'default' => '0',
						),
						array(
							'id' => 'civi-cv-type',
							'title' => esc_html__('Cv Types', 'civi-framework'),
							'type' => 'text',
							'default' => 'doc,docx,pdf',
							'subtitle' => 'Add "," to separate file formats',
						),
						array(
							'id' => 'civi_image_type',
							'title' => esc_html__('Types Upload Image', 'civi-framework'),
							'type' => 'text',
							'default' => 'jpg,jpeg,png,gif,webp',
							'subtitle' => 'Add "," to separate file formats',
						),
						array(
							'id' => 'civi_max_gallery_images',
							'type' => 'text',
							'title' => esc_html__('Maximum Images', 'civi-framework'),
							'subtitle' => esc_html__('Maximum images allowed for single jobs.', 'civi-framework'),
							'default' => '5',
						),
						array(
							'id' => 'civi_image_max_file_size',
							'type' => 'text',
							'title' => esc_html__('Maximum File Size', 'civi-framework'),
							'subtitle' => esc_html__('Maximum upload image size. For example 10kb, 500kb, 1mb, 10mb, 100mb', 'civi-framework'),
							'default' => '1000kb',
						),
						array(
							'id' => 'header_script',
							'type' => 'ace_editor',
							'title' => esc_html__('Header Script', 'civi-framework'),
							'subtitle' => esc_html__('Add custom scripts inside HEAD tag. You need to have a SCRIPT tag around scripts.', 'civi-framework'),
							'default' => ''
						),
						array(
							'id' => 'footer_script',
							'type' => 'ace_editor',
							'title' => esc_html__('Footer Script', 'civi-framework'),
							'subtitle' => esc_html__('Add custom scripts you might want to be loaded in the footer of your website. You need to have a SCRIPT tag around scripts.', 'civi-framework'),
							'default' => ''
						),
					),
					apply_filters('civi_register_option_general_bottom', array())
				)
			));
		}

		/**
		 * @return mixed|void
		 */
		private function payout_option()
		{
			return apply_filters('civi_register_option_payout', array(
				'id' => 'civi_payout_option',
				'title' => esc_html__('Payout Option', 'civi-framework'),
				'icon' => 'dashicons dashicons-index-card',
				'fields' => array_merge(
					apply_filters('civi_register_option_payout_top', array()),
					apply_filters('civi_register_option_payout_main', array(
						array(
							'id' => "enable_payout_paypal",
							'type' => 'button_set',
							'title' => esc_html__('Enable Payout Paypal', 'civi-framework'),
							'subtitle' => esc_html__('Enable/Disable Payout Paypal', 'civi-framework'),
							'options' => array(
								'1' => esc_html__('On', 'civi-framework'),
								'0' => esc_html__('Off', 'civi-framework'),
							),
							'default' => '1',
						),
						array(
							'id' => "enable_payout_stripe",
							'type' => 'button_set',
							'title' => esc_html__('Enable Payout Stripe', 'civi-framework'),
							'subtitle' => esc_html__('Enable/Disable Payout Stripe', 'civi-framework'),
							'options' => array(
								'1' => esc_html__('On', 'civi-framework'),
								'0' => esc_html__('Off', 'civi-framework'),
							),
							'default' => '1',
						),
						array(
							'id' => "enable_payout_bank_transfer",
							'type' => 'button_set',
							'title' => esc_html__('Enable Payout Bank Transfer', 'civi-framework'),
							'subtitle' => esc_html__('Enable/Disable Bank Transfer', 'civi-framework'),
							'options' => array(
								'1' => esc_html__('On', 'civi-framework'),
								'0' => esc_html__('Off', 'civi-framework'),
							),
							'default' => '1',
						),
						array(
							'id' => "custom_payout_setting",
							'type' => 'panel',
							'title' => esc_html__('Custom Payout', 'civi-framework'),
							'sort' => true,
							'panel_title' => 'label',
							'fields' => array(
								array(
									'title' => esc_html__('Name Payout', 'civi-framework'),
									'id' => "name",
									'type' => 'text',
									'subtitle' => esc_html__('Enter Same "Name Payout" if you want multiple fields in Payout', 'civi-framework'),
									'default' => '',
								),
								array(
									'title' => esc_html__('Label', 'civi-framework'),
									'id' => "label",
									'type' => 'text',
									'default' => '',
								),
								array(
									'title' => esc_html__('ID', 'civi-framework'),
									'id' => "id",
									'type' => 'text',
									'placeholder' => esc_html__('Enter field ID', 'civi-framework'),
									'desc' => esc_html__('ID cannot be duplicated', 'civi-framework'),
									'default' => '',
								),
								array(
									'title' => esc_html__('Field Type', 'civi-framework'),
									'id' => "type",
									'type' => 'select',
									'default' => 'text',
									'options' => array(
										'text' => esc_html__('Text', 'civi-framework'),
										'number' => esc_html__('Number', 'civi-framework'),
										'email' => esc_html__('Email', 'civi-framework'),
									)
								),
							)
						)
					)),
					apply_filters('civi_register_option_payout_bottom', array())
				)
			));
		}

		/**
		 * @return mixed|void
		 */
		private function setup_page()
		{
			$service_page_id = $payment_service_page_id = $service_payment_completed_page_id = $candidate_service_page_id = $submit_service_page_id = array();
			if (civi_get_option('enable_post_type_service') === '1') {
				$service_page_id =  array(
					'id' => 'civi_employer_service_page_id',
					'title' => esc_html__('Services Page', 'civi-framework'),
					'type' => 'select',
					'data' => 'page',
					'data_args' => array(
						'numberposts' => -1,
					)
				);
				$payment_service_page_id =  array(
					'id' => 'civi_payment_service_page_id',
					'title' => esc_html__('Payment Service Page', 'civi-framework'),
					'type' => 'select',
					'data' => 'page',
					'data_args' => array(
						'numberposts' => -1,
					)
				);
				$service_payment_completed_page_id = array(
					'id' => 'civi_service_payment_completed_page_id',
					'title' => esc_html__('Payment Service Completed Page', 'civi-framework'),
					'type' => 'select',
					'data' => 'page',
					'data_args' => array(
						'numberposts' => -1,
					)
				);
				$candidate_service_page_id = array(
					'id' => 'civi_candidate_service_page_id',
					'title' => esc_html__('Services Page', 'civi-framework'),
					'type' => 'select',
					'data' => 'page',
					'data_args' => array(
						'numberposts' => -1,
					)
				);
				$submit_service_page_id = array(
					'id' => 'civi_submit_service_page_id',
					'title' => esc_html__('Submit Service', 'civi-framework'),
					'type' => 'select',
					'data' => 'page',
					'data_args' => array(
						'numberposts' => -1,
					)
				);
			}

			return apply_filters('civi_register_setup_page', array(
				'id' => 'civi_setup_page',
				'title' => esc_html__('Setup Page', 'civi-framework'),
				'icon' => 'dashicons-admin-page',
				'fields' => array_merge(
					apply_filters('civi_register_setup_page_employer_top', array()),
					array(
						array(
							'id' => 'terms_condition',
							'title' => esc_html__('Terms & Conditions', 'civi-framework'),
							'type' => 'select',
							'data' => 'page',
							'data_args' => array(
								'numberposts' => -1,
							)
						),
						array(
							'id' => 'privacy_policy',
							'title' => esc_html__('Privacy Policy', 'civi-framework'),
							'type' => 'select',
							'data' => 'page',
							'data_args' => array(
								'numberposts' => -1,
							)
						),
						array(
							'id' => 'civi_update_profile_page_id',
							'title' => esc_html__('Update Profile', 'civi-framework'),
							'type' => 'select',
							'data' => 'page',
							'data_args' => array(
								'numberposts' => -1,
							)
						),
						array(
							'id' => 'civi_add_jobs_page_id',
							'title' => esc_html__('Post Jobs (Login)', 'civi-framework'),
							'type' => 'select',
							'data' => 'page',
							'data_args' => array(
								'numberposts' => -1,
							)
						),
						array(
							'id' => 'civi_add_jobs_not_page_id',
							'title' => esc_html__('Post Jobs (Not Login)', 'civi-framework'),
							'type' => 'select',
							'data' => 'page',
							'data_args' => array(
								'numberposts' => -1,
							)
						),
						apply_filters('civi_register_setup_page_employer_option_main', array(
							'id' => 'civi_register_setup_page_employer_option_main',
							'type' => 'group',
							'title' => esc_html__('Employer Setting', 'civi-framework'),
							'fields' => array(
								array(
									'id' => 'civi_dashboard_page_id',
									'title' => esc_html__('Dashboard Page', 'civi-framework'),
									'type' => 'select',
									'data' => 'page',
									'data_args' => array(
										'numberposts' => -1,
									)
								),
								array(
									'id' => 'civi_jobs_dashboard_page_id',
									'title' => esc_html__('Jobs Page', 'civi-framework'),
									'type' => 'select',
									'data' => 'page',
									'data_args' => array(
										'numberposts' => -1,
									)
								),
								array(
									'id' => 'civi_jobs_submit_page_id',
									'title' => esc_html__('Jobs Submit Page', 'civi-framework'),
									'type' => 'select',
									'data' => 'page',
									'data_args' => array(
										'numberposts' => -1,
									)
								),
								array(
									'id' => 'civi_applicants_page_id',
									'title' => esc_html__('Applicants Page', 'civi-framework'),
									'type' => 'select',
									'data' => 'page',
									'data_args' => array(
										'numberposts' => -1,
									)
								),
								array(
									'id' => 'civi_candidates_page_id',
									'title' => esc_html__('Candidates Page', 'civi-framework'),
									'type' => 'select',
									'data' => 'page',
									'data_args' => array(
										'numberposts' => -1,
									)
								),
								array(
									'id' => 'civi_user_package_page_id',
									'title' => esc_html__('User Package Page', 'civi-framework'),
									'type' => 'select',
									'data' => 'page',
									'data_args' => array(
										'numberposts' => -1,
									)
								),
								array(
									'id' => 'civi_company_page_id',
									'title' => esc_html__('Company Page', 'civi-framework'),
									'type' => 'select',
									'data' => 'page',
									'data_args' => array(
										'numberposts' => -1,
									)
								),
								array(
									'id' => 'civi_submit_company_page_id',
									'title' => esc_html__('Submit Company Page', 'civi-framework'),
									'type' => 'select',
									'data' => 'page',
									'data_args' => array(
										'numberposts' => -1,
									)
								),
								array(
									'id' => 'civi_messages_page_id',
									'title' => esc_html__('Messages Page', 'civi-framework'),
									'type' => 'select',
									'data' => 'page',
									'data_args' => array(
										'numberposts' => -1,
									)
								),
								array(
									'id' => 'civi_meetings_page_id',
									'title' => esc_html__('Meetings Page', 'civi-framework'),
									'type' => 'select',
									'data' => 'page',
									'data_args' => array(
										'numberposts' => -1,
									)
								),
								array(
									'id' => 'civi_settings_page_id',
									'title' => esc_html__('Settings Page', 'civi-framework'),
									'type' => 'select',
									'data' => 'page',
									'data_args' => array(
										'numberposts' => -1,
									)
								),
								array(
									'id' => 'civi_package_page_id',
									'title' => esc_html__('Package Page', 'civi-framework'),
									'type' => 'select',
									'data' => 'page',
									'data_args' => array(
										'numberposts' => -1,
									)
								),
								array(
									'id' => 'civi_payment_page_id',
									'title' => esc_html__('Payment Jobs Page', 'civi-framework'),
									'type' => 'select',
									'data' => 'page',
									'data_args' => array(
										'numberposts' => -1,
									)
								),
								array(
									'id' => 'civi_payment_completed_page_id',
									'title' => esc_html__('Payment Jobs Completed Page', 'civi-framework'),
									'type' => 'select',
									'data' => 'page',
									'data_args' => array(
										'numberposts' => -1,
									)
								),
								$service_page_id,
								$payment_service_page_id,
								$service_payment_completed_page_id,
							),
						))
					),
					apply_filters('civi_register_setup_page_employer_bottom', array()),
					apply_filters('civi_register_setup_page_candidate_top', array()),
					array(
						apply_filters('civi_register_setup_page_candidate_option_main', array(
							'id' => 'civi_register_setup_page_candidate_option_main',
							'type' => 'group',
							'title' => esc_html__('Candidate Setting', 'civi-framework'),
							'fields' => array(
								array(
									'id' => 'civi_candidate_dashboard_page_id',
									'title' => esc_html__('Dashboard Page', 'civi-framework'),
									'type' => 'select',
									'data' => 'page',
									'data_args' => array(
										'numberposts' => -1,
									)
								),
								array(
									'id' => 'civi_candidate_profile_page_id',
									'title' => esc_html__('Profile Page', 'civi-framework'),
									'type' => 'select',
									'data' => 'page',
									'data_args' => array(
										'numberposts' => -1,
									)
								),
								array(
									'id' => 'civi_my_jobs_page_id',
									'title' => esc_html__('My Jobs Page', 'civi-framework'),
									'type' => 'select',
									'data' => 'page',
									'data_args' => array(
										'numberposts' => -1,
									)
								),
								array(
									'id' => 'civi_candidate_user_package_page_id',
									'title' => esc_html__('User Package Page', 'civi-framework'),
									'type' => 'select',
									'data' => 'page',
									'data_args' => array(
										'numberposts' => -1,
									)
								),
								array(
									'id' => 'civi_candidate_reviews_page_id',
									'title' => esc_html__('My Reviews Page', 'civi-framework'),
									'type' => 'select',
									'data' => 'page',
									'data_args' => array(
										'numberposts' => -1,
									)
								),
								array(
									'id' => 'civi_candidate_company_page_id',
									'title' => esc_html__('My Following', 'civi-framework'),
									'type' => 'select',
									'data' => 'page',
									'data_args' => array(
										'numberposts' => -1,
									)
								),
								array(
									'id' => 'civi_candidate_messages_page_id',
									'title' => esc_html__('Messages Page', 'civi-framework'),
									'type' => 'select',
									'data' => 'page',
									'data_args' => array(
										'numberposts' => -1,
									)
								),
								array(
									'id' => 'civi_candidate_meetings_page_id',
									'title' => esc_html__('Meetings Page', 'civi-framework'),
									'type' => 'select',
									'data' => 'page',
									'data_args' => array(
										'numberposts' => -1,
									)
								),
								array(
									'id' => 'civi_candidate_settings_page_id',
									'title' => esc_html__('Settings Page', 'civi-framework'),
									'type' => 'select',
									'data' => 'page',
									'data_args' => array(
										'numberposts' => -1,
									)
								),
								array(
									'id' => 'civi_candidate_package_page_id',
									'title' => esc_html__('Package Page', 'civi-framework'),
									'type' => 'select',
									'data' => 'page',
									'data_args' => array(
										'numberposts' => -1,
									)
								),
								array(
									'id' => 'civi_candidate_payment_page_id',
									'title' => esc_html__('Payment Page', 'civi-framework'),
									'type' => 'select',
									'data' => 'page',
									'data_args' => array(
										'numberposts' => -1,
									)
								),
								array(
									'id' => 'civi_candidate_payment_completed_page_id',
									'title' => esc_html__('Payment Completed Page', 'civi-framework'),
									'type' => 'select',
									'data' => 'page',
									'data_args' => array(
										'numberposts' => -1,
									)
								),
								$candidate_service_page_id,
								$submit_service_page_id,
							),
						)),
					),
					apply_filters('civi_register_setup_page_candidate_bottom', array())
				)
			));
		}

		/**
		 * @return mixed|void
		 */
		private function url_slugs_option()
		{
			$option_url_service_slugs = array();

			if (civi_get_option('enable_post_type_service') === '1') {
				$option_url_service_slugs = array(
					'id' => 'civi_main_group',
					'type' => 'group',
					'title' => esc_html__('Service', 'civi-framework'),
					'fields' => array(
						array(
							'id' => 'service_url_slug',
							'title' => esc_html__('Service Slug', 'civi-framework'),
							'type' => 'text',
							'default' => 'services',
						),
						array(
							'id' => 'service_categories_url_slug',
							'title' => esc_html__('Service Slug', 'civi-framework'),
							'type' => 'text',
							'default' => 'service-categories',
						),
						array(
							'id' => 'service_location_url_slug',
							'title' => esc_html__('Location Slug', 'civi-framework'),
							'type' => 'text',
							'default' => 'service-location',
						),
						array(
							'id' => 'service_skills_url_slug',
							'title' => esc_html__('Skills Slug', 'civi-framework'),
							'type' => 'text',
							'default' => 'service-skills',
						),
						array(
							'id' => 'service_language_url_slug',
							'title' => esc_html__('Language Slug', 'civi-framework'),
							'type' => 'text',
							'default' => 'service-language',
						),
					),
				);
			}

			return
				apply_filters(
					'civi_register_option_url_slugs',
					array(
						'id' => 'civi_url_slugs_option',
						'title' => esc_html__('Url Slug', 'civi-framework'),
						'icon' => 'dashicons-admin-links',
						'fields' => array(
							array(
								'id' => 'enable_slug_categories',
								'type' => 'button_set',
								'title' => esc_html__('Slug Categories', 'civi-framework'),
								'subtitle' => esc_html__('Show/Hidden Slug Categories', 'civi-framework'),
								'desc' => '',
								'options' => array(
									'1' => esc_html__('On', 'civi-framework'),
									'0' => esc_html__('Off', 'civi-framework'),
								),
								'default' => '1',
							),

							//Jobs
							apply_filters('civi_register_option_url_jobs_slugs_top', array()),
							apply_filters('civi_register_option_url_jobs_slugs_center', array(
								'id' => 'civi_main_group',
								'type' => 'group',
								'title' => esc_html__('Jobs', 'civi-framework'),
								'fields' => array(
									array(
										'id' => 'jobs_url_slug',
										'title' => esc_html__('Jobs Slug', 'civi-framework'),
										'type' => 'text',
										'default' => 'jobs',
									),
									array(
										'id' => 'jobs_type_url_slug',
										'title' => esc_html__('Type Slug', 'civi-framework'),
										'type' => 'text',
										'default' => 'jobs-type',
									),
									array(
										'id' => 'jobs_categories_url_slug',
										'title' => esc_html__('Categories Slug', 'civi-framework'),
										'type' => 'text',
										'default' => 'jobs-categories',
									),
									array(
										'id' => 'jobs_skills_url_slug',
										'title' => esc_html__('Skills Slug', 'civi-framework'),
										'type' => 'text',
										'default' => 'jobs-skills',
									),
									array(
										'id' => 'jobs_location_url_slug',
										'title' => esc_html__('Location Slug', 'civi-framework'),
										'type' => 'text',
										'default' => 'jobs-location',
									),
									array(
										'id' => 'jobs_career_url_slug',
										'title' => esc_html__('Career Slug', 'civi-framework'),
										'type' => 'text',
										'default' => 'jobs-career',
									),
									array(
										'id' => 'jobs_experience_url_slug',
										'title' => esc_html__('Experience Slug', 'civi-framework'),
										'type' => 'text',
										'default' => 'jobs-experience',
									),
									array(
										'id' => 'jobs_qualification_url_slug',
										'title' => esc_html__('Qualification Slug', 'civi-framework'),
										'type' => 'text',
										'default' => 'jobs-qualification',
									),
									array(
										'id' => 'jobs_gender_url_slug',
										'title' => esc_html__('Gender Slug', 'civi-framework'),
										'type' => 'text',
										'default' => 'jobs-gender',
									),
								),
							)),
							apply_filters('civi_register_option_url_jobs_slugs_bottom', array()),

							//Company
							apply_filters('civi_register_option_url_company_slugs_top', array()),
							apply_filters('civi_register_option_url_company_slugs_center', array(
								'id' => 'civi_main_group',
								'type' => 'group',
								'title' => esc_html__('Company', 'civi-framework'),
								'fields' => array(
									array(
										'id' => 'company_url_slug',
										'title' => esc_html__('Company Slug', 'civi-framework'),
										'type' => 'text',
										'default' => 'companies',
									),
									array(
										'id' => 'company_categories_url_slug',
										'title' => esc_html__('Categories Slug', 'civi-framework'),
										'type' => 'text',
										'default' => 'company-categories',
									),
									array(
										'id' => 'company_location_url_slug',
										'title' => esc_html__('Location Slug', 'civi-framework'),
										'type' => 'text',
										'default' => 'company-location',
									),
									array(
										'id' => 'company_size_url_slug',
										'title' => esc_html__('Size Slug', 'civi-framework'),
										'type' => 'text',
										'default' => 'company-size',
									),
								),
							)),
							apply_filters('civi_register_option_url_company_slugs_bottom', array()),

							//Candidate
							apply_filters('civi_register_option_url_candidate_slugs_top', array()),
							apply_filters('civi_register_option_url_candidate_slugs_center', array(
								'id' => 'civi_main_group',
								'type' => 'group',
								'title' => esc_html__('Candidate', 'civi-framework'),
								'fields' => array(
									array(
										'id' => 'candidate_url_slug',
										'title' => esc_html__('Candidate Slug', 'civi-framework'),
										'type' => 'text',
										'default' => 'candidates',
									),
									array(
										'id' => 'candidate_categories_url_slug',
										'title' => esc_html__('Categories Slug', 'civi-framework'),
										'type' => 'text',
										'default' => 'candidate_categories',
									),
									array(
										'id' => 'candidate_ages_url_slug',
										'title' => esc_html__('Ages Slug', 'civi-framework'),
										'type' => 'text',
										'default' => 'candidate-ages',
									),
									array(
										'id' => 'candidate_languages_url_slug',
										'title' => esc_html__('Languages Slug', 'civi-framework'),
										'type' => 'text',
										'default' => 'candidate-languages',
									),
									array(
										'id' => 'candidate_qualification_url_slug',
										'title' => esc_html__('Qualification Slug', 'civi-framework'),
										'type' => 'text',
										'default' => 'candidate-qualification',
									),
									array(
										'id' => 'candidate_salary_types_url_slug',
										'title' => esc_html__('Salary Types Slug', 'civi-framework'),
										'type' => 'text',
										'default' => 'candidate-salary-types',
									),
									array(
										'id' => 'candidate_yoe_url_slug',
										'title' => esc_html__('Yoe Slug', 'civi-framework'),
										'type' => 'text',
										'default' => 'candidate-yoe',
									),
									array(
										'id' => 'candidate_education_levels_url_slug',
										'title' => esc_html__('Education Levels Slug', 'civi-framework'),
										'type' => 'text',
										'default' => 'candidate-education-levels',
									),
									array(
										'id' => 'candidate_skills_url_slug',
										'title' => esc_html__('Skills Slug', 'civi-framework'),
										'type' => 'text',
										'default' => 'candidate-skills',
									),
									array(
										'id' => 'candidate_gender_url_slug',
										'title' => esc_html__('Gender Slug', 'civi-framework'),
										'type' => 'text',
										'default' => 'candidate-gender',
									),
									array(
										'id' => 'candidate_locations_url_slug',
										'title' => esc_html__('City Slug', 'civi-framework'),
										'type' => 'text',
										'default' => 'candidate-locations',
									),
								),
							)),
							apply_filters('civi_register_option_url_candidate_slugs_bottom', array()),

							//Service
							apply_filters('civi_register_option_url_service_slugs_top', array()),
							apply_filters(
								'civi_register_option_url_service_slugs_center',
								$option_url_service_slugs
							),
							apply_filters('civi_register_option_url_service_slugs_bottom', array()),

							//Other
							apply_filters('civi_register_option_url_other_slugs_top', array()),
							apply_filters('civi_register_option_url_other_slugs_center', array(
								'id' => 'civi_main_group',
								'type' => 'group',
								'title' => esc_html__('Other', 'civi-framework'),
								'fields' => array(
									array(
										'id' => 'package_url_slug',
										'title' => esc_html__('Package Slug', 'civi-framework'),
										'type' => 'text',
										'default' => 'package',
									),
									array(
										'id' => 'invoice_url_slug',
										'title' => esc_html__('Invoice Slug', 'civi-framework'),
										'type' => 'text',
										'default' => 'invoice',
									)
								),
							)),
							apply_filters('civi_register_option_url_other_slugs_bottom', array()),
						),
					)
				);
		}

		/**
		 * @return mixed|void
		 */
		private function custom_field_jobs_option()
		{
			return apply_filters('civi_register_option_custom_field_jobs', array(
				'id' => 'civi_custom_field_jobs_option',
				'title' => esc_html__('Custom Field (Jobs)', 'civi-framework'),
				'icon' => 'dashicons dashicons-admin-customizer',
				'fields' => array_merge(
					apply_filters('civi_register_option_custom_field_jobs_top', array()),
					apply_filters('civi_register_option_custom_field_jobs_main', array(
						array(
							'id' => "custom_field_jobs",
							'type' => 'panel',
							'title' => esc_html__('Additional Field', 'civi-framework'),
							'sort' => true,
							'panel_title' => 'label',
							'fields' => array(
								array(
									'title' => esc_html__('Label', 'civi-framework'),
									'id' => "label",
									'type' => 'text',
									'default' => '',
								),
								array(
									'title' => esc_html__('ID', 'civi-framework'),
									'id' => "id",
									'type' => 'text',
									'placeholder' => esc_html__('Enter field ID', 'civi-framework'),
									'desc' => esc_html__('ID values cannot be changed after being set!', 'civi-framework'),
									'default' => '',
								),
								array(
									'title' => esc_html__('Field Type', 'civi-framework'),
									'id' => "field_type",
									'type' => 'select',
									'default' => 'text',
									'options' => array(
										'text' => esc_html__('Text', 'civi-framework'),
										'url' => esc_html__('Video', 'civi-framework'),
										'textarea' => esc_html__('Textarea', 'civi-framework'),
										'image' => esc_html__('Image', 'civi-framework'),
										'select' => esc_html__('Select', 'civi-framework'),
										'checkbox_list' => esc_html__('Checkbox', 'civi-framework'),
									)
								),
								array(
									'title' => esc_html__('Options Value', 'civi-framework'),
									'subtitle' => esc_html__('Input each per line', 'civi-framework'),
									'id' => "select_choices",
									'type' => 'textarea',
									'default' => '',
									'required' => array(
										"field_type",
										'in',
										array('checkbox_list', 'select')
									),
								),
							)
						)
					)),
					apply_filters('civi_register_option_custom_field_jobs_bottom', array())
				)
			));
		}

		private function custom_field_company_option()
		{
			return apply_filters('civi_register_option_custom_field_company', array(
				'id' => 'civi_custom_field_company_option',
				'title' => esc_html__('Custom Field (Company)', 'civi-framework'),
				'icon' => 'dashicons dashicons-admin-customizer',
				'fields' => array_merge(
					apply_filters('civi_register_option_custom_field_company_top', array()),
					apply_filters('civi_register_option_custom_field_company_main', array(
						array(
							'id' => "custom_field_company",
							'type' => 'panel',
							'title' => esc_html__('Additional Field', 'civi-framework'),
							'sort' => true,
							'panel_title' => 'label',
							'fields' => array(
								array(
									'title' => esc_html__('Label', 'civi-framework'),
									'id' => "label",
									'type' => 'text',
									'default' => '',
								),
								array(
									'title' => esc_html__('ID', 'civi-framework'),
									'id' => "id",
									'type' => 'text',
									'placeholder' => esc_html__('Enter field ID', 'civi-framework'),
									'desc' => esc_html__('ID values cannot be changed after being set!', 'civi-framework'),
									'default' => '',
								),
								array(
									'title' => esc_html__('Field Type', 'civi-framework'),
									'id' => "field_type",
									'type' => 'select',
									'default' => 'text',
									'options' => array(
										'text' => esc_html__('Text', 'civi-framework'),
										'url' => esc_html__('Video', 'civi-framework'),
										'textarea' => esc_html__('Textarea', 'civi-framework'),
										'image' => esc_html__('Image', 'civi-framework'),
										'select' => esc_html__('Select', 'civi-framework'),
										'checkbox_list' => esc_html__('Checkbox', 'civi-framework'),
									)
								),
								array(
									'title' => esc_html__('Options Value', 'civi-framework'),
									'subtitle' => esc_html__('Input each per line', 'civi-framework'),
									'id' => "select_choices",
									'type' => 'textarea',
									'default' => '',
									'required' => array(
										"field_type",
										'in',
										array('checkbox_list', 'select')
									),
								),
							)
						)
					)),
					apply_filters('civi_register_option_custom_field_company_bottom', array())
				)
			));
		}

		private function custom_field_candidate_option()
		{
			return apply_filters('civi_register_option_custom_field_candidate', array(
				'id' => 'civi_custom_field_candidate_option',
				'title' => esc_html__('Custom Field (Candidate)', 'civi-framework'),
				'icon' => 'dashicons dashicons-admin-customizer',
				'fields' => array_merge(
					apply_filters('civi_register_option_custom_field_candidate_top', array()),
					apply_filters('civi_register_option_custom_field_candidate_main', array(
						array(
							'id' => "custom_field_candidate",
							'type' => 'panel',
							'title' => esc_html__('Additional Field', 'civi-framework'),
							'sort' => true,
							'panel_title' => 'label',
							'fields' => array(
								array(
									'title' => esc_html__('Tabs', 'civi-framework'),
									'id' => "tabs",
									'type' => 'select',
									'default' => 'text',
									'options' => array(
										'info' => esc_html__('Info', 'civi-framework'),
										'education' => esc_html__('Education', 'civi-framework'),
										'experience' => esc_html__('Experience', 'civi-framework'),
										'skills' => esc_html__('Skills', 'civi-framework'),
										'projects' => esc_html__('Projects', 'civi-framework'),
										'awards' => esc_html__('Awards', 'civi-framework'),
										'new' => esc_html__('New Tabs', 'civi-framework'),
									),
									'default' => 'new',
								),
								array(
									'title' => esc_html__('Name Tabs', 'civi-framework'),
									'id' => "section",
									'type' => 'text',
									'default' => '',
									'required' => array(
										array("tabs", '=', 'new')
									),
								),
								array(
									'title' => esc_html__('Label', 'civi-framework'),
									'id' => "label",
									'type' => 'text',
									'default' => '',
								),
								array(
									'title' => esc_html__('ID', 'civi-framework'),
									'id' => "id",
									'type' => 'text',
									'placeholder' => esc_html__('Enter field ID', 'civi-framework'),
									'desc' => esc_html__('ID values cannot be changed after being set!', 'civi-framework'),
									'default' => '',
								),
								array(
									'title' => esc_html__('Field Type', 'civi-framework'),
									'id' => "field_type",
									'type' => 'select',
									'default' => 'text',
									'options' => array(
										'text' => esc_html__('Text', 'civi-framework'),
										'url' => esc_html__('Video', 'civi-framework'),
										'textarea' => esc_html__('Textarea', 'civi-framework'),
										'image' => esc_html__('Image', 'civi-framework'),
										'select' => esc_html__('Select', 'civi-framework'),
										'checkbox_list' => esc_html__('Checkbox', 'civi-framework'),
									)
								),
								array(
									'title' => esc_html__('Options Value', 'civi-framework'),
									'subtitle' => esc_html__('Input each per line', 'civi-framework'),
									'id' => "select_choices",
									'type' => 'textarea',
									'default' => '',
									'required' => array(
										"field_type",
										'in',
										array('checkbox_list', 'select')
									),
								),
							)
						)
					)),
					apply_filters('civi_register_option_custom_field_candidate_bottom', array())
				)
			));
		}

		function additional_details_field($meta_prefix)
		{
			if (!class_exists('Civi_Framework')) {
				return array(
					'id' => "{$meta_prefix}additional_features",
					'title' => esc_html__('Additional details:', 'civi-framework'),
					'type' => 'custom',
					'default' => array(),
					'template' => CIVI_PLUGIN_DIR . '/includes/admin/templates/additional-details-field.php',
				);
			}
			return array(
				'id' => "{$meta_prefix}additional_features",
				'type' => 'repeater',
				'title' => esc_html__('Additional details:', 'civi-framework'),
				'col' => '6',
				'sort' => true,
				'fields' => array(
					array(
						'id' => "{$meta_prefix}additional_feature_title",
						'title' => esc_html__('Title:', 'civi-framework'),
						'desc' => esc_html__('Enter additional title', 'civi-framework'),
						'type' => 'text',
						'default' => '',
						'col' => '5',
					),
					array(
						'id' => "{$meta_prefix}additional_feature_value",
						'title' => esc_html__('Value', 'civi-framework'),
						'desc' => esc_html__('Enter additional value', 'civi-framework'),
						'type' => 'text',
						'default' => '',
						'col' => '7',
					),
				)
			);
		}

		/**
		 * @return mixed|void
		 */
		private function price_format_option()
		{
			return apply_filters('civi_register_option_price_format', array(
				'id' => 'civi_price_format_option',
				'title' => esc_html__('Currency Option', 'civi-framework'),
				'icon' => 'dashicons-money',
				'fields' => array_merge(
					apply_filters('civi_register_option_price_format_top', array()),
					apply_filters('civi_register_option_price_format_main', array(
						array(
							'id' => 'currency_position',
							'title' => esc_html__('Currency Sign Position', 'civi-framework'),
							'type' => 'select',
							'options' => array(
								'before' => esc_html__('Before ($59)', 'civi-framework'),
								'after' => esc_html__('After (59$)', 'civi-framework'),
							),
							'default' => 'before',
						),
						array(
							'id' => 'thousand_separator',
							'title' => esc_html__('Thousand Separator', 'civi-framework'),
							'type' => 'text',
							'default' => ',',
						),
						array(
							'id' => 'decimal_separator',
							'title' => esc_html__('Decimal Separator', 'civi-framework'),
							'type' => 'text',
							'default' => '.',
						),
						array(
							'id' => 'currency_type_default',
							'title' => esc_html__('Currency Type (Default)', 'civi-framework'),
							'type' => 'text',
							'default' => 'USD',
						),
						array(
							'id' => 'currency_sign_default',
							'title' => esc_html__('Currency Sign (Default)', 'civi-framework'),
							'type' => 'text',
							'default' => '$',
						),
						array(
							'id' => "currency_fields",
							'type' => 'panel',
							'title' => esc_html__('Currency Field', 'civi-framework'),
							'sort' => true,
							'panel_title' => 'label',
							'fields' => array(
								array(
									'id' => 'currency_type',
									'title' => esc_html__('Currency Type', 'civi-framework'),
									'type' => 'text',
									'default' => 'VND',
								),
								array(
									'id' => 'currency_sign',
									'title' => esc_html__('Currency Sign', 'civi-framework'),
									'type' => 'text',
									'default' => 'đ',
								),
								array(
									'id' => 'currency_conversion',
									'title' => esc_html__('Currency Conversion', 'civi-framework'),
									'type' => 'text',
									'desc' => esc_html__('Convert currency values ​​based on default currency', 'civi-framework'),
									'default' => '',
								),
							)
						)
					)),
					apply_filters('civi_register_option_price_format_bottom', array())
				)
			));
		}

		/**
		 * @return mixed|void
		 */
		private function ai_helper()
		{
			return apply_filters('civi_register_option_ai_helper', array(
				'id' => 'civi_ai_helper',
				'title' => esc_html__('AI Helper', 'civi-framework'),
				'icon' => 'dashicons-smiley',
				'fields' => array_merge(
					apply_filters('civi_register_option_ai_helper_top', array()),
					apply_filters('civi_register_option_ai_helper_main', array(
						array(
							'id' => 'enable_ai_helper',
							'type' => 'button_set',
							'title' => esc_html__('Show AI Helper', 'civi-framework'),
							'subtitle' => esc_html__('Show/Hidden AI Helper in Post Job. Automatically generate your job descriptions with ChatGPT.', 'civi-framework'),
							'desc' => '',
							'options' => array(
								'1' => esc_html__('On', 'civi-framework'),
								'0' => esc_html__('Off', 'civi-framework'),
							),
							'default' => '0',
						),
						array(
							'id' => 'ai_key',
							'title' => esc_html__('OpenAI API Key', 'civi-framework'),
							'type' => 'text',
							'default' => '',
						),
						array(
							'id' => 'ai_model',
							'title' => esc_html__('Model', 'civi-framework'),
							'type' => 'select',
							'options' => model_ai_helper(),
							'default' => 'gpt-3.5-turbo',
						),
						array(
							'id' => 'ai_temperature',
							'title' => esc_html__('Temperature', 'civi-framework'),
							'type' => 'text',
							'desc' => esc_html__('The "temperature" parameter is used to control the randomness of the generated text. A higher temperature value, such as 1.0, increases the randomness and diversity of the output, while a lower value, such as 0.2, makes the output more focused and deterministic.', 'civi-framework'),
							'default' => '0.7',
						),
						array(
							'id' => 'ai_tone',
							'title' => esc_html__('Tone', 'civi-framework'),
							'type' => 'select',
							'options' => tone_ai_helper(),
						),
						array(
							'id' => 'ai_language',
							'title' => esc_html__('Language', 'civi-framework'),
							'type' => 'select',
							'options' => language_ai_helper(),
						),
					)),
					apply_filters('civi_register_option_ai_helper_bottom', array())
				)
			));
		}

		/**
		 * @return mixed|void
		 */
		private function locations_option()
		{
			return apply_filters('civi_register_option_locations', array(
				'id' => 'civi_locations_option',
				'title' => esc_html__('Locations Option', 'civi-framework'),
				'icon' => 'dashicons-location-alt',
				'fields' => array_merge(
					apply_filters('civi_register_option_locations_top', array()),
					apply_filters('civi_register_option_locations_main', array(
						array(
							'id' => "enable_option_state",
							'type' => 'button_set',
							'title' => esc_html__('Enable State', 'civi-framework'),
							'subtitle' => esc_html__('Enable/Disable State', 'civi-framework'),
							'options' => array(
								'1' => esc_html__('On', 'civi-framework'),
								'0' => esc_html__('Off', 'civi-framework'),
							),
							'default' => '0',
						),
						array(
							'id' => "enable_option_country",
							'type' => 'button_set',
							'title' => esc_html__('Enable Country', 'civi-framework'),
							'subtitle' => esc_html__('Enable/Disable Country', 'civi-framework'),
							'options' => array(
								'1' => esc_html__('On', 'civi-framework'),
								'0' => esc_html__('Off', 'civi-framework'),
							),
							'default' => '0',
							'required' => array("enable_option_state", '=', '1'),
						),
						array(
							'id' => "select_option_country",
							'title' => esc_html__('Country', 'civi-framework'),
							'subtitle' => esc_html__('Please Choose Country. If no country is selected will automatically take all the country', 'civi-framework'),
							'type' => 'checkbox_list',
							'options' => civi_get_countries(),
							'value_inline' => false,
							'default' => array(),
							'required' => array(
								array('enable_option_state', '=', '1'),
								array('enable_option_country', '=', '1')
							),
						),
					)),
					apply_filters('civi_register_option_locations_bottom', array())
				)
			));
		}

		/**
		 * @return mixed|void
		 */
		private function google_map_option()
		{
			return apply_filters('civi_register_option_google_map', array(
				'id' => 'civi_google_map_option',
				'title' => esc_html__('Maps Option', 'civi-framework'),
				'icon' => 'dashicons-admin-site',
				'fields' => array_merge(
					apply_filters('civi_register_option_google_map_top', array()),
					apply_filters('civi_register_option_google_map_main', array(
						array(
							'id' => 'map_effects',
							'title' => esc_html__('Maps Effects', 'civi-framework'),
							'type' => 'select',
							'options' => array(
								'' => esc_html__('None', 'civi-framework'),
								'shine' => esc_html__('Shine', 'civi-framework'),
								'popup' => esc_html__('Popup', 'civi-framework'),
							),
							'default' => 'shine',
						),
						array(
							'id' => 'map_type',
							'title' => esc_html__('Maps Type', 'civi-framework'),
							'type' => 'select',
							'options' => array(
								'google_map' => esc_html__('Google Map', 'civi-framework'),
								'mapbox' => esc_html__('Mapbox', 'civi-framework'),
								'openstreetmap' => esc_html__('OpenStreetMap', 'civi-framework'),
							),
							'default' => 'mapbox',
						),
						array(
							'id' => 'map_ssl',
							'title' => esc_html__('Maps SSL', 'civi-framework'),
							'subtitle' => esc_html__('Use maps with ssl', 'civi-framework'),
							'type' => 'button_set',
							'options' => array(
								'1' => esc_html__('Yes', 'civi-framework'),
								'0' => esc_html__('No', 'civi-framework'),
							),
							'default' => '0',
						),
						array(
							'id' => 'googlemap_type',
							'title' => esc_html__('Google Maps Type', 'civi-framework'),
							'type' => 'select',
							'options' => array(
								'roadmap' => esc_html__('Roadmap', 'civi-framework'),
								'satellite' => esc_html__('Satellite', 'civi-framework'),
								'hybrid' => esc_html__('Hybrid', 'civi-framework'),
								'terrain' => esc_html__('Terrain', 'civi-framework'),
							),
							'default' => 'roadmap',
							'required' => array("map_type", '=', 'google_map'),
						),
						array(
							'id' => 'googlemap_api_key',
							'type' => 'text',
							'title' => esc_html__('Google Maps API KEY', 'civi-framework'),
							'subtitle' => esc_html__('Enter your google maps api key', 'civi-framework'),
							'default' => 'AIzaSyBvPDNG6pePr9iFpeRKaOlaZF_l0oT3lWk',
							'required' => array("map_type", '=', 'google_map'),
						),
						array(
							'id' => 'mapbox_api_key',
							'type' => 'text',
							'title' => esc_html__('Mapbox API KEY', 'civi-framework'),
							'subtitle' => esc_html__('Enter your mapbox api key', 'civi-framework'),
							'default' => 'pk.eyJ1Ijoic2F5aTc3NDciLCJhIjoiY2tpcXRmYW1tMWpjMjJzbGllbThieTFlaCJ9.eDj6zNLBZpG-veFqXiyVPw',
							'required' => array("map_type", '=', 'mapbox'),
						),
						array(
							'id' => 'openstreetmap_api_key',
							'type' => 'text',
							'title' => esc_html__('OpenStreetMap API KEY', 'civi-framework'),
							'subtitle' => esc_html__('Enter your OpenStreetMap api key', 'civi-framework'),
							'default' => 'pk.eyJ1Ijoic2F5aTc3NDciLCJhIjoiY2tpcXRmYW1tMWpjMjJzbGllbThieTFlaCJ9.eDj6zNLBZpG-veFqXiyVPw',
							'required' => array("map_type", '=', 'openstreetmap'),
						),
						array(
							'id' => 'map_pin_cluster',
							'title' => esc_html__('Pin Cluster', 'civi-framework'),
							'subtitle' => esc_html__('Use pin cluster on map', 'civi-framework'),
							'type' => 'button_set',
							'options' => array(
								'1' => esc_html__('Yes', 'civi-framework'),
								'0' => esc_html__('No', 'civi-framework'),
							),
							'default' => '0',
							'required' => array("map_type", '=', 'google_map'),
						),
						array(
							'id' => 'googlemap_style',
							'type' => 'ace_editor',
							'title' => esc_html__('Style for Google Map', 'civi-framework'),
							'subtitle' => sprintf(
								__('Use %s https://snazzymaps.com/ %s to create styles', 'civi-framework'),
								'<a href="https://snazzymaps.com/" target="_blank">',
								'</a>'
							),
							'default' => '',
							'required' => array("map_type", '=', 'google_map'),
						),
						array(
							'id' => 'mapbox_style',
							'title' => esc_html__('Style for Mapbox', 'civi-framework'),
							'type' => 'select',
							'options' => array(
								'streets-v11' => esc_html__('Streets', 'civi-framework'),
								'light-v10' => esc_html__('Light', 'civi-framework'),
								'dark-v10' => esc_html__('Dark', 'civi-framework'),
								'outdoors-v11' => esc_html__('Outdoors', 'civi-framework'),
								'satellite-v9' => esc_html__('Satellite', 'civi-framework'),
							),
							'required' => array("map_type", '=', 'mapbox'),
						),
						array(
							'id' => 'openstreetmap_style',
							'title' => esc_html__('Style for OpenStreetMap', 'civi-framework'),
							'type' => 'select',
							'options' => array(
								'streets-v11' => esc_html__('Streets', 'civi-framework'),
								'light-v10' => esc_html__('Light', 'civi-framework'),
								'dark-v10' => esc_html__('Dark', 'civi-framework'),
								'outdoors-v11' => esc_html__('Outdoors', 'civi-framework'),
								'satellite-v9' => esc_html__('Satellite', 'civi-framework'),
							),
							'required' => array("map_type", '=', 'openstreetmap'),
						),
						array(
							'id' => 'map_zoom_level',
							'type' => 'text',
							'title' => esc_html__('Default Map Zoom', 'civi-framework'),
							'default' => '3'
						),
						array(
							'id' => 'map_lat_default',
							'type' => 'text',
							'title' => esc_html__('Default Map Latitude', 'civi-framework'),
							'default' => '59.325'
						),
						array(
							'id' => 'map_lng_default',
							'type' => 'text',
							'title' => esc_html__('Default Map Longitude ', 'civi-framework'),
							'default' => '18.070'
						),
					)),
					apply_filters('civi_register_option_google_map_bottom', array())
				)
			));
		}

		/**
		 * @return mixed|void
		 */
		private function payment_option()
		{
			$option_payment_service = array();

			if (civi_get_option('enable_post_type_service') === '1') {
				$option_payment_service = array(
					'id' => 'civi_main_group',
					'type' => 'group',
					'title' => esc_html__('Service Settings', 'civi-framework'),
					'fields' => array(
						array(
							'id' => 'civi_service_paypal',
							'type' => 'info',
							'style' => 'info',
							'title' => esc_html__('Paypal Setting', 'civi-framework'),
						),
						array(
							'id' => 'service_enable_paypal',
							'title' => esc_html__('Enable Paypal', 'civi-framework'),
							'type' => 'button_set',
							'options' => array(
								'1' => esc_html__('Enabled', 'civi-framework'),
								'0' => esc_html__('Disabled', 'civi-framework'),
							),
							'default' => '1',
						),
						array(
							'id' => 'service_paypal_api',
							'type' => 'select',
							'required' => array(
								array('service_enable_paypal', '=', '1'),
							),
							'title' => esc_html__('Paypal Api', 'civi-framework'),
							'subtitle' => esc_html__('Sandbox = test API. LIVE = real payments API', 'civi-framework'),
							'desc' => esc_html__('Update PayPal settings according to API type selection', 'civi-framework'),
							'options' => array(
								'sandbox' => esc_html__('Sandbox', 'civi-framework'),
								'live' => esc_html__('Live', 'civi-framework')
							),
							'default' => 'sandbox',
						),
						array(
							'id' => 'service_paypal_client_id',
							'type' => 'text',
							'required' => array(
								array('service_enable_paypal', '=', '1'),
							),
							'title' => esc_html__('Paypal Client ID', 'civi-framework'),
							'subtitle' => '',
							'default' => '',
						),
						array(
							'id' => 'service_paypal_client_secret_key',
							'type' => 'text',
							'required' => array(
								array('service_enable_paypal', '=', '1'),
							),
							'title' => esc_html__('Paypal Client Secret Key', 'civi-framework'),
							'subtitle' => '',
							'default' => '',
						),
						array(
							'id' => 'civi_service_stripe',
							'type' => 'info',
							'style' => 'info',
							'title' => esc_html__('Stripe Setting', 'civi-framework'),
						),
						array(
							'id' => 'service_enable_stripe',
							'title' => esc_html__('Enable Stripe', 'civi-framework'),
							'type' => 'button_set',
							'options' => array(
								'1' => esc_html__('Enabled', 'civi-framework'),
								'0' => esc_html__('Disabled', 'civi-framework'),
							),
							'default' => '1',
						),
						array(
							'id' => 'service_stripe_secret_key',
							'type' => 'text',
							'required' => array(
								array('service_enable_stripe', '=', '1'),
							),
							'title' => esc_html__('Stripe Secret Key', 'civi-framework'),
							'subtitle' => esc_html__('Info is taken from your account at https://dashboard.stripe.com/login', 'civi-framework'),
							'default' => '',
						),
						array(
							'id' => 'service_tripe_publishable_key',
							'type' => 'text',
							'required' => array(
								array('service_enable_stripe', '=', '1'),
							),
							'title' => esc_html__('Stripe Publishable Key', 'civi-framework'),
							'subtitle' => esc_html__('Info is taken from your account at https://dashboard.stripe.com/login', 'civi-framework'),
							'default' => '',
						),
						array(
							'id' => 'civi_service_razor',
							'type' => 'info',
							'style' => 'info',
							'title' => esc_html__('Razor Setting', 'civi-framework'),
						),
						array(
							'id' => 'service_enable_razor',
							'title' => esc_html__('Enable Razor', 'civi-framework'),
							'type' => 'button_set',
							'options' => array(
								'1' => esc_html__('Enabled', 'civi-framework'),
								'0' => esc_html__('Disabled', 'civi-framework'),
							),
							'default' => '0',
						),
						array(
							'id' => 'service_razor_key_id',
							'type' => 'text',
							'required' => array(
								array('service_enable_razor', '=', '1'),
							),
							'title' => esc_html__('Razor Key ID', 'civi-framework'),
							'subtitle' => esc_html__('Info is taken from your account at https://dashboard.razorpay.com/', 'civi-framework'),
							'default' => '',
						),
						array(
							'id' => 'service_razor_key_secret',
							'type' => 'text',
							'required' => array(
								array('service_enable_razor', '=', '1'),
							),
							'title' => esc_html__('Razor Key Secret', 'civi-framework'),
							'subtitle' => esc_html__('Info is taken from your account at https://dashboard.razorpay.com/', 'civi-framework'),
							'default' => '',
						),
						array(
							'id' => 'civi_service_wire_transfer',
							'type' => 'info',
							'style' => 'info',
							'title' => esc_html__('Wire Transfer Setting', 'civi-framework'),
						),
						array(
							'id' => 'service_enable_wire_transfer',
							'title' => esc_html__('Enable Wire Transfer', 'civi-framework'),
							'type' => 'button_set',
							'options' => array(
								'1' => esc_html__('Enabled', 'civi-framework'),
								'0' => esc_html__('Disabled', 'civi-framework'),
							),
							'default' => '1',
						),
						array(
							'id' => 'service_wire_transfer_card_number',
							'type' => 'text',
							'required' => array(
								array('service_enable_wire_transfer', '=', '1'),
							),
							'title' => esc_html__('Card Number', 'civi-framework'),
							'subtitle' => '',
							'default' => '',
						),
						array(
							'id' => 'service_wire_transfer_card_name',
							'type' => 'text',
							'required' => array(
								array('service_enable_wire_transfer', '=', '1'),
							),
							'title' => esc_html__('Card Name', 'civi-framework'),
							'subtitle' => '',
							'default' => '',
						),
						array(
							'id' => 'service_wire_transfer_bank_name',
							'type' => 'text',
							'required' => array(
								array('service_enable_wire_transfer', '=', '1'),
							),
							'title' => esc_html__('Bank Name', 'civi-framework'),
							'subtitle' => '',
							'default' => '',
						),
						array(
							'id' => 'civi_service_woocheckout',
							'type' => 'info',
							'style' => 'info',
							'title' => esc_html__('Woocommerce Setting', 'civi-framework'),
						),
						array(
							'id' => 'service_enable_woocheckout',
							'title' => esc_html__('Enable Woocommerce Checkout', 'civi-framework'),
							'type' => 'button_set',
							'subtitle' => esc_html__('Works when you activate plugin woocomerce and checkout page', 'civi-framework'),
							'options' => array(
								'1' => esc_html__('Enabled', 'civi-framework'),
								'0' => esc_html__('Disabled', 'civi-framework'),
							),
							'default' => '0',
						),
					),
				);
			}

			return apply_filters('civi_register_option_payment', array(
				'id' => 'civi_payment_option',
				'title' => esc_html__('Payment Option', 'civi-framework'),
				'icon' => 'dashicons-cart',
				'fields' => array(
					//Employer
					apply_filters('civi_register_option_payment_top', array()),
					apply_filters('civi_register_option_payment_main', array(
						'id' => 'civi_main_group',
						'type' => 'group',
						'title' => esc_html__('Employer Settings', 'civi-framework'),
						'fields' => array(
							array(
								'id' => 'paid_submission_type',
								'type' => 'select',
								'title' => esc_html__('Paid Submission Type', 'civi-framework'),
								'subtitle' => '',
								'options' => array(
									'no' => esc_html__('Free Submit', 'civi-framework'),
									'per_package' => esc_html__('Pay Per Package', 'civi-framework')
								),
								'default' => 'no',
							),
							array(
								'id' => 'civi_paypal',
								'type' => 'info',
								'style' => 'info',
								'title' => esc_html__('Paypal Setting', 'civi-framework'),
								'required' => array('paid_submission_type', '!=', 'no'),
							),
							array(
								'id' => 'enable_paypal',
								'title' => esc_html__('Enable Paypal', 'civi-framework'),
								'type' => 'button_set',
								'options' => array(
									'1' => esc_html__('Enabled', 'civi-framework'),
									'0' => esc_html__('Disabled', 'civi-framework'),
								),
								'default' => '0',
								'required' => array('paid_submission_type', '!=', 'no'),
							),
							array(
								'id' => 'paypal_api',
								'type' => 'select',
								'required' => array(
									array('enable_paypal', '=', '1'),
									array('paid_submission_type', '!=', 'no')
								),
								'title' => esc_html__('Paypal Api', 'civi-framework'),
								'subtitle' => esc_html__('Sandbox = test API. LIVE = real payments API', 'civi-framework'),
								'desc' => esc_html__('Update PayPal settings according to API type selection', 'civi-framework'),
								'options' => array(
									'sandbox' => esc_html__('Sandbox', 'civi-framework'),
									'live' => esc_html__('Live', 'civi-framework')
								),
								'default' => 'sandbox',
							),
							array(
								'id' => 'paypal_client_id',
								'type' => 'text',
								'required' => array(
									array('enable_paypal', '=', '1'),
									array('paid_submission_type', '!=', 'no')
								),
								'title' => esc_html__('Paypal Client ID', 'civi-framework'),
								'subtitle' => '',
								'default' => '',
							),
							array(
								'id' => 'paypal_client_secret_key',
								'type' => 'text',
								'required' => array(
									array('enable_paypal', '=', '1'),
									array('paid_submission_type', '!=', 'no')
								),
								'title' => esc_html__('Paypal Client Secret Key', 'civi-framework'),
								'subtitle' => '',
								'default' => '',
							),
							array(
								'id' => 'civi_stripe',
								'type' => 'info',
								'style' => 'info',
								'title' => esc_html__('Stripe Setting', 'civi-framework'),
								'required' => array('paid_submission_type', '!=', 'no'),
							),
							array(
								'id' => 'enable_stripe',
								'title' => esc_html__('Enable Stripe', 'civi-framework'),
								'type' => 'button_set',
								'options' => array(
									'1' => esc_html__('Enabled', 'civi-framework'),
									'0' => esc_html__('Disabled', 'civi-framework'),
								),
								'default' => '0',
								'required' => array('paid_submission_type', '!=', 'no'),
							),
							array(
								'id' => 'stripe_secret_key',
								'type' => 'text',
								'required' => array(
									array('enable_stripe', '=', '1'),
									array('paid_submission_type', '!=', 'no')
								),
								'title' => esc_html__('Stripe Secret Key', 'civi-framework'),
								'subtitle' => esc_html__('Info is taken from your account at https://dashboard.stripe.com/login', 'civi-framework'),
								'default' => '',
							),
							array(
								'id' => 'stripe_publishable_key',
								'type' => 'text',
								'required' => array(
									array('enable_stripe', '=', '1'),
									array('paid_submission_type', '!=', 'no')
								),
								'title' => esc_html__('Stripe Publishable Key', 'civi-framework'),
								'subtitle' => esc_html__('Info is taken from your account at https://dashboard.stripe.com/login', 'civi-framework'),
								'default' => '',
							),
							array(
								'id' => 'civi_employer_razor',
								'type' => 'info',
								'style' => 'info',
								'title' => esc_html__('Razor Setting', 'civi-framework'),
							),
							array(
								'id' => 'employer_enable_razor',
								'title' => esc_html__('Enable Razor', 'civi-framework'),
								'type' => 'button_set',
								'options' => array(
									'1' => esc_html__('Enabled', 'civi-framework'),
									'0' => esc_html__('Disabled', 'civi-framework'),
								),
								'default' => '0',
							),
							array(
								'id' => 'razor_key_id',
								'type' => 'text',
								'required' => array(
									array('employer_enable_razor', '=', '1'),
								),
								'title' => esc_html__('Razor Key ID', 'civi-framework'),
								'subtitle' => esc_html__('Info is taken from your account at https://dashboard.razorpay.com/', 'civi-framework'),
								'default' => '',
							),
							array(
								'id' => 'razor_key_secret',
								'type' => 'text',
								'required' => array(
									array('employer_enable_razor', '=', '1'),
								),
								'title' => esc_html__('Razor Key Secret', 'civi-framework'),
								'subtitle' => esc_html__('Info is taken from your account at https://dashboard.razorpay.com/', 'civi-framework'),
								'default' => '',
							),
							array(
								'id' => 'civi_wire_transfer',
								'type' => 'info',
								'style' => 'info',
								'title' => esc_html__('Wire Transfer Setting', 'civi-framework'),
								'required' => array('paid_submission_type', '!=', 'no'),
							),
							array(
								'id' => 'enable_wire_transfer',
								'title' => esc_html__('Enable Wire Transfer', 'civi-framework'),
								'type' => 'button_set',
								'options' => array(
									'1' => esc_html__('Enabled', 'civi-framework'),
									'0' => esc_html__('Disabled', 'civi-framework'),
								),
								'default' => '0',
								'required' => array('paid_submission_type', '!=', 'no'),
							),
							array(
								'id' => 'wire_transfer_card_number',
								'type' => 'text',
								'required' => array(
									array('enable_wire_transfer', '=', '1'),
									array('paid_submission_type', '!=', 'no')
								),
								'title' => esc_html__('Card Number', 'civi-framework'),
								'subtitle' => '',
								'default' => '',
							),
							array(
								'id' => 'wire_transfer_card_name',
								'type' => 'text',
								'required' => array(
									array('enable_wire_transfer', '=', '1'),
									array('paid_submission_type', '!=', 'no')
								),
								'title' => esc_html__('Card Name', 'civi-framework'),
								'subtitle' => '',
								'default' => '',
							),
							array(
								'id' => 'wire_transfer_bank_name',
								'type' => 'text',
								'required' => array(
									array('enable_wire_transfer', '=', '1'),
									array('paid_submission_type', '!=', 'no')
								),
								'title' => esc_html__('Bank Name', 'civi-framework'),
								'subtitle' => '',
								'default' => '',
							),
							array(
								'id' => 'civi_woocheckout',
								'type' => 'info',
								'style' => 'info',
								'title' => esc_html__('Woocommerce Setting', 'civi-framework'),
								'required' => array('paid_submission_type', '!=', 'no'),
							),
							array(
								'id' => 'enable_woocheckout',
								'title' => esc_html__('Enable Woocommerce Checkout', 'civi-framework'),
								'type' => 'button_set',
								'subtitle' => esc_html__('Works when you activate plugin woocomerce and checkout page', 'civi-framework'),
								'options' => array(
									'1' => esc_html__('Enabled', 'civi-framework'),
									'0' => esc_html__('Disabled', 'civi-framework'),
								),
								'default' => '0',
								'required' => array('paid_submission_type', '!=', 'no'),
							),
						),
					)),
					apply_filters('civi_register_option_payment_bottom', array()),

					//Candidate
					apply_filters('civi_register_option_payment_candidate_top', array()),
					apply_filters('civi_register_option_payment_candidate_main', array(
						'id' => 'civi_main_group',
						'type' => 'group',
						'title' => esc_html__('Candidate Settings', 'civi-framework'),
						'fields' => array(
							array(
								'id' => 'candidate_paid_submission_type',
								'type' => 'select',
								'title' => esc_html__('Paid Submission Type', 'civi-framework'),
								'subtitle' => '',
								'options' => array(
									'no' => esc_html__('Free Submit', 'civi-framework'),
									'candidate_per_package' => esc_html__('Pay Per Package', 'civi-framework')
								),
								'default' => 'no',
							),
							array(
								'id' => 'civi_candidate_paypal',
								'type' => 'info',
								'style' => 'info',
								'title' => esc_html__('Paypal Setting', 'civi-framework'),
								'required' => array('candidate_paid_submission_type', '!=', 'no'),
							),
							array(
								'id' => 'candidate_enable_paypal',
								'title' => esc_html__('Enable Paypal', 'civi-framework'),
								'type' => 'button_set',
								'options' => array(
									'1' => esc_html__('Enabled', 'civi-framework'),
									'0' => esc_html__('Disabled', 'civi-framework'),
								),
								'default' => '0',
								'required' => array('candidate_paid_submission_type', '!=', 'no'),
							),
							array(
								'id' => 'candidate_paypal_api',
								'type' => 'select',
								'required' => array(
									array('candidate_enable_paypal', '=', '1'),
									array('candidate_paid_submission_type', '!=', 'no')
								),
								'title' => esc_html__('Paypal Api', 'civi-framework'),
								'subtitle' => esc_html__('Sandbox = test API. LIVE = real payments API', 'civi-framework'),
								'desc' => esc_html__('Update PayPal settings according to API type selection', 'civi-framework'),
								'options' => array(
									'sandbox' => esc_html__('Sandbox', 'civi-framework'),
									'live' => esc_html__('Live', 'civi-framework')
								),
								'default' => 'sandbox',
							),
							array(
								'id' => 'candidate_paypal_client_id',
								'type' => 'text',
								'required' => array(
									array('candidate_enable_paypal', '=', '1'),
									array('candidate_paid_submission_type', '!=', 'no')
								),
								'title' => esc_html__('Paypal Client ID', 'civi-framework'),
								'subtitle' => '',
								'default' => '',
							),
							array(
								'id' => 'candidate_paypal_client_secret_key',
								'type' => 'text',
								'required' => array(
									array('candidate_enable_paypal', '=', '1'),
									array('candidate_paid_submission_type', '!=', 'no')
								),
								'title' => esc_html__('Paypal Client Secret Key', 'civi-framework'),
								'subtitle' => '',
								'default' => '',
							),
							array(
								'id' => 'civi_candidate_stripe',
								'type' => 'info',
								'style' => 'info',
								'title' => esc_html__('Stripe Setting', 'civi-framework'),
								'required' => array('candidate_paid_submission_type', '!=', 'no'),
							),
							array(
								'id' => 'candidate_enable_stripe',
								'title' => esc_html__('Enable Stripe', 'civi-framework'),
								'type' => 'button_set',
								'options' => array(
									'1' => esc_html__('Enabled', 'civi-framework'),
									'0' => esc_html__('Disabled', 'civi-framework'),
								),
								'default' => '0',
								'required' => array('candidate_paid_submission_type', '!=', 'no'),
							),
							array(
								'id' => 'candidate_stripe_secret_key',
								'type' => 'text',
								'required' => array(
									array('candidate_enable_stripe', '=', '1'),
									array('candidate_paid_submission_type', '!=', 'no')
								),
								'title' => esc_html__('Stripe Secret Key', 'civi-framework'),
								'subtitle' => esc_html__('Info is taken from your account at https://dashboard.stripe.com/login', 'civi-framework'),
								'default' => '',
							),
							array(
								'id' => 'candidate_tripe_publishable_key',
								'type' => 'text',
								'required' => array(
									array('candidate_enable_stripe', '=', '1'),
									array('candidate_paid_submission_type', '!=', 'no')
								),
								'title' => esc_html__('Stripe Publishable Key', 'civi-framework'),
								'subtitle' => esc_html__('Info is taken from your account at https://dashboard.stripe.com/login', 'civi-framework'),
								'default' => '',
							),
							array(
								'id' => 'civi_candidate_razor',
								'type' => 'info',
								'style' => 'info',
								'title' => esc_html__('Razor Setting', 'civi-framework'),
							),
							array(
								'id' => 'candidate_enable_razor',
								'title' => esc_html__('Enable Razor', 'civi-framework'),
								'type' => 'button_set',
								'options' => array(
									'1' => esc_html__('Enabled', 'civi-framework'),
									'0' => esc_html__('Disabled', 'civi-framework'),
								),
								'default' => '0',
							),
							array(
								'id' => 'candidate_razor_key_id',
								'type' => 'text',
								'required' => array(
									array('candidate_enable_razor', '=', '1'),
								),
								'title' => esc_html__('Razor Key ID', 'civi-framework'),
								'subtitle' => esc_html__('Info is taken from your account at https://dashboard.razorpay.com/', 'civi-framework'),
								'default' => '',
							),
							array(
								'id' => 'candidate_razor_key_secret',
								'type' => 'text',
								'required' => array(
									array('candidate_enable_razor', '=', '1'),
								),
								'title' => esc_html__('Razor Key Secret', 'civi-framework'),
								'subtitle' => esc_html__('Info is taken from your account at https://dashboard.razorpay.com/', 'civi-framework'),
								'default' => '',
							),
							array(
								'id' => 'civi_candidate_wire_transfer',
								'type' => 'info',
								'style' => 'info',
								'title' => esc_html__('Wire Transfer Setting', 'civi-framework'),
								'required' => array('candidate_paid_submission_type', '!=', 'no'),
							),
							array(
								'id' => 'candidate_enable_wire_transfer',
								'title' => esc_html__('Enable Wire Transfer', 'civi-framework'),
								'type' => 'button_set',
								'options' => array(
									'1' => esc_html__('Enabled', 'civi-framework'),
									'0' => esc_html__('Disabled', 'civi-framework'),
								),
								'default' => '0',
								'required' => array('candidate_paid_submission_type', '!=', 'no'),
							),
							array(
								'id' => 'candidate_wire_transfer_card_number',
								'type' => 'text',
								'required' => array(
									array('candidate_enable_wire_transfer', '=', '1'),
									array('candidate_paid_submission_type', '!=', 'no')
								),
								'title' => esc_html__('Card Number', 'civi-framework'),
								'subtitle' => '',
								'default' => '',
							),
							array(
								'id' => 'candidate_wire_transfer_card_name',
								'type' => 'text',
								'required' => array(
									array('candidate_enable_wire_transfer', '=', '1'),
									array('candidate_paid_submission_type', '!=', 'no')
								),
								'title' => esc_html__('Card Name', 'civi-framework'),
								'subtitle' => '',
								'default' => '',
							),
							array(
								'id' => 'candidate_wire_transfer_bank_name',
								'type' => 'text',
								'required' => array(
									array('candidate_enable_wire_transfer', '=', '1'),
									array('candidate_paid_submission_type', '!=', 'no')
								),
								'title' => esc_html__('Bank Name', 'civi-framework'),
								'subtitle' => '',
								'default' => '',
							),
							array(
								'id' => 'civi_candidate_woocheckout',
								'type' => 'info',
								'style' => 'info',
								'title' => esc_html__('Woocommerce Setting', 'civi-framework'),
								'required' => array('candidate_paid_submission_type', '!=', 'no'),
							),
							array(
								'id' => 'candidate_enable_woocheckout',
								'title' => esc_html__('Enable Woocommerce Checkout', 'civi-framework'),
								'type' => 'button_set',
								'subtitle' => esc_html__('Works when you activate plugin woocomerce and checkout page', 'civi-framework'),
								'options' => array(
									'1' => esc_html__('Enabled', 'civi-framework'),
									'0' => esc_html__('Disabled', 'civi-framework'),
								),
								'default' => '0',
								'required' => array('candidate_paid_submission_type', '!=', 'no'),
							),
						),
					)),
					apply_filters('civi_register_option_payment_candidate_bottom', array()),

					//Service
					apply_filters('civi_register_option_payment_service_top', array()),
					apply_filters(
						'civi_register_option_payment_service_main',
						$option_payment_service,
					),
					apply_filters('civi_register_option_payment_service_bottom', array())

				)
			));
		}

		/**
		 * @return mixed|void
		 */
		private function login_option()
		{
			return apply_filters('civi_register_option_login', array(
				'id' => 'civi_login_option',
				'title' => esc_html__('Login/Register', 'civi-framework'),
				'icon' => 'dashicons-admin-users',
				'fields' => array(

					//General Login
					apply_filters('civi_register_option_genera_login_page_top', array()),
					apply_filters('civi_register_option_genera_login_page_main', array(
						'id' => 'civi_login_general_group',
						'type' => 'group',
						'title' => esc_html__('General Option', 'civi-framework'),
						'fields' => array(
							array(
								'id' => 'enable_user_name_after_login',
								'type' => 'button_set',
								'title' => esc_html__('Enable User Name After Login', 'civi-framework'),
								'subtitle' => esc_html__('Enable/Disable User Name After Login', 'civi-framework'),
								'options' => array(
									'1' => esc_html__('On', 'civi-framework'),
									'0' => esc_html__('Off', 'civi-framework'),
								),
								'default' => '1'
							),
							array(
								'id' => 'enable_redirect_after_login',
								'type' => 'button_set',
								'title' => esc_html__('Enable Redirect After Login', 'civi-framework'),
								'subtitle' => esc_html__('Enable/Disable Redirect After Login', 'civi-framework'),
								'desc' => '',
								'options' => array(
									'1' => esc_html__('On', 'civi-framework'),
									'0' => esc_html__('Off', 'civi-framework'),
								),
								'default' => '0'
							),
							array(
								'id' => 'redirect_for_admin',
								'title' => esc_html__('Redirect For Admin', 'civi-framework'),
								'subtitle' => esc_html__('Select redirect page after admin login.', 'civi-framework'),
								'type' => 'select',
								'data' => 'page',
								'data_args' => array(
									'numberposts' => -1,
								),
								'required' => array('enable_redirect_after_login', '!=', '0'),
							),
							array(
								'id' => 'redirect_for_candidate',
								'title' => esc_html__('Redirect For Candidate', 'civi-framework'),
								'subtitle' => esc_html__('Select redirect page after candidate login.', 'civi-framework'),
								'type' => 'select',
								'data' => 'page',
								'data_args' => array(
									'numberposts' => -1,
								),
								'required' => array('enable_redirect_after_login', '!=', '0'),
							),
							array(
								'id' => 'redirect_for_employer',
								'title' => esc_html__('Redirect For Employer', 'civi-framework'),
								'subtitle' => esc_html__('Select redirect page after employer login.', 'civi-framework'),
								'type' => 'select',
								'data' => 'page',
								'data_args' => array(
									'numberposts' => -1,
								),
								'required' => array('enable_redirect_after_login', '!=', '0'),
							),
							array(
								'id' => 'enable_user_role',
								'type' => 'button_set',
								'title' => esc_html__('Enable User Role', 'civi-framework'),
								'subtitle' => esc_html__('Enable/Disable User Role In Form Register', 'civi-framework'),
								'desc' => '',
								'options' => array(
									'1' => esc_html__('On', 'civi-framework'),
									'0' => esc_html__('Off', 'civi-framework'),
								),
								'default' => '1'
							),
							array(
								'id' => 'enable_default_user_role',
								'type' => 'button_set',
								'title' => esc_html__('Enable Default User Role', 'civi-framework'),
								'subtitle' => esc_html__('Enable/Disable Default User Role', 'civi-framework'),
								'desc' => '',
								'options' => array(
									'candidate' => esc_html__('Candidate', 'civi-framework'),
									'employer' => esc_html__('Employer', 'civi-framework'),
								),
								'default' => 'candidate',
								'required' => array("enable_user_role", '!=', '1'),
							),
						),
					)),
					apply_filters('civi_register_option_genera_login_page_bottom', array()),

					//Verify Login
					apply_filters('civi_register_option_verify_login_page_top', array()),
					apply_filters('civi_register_option_verify_login_page_main', array(
						'id' => 'civi_login_verify_group',
						'type' => 'group',
						'title' => esc_html__('Verify Option', 'civi-framework'),
						'fields' => array(
							array(
								'id' => 'enable_status_user',
								'type' => 'button_set',
								'title' => esc_html__('Enable Verify Your Account Information', 'civi-framework'),
								'subtitle' => esc_html__('Enable/Disable Verify Your Account Information (Status) After Register', 'civi-framework'),
								'desc' => '',
								'options' => array(
									'1' => esc_html__('On', 'civi-framework'),
									'0' => esc_html__('Off', 'civi-framework'),
								),
								'default' => '0'
							),
							array(
								'id' => 'enable_captcha',
								'type' => 'button_set',
								'title' => esc_html__('Enable Verify Captcha', 'civi-framework'),
								'subtitle' => esc_html__('Enable/Disable Verify Captcha', 'civi-framework'),
								'desc' => '',
								'options' => array(
									'1' => esc_html__('On', 'civi-framework'),
									'0' => esc_html__('Off', 'civi-framework'),
								),
								'default' => '0'
							),
							array(
								'id' => 'enable_verify_user',
								'type' => 'button_set',
								'title' => esc_html__('Enable Verify Gmail', 'civi-framework'),
								'subtitle' => esc_html__('Enable/Disable Verify Gmail After Register', 'civi-framework'),
								'desc' => '',
								'options' => array(
									'1' => esc_html__('On', 'civi-framework'),
									'0' => esc_html__('Off', 'civi-framework'),
								),
								'default' => '0'
							),
							array(
								'id' => "verify_user_time",
								'title' => esc_html__('Verification Expiration Time', 'civi-framework'),
								'subtitle' => esc_html__('Enter the expiration time of the verification code (second)', 'civi-framework'),
								'default' => '900',
								'type' => 'text',
								'required' => array("enable_verify_user", '!=', '0'),
							),
							//                            array(
							//                                'id' => 'enable_verify_phone',
							//                                'type' => 'button_set',
							//                                'title' => esc_html__('Enable Verify Phone Number', 'civi-framework'),
							//                                'subtitle' => esc_html__('Enable/Disable Verify Phone Number After Register', 'civi-framework'),
							//                                'desc' => '',
							//                                'options' => array(
							//                                    '1' => esc_html__('On', 'civi-framework'),
							//                                    '0' => esc_html__('Off', 'civi-framework'),
							//                                ),
							//                                'default' => '0'
							//                            ),
							//                            array(
							//                                'id' => "verify_phone_sid",
							//                                'title' => esc_html__('Account SID', 'civi-framework'),
							//                                'subtitle' => esc_html__('Enter account sid', 'civi-framework'),
							//                                'default' => '',
							//                                'type' => 'text',
							//                                'required' => array("enable_verify_phone", '!=', '0'),
							//                            ),
							//                            array(
							//                                'id' => "verify_phone_token",
							//                                'title' => esc_html__('Auth Token', 'civi-framework'),
							//                                'subtitle' => esc_html__('Enter auth token', 'civi-framework'),
							//                                'default' => '',
							//                                'type' => 'text',
							//                                'required' => array("enable_verify_phone", '!=', '0'),
							//                            ),
							//                            array(
							//                                'id' => "verify_phone_my_twilio",
							//                                'title' => esc_html__('My Twilio Phone Number', 'civi-framework'),
							//                                'subtitle' => esc_html__('Enter my twilio phone number', 'civi-framework'),
							//                                'default' => '',
							//                                'type' => 'text',
							//                                'required' => array("enable_verify_phone", '!=', '0'),
							//                            ),
						),
					)),
					apply_filters('civi_register_option_verify_login_page_bottom', array()),

					//Social Login
					apply_filters('civi_register_option_social_login_page_top', array()),
					apply_filters('civi_register_option_social_login_page_main', array(
						'id' => 'civi_login_social_group',
						'type' => 'group',
						'title' => esc_html__('Social Option', 'civi-framework'),
						'fields' => array(
							array(
								'id' => 'enable_social_login',
								'type' => 'button_set',
								'title' => esc_html__('Enable Social Login', 'civi-framework'),
								'subtitle' => esc_html__('Enable/Disable Social Login', 'civi-framework'),
								'desc' => '',
								'options' => array(
									'1' => esc_html__('On', 'civi-framework'),
									'0' => esc_html__('Off', 'civi-framework'),
								),
								'default' => '1'
							),
							array(
								'id' => 'enable_google_login',
								'type' => 'button_set',
								'title' => esc_html__('Enable Google Login', 'civi-framework'),
								'subtitle' => esc_html__('Enable/Disable Google Login', 'civi-framework'),
								'desc' => '',
								'options' => array(
									'1' => esc_html__('On', 'civi-framework'),
									'0' => esc_html__('Off', 'civi-framework'),
								),
								'default' => '1',
								'required' => array("enable_social_login", '=', '1'),
							),
							array(
								'id' => 'google_login_api',
								'type' => 'text',
								'title' => esc_html__('Google Login API', 'civi-framework'),
								'subtitle' => esc_html__('Enter your google login api key'),
								'default' => '128596758374-b8gac0mc9rjn5gnb96q0ma30naojdrcg.apps.googleusercontent.com',
								'required' => array(
									array('enable_social_login', '=', '1'),
									array('enable_google_login', '=', '1')
								),
							),
							array(
								'id' => 'enable_facebook_login',
								'type' => 'button_set',
								'title' => esc_html__('Enable Facebook Login', 'civi-framework'),
								'subtitle' => esc_html__('Enable/Disable Facebook Login', 'civi-framework'),
								'desc' => '',
								'options' => array(
									'1' => esc_html__('On', 'civi-framework'),
									'0' => esc_html__('Off', 'civi-framework'),
								),
								'default' => '1',
								'required' => array("enable_social_login", '=', '1'),
							),
							array(
								'id' => 'facebook_app_id',
								'type' => 'text',
								'title' => esc_html__('Facebook Login API', 'civi-framework'),
								'subtitle' => esc_html__('Enter your facebook login api key'),
								'default' => '1270446883532471',
								'required' => array(
									array('enable_social_login', '=', '1'),
									array('enable_facebook_login', '=', '1')
								),
							),
							array(
								'id' => 'enable_linkedin_login',
								'type' => 'button_set',
								'title' => esc_html__('Enable Linkedin Login', 'civi-framework'),
								'subtitle' => esc_html__('Enable/Disable Linkedin Login', 'civi-framework'),
								'desc' => '',
								'options' => array(
									'1' => esc_html__('On', 'civi-framework'),
									'0' => esc_html__('Off', 'civi-framework'),
								),
								'default' => '1',
								'required' => array("enable_social_login", '=', '1'),
							),
							array(
								'id' => 'linkedin_client_id',
								'type' => 'text',
								'title' => esc_html__('Linkedin Client ID', 'civi-framework'),
								'subtitle' => esc_html__('Enter your linkedin client id'),
								'default' => '77ckh5i6e10d4w',
								'required' => array(
									array('enable_social_login', '=', '1'),
									array('enable_linkedin_login', '=', '1')
								),
							),
							array(
								'id' => 'linkedin_client_secret',
								'type' => 'text',
								'title' => esc_html__('Linkedin Client Secret', 'civi-framework'),
								'subtitle' => esc_html__('Enter your linkedin client secret'),
								'default' => 'DgvFxN7r057LNeMS',
								'required' => array(
									array('enable_social_login', '=', '1'),
									array('enable_linkedin_login', '=', '1')
								),
							),
						),
					)),
					apply_filters('civi_register_option_social_login_page_bottom', array()),
				)
			));
		}

		/**
		 * Social network
		 * @return mixed
		 */

		private function social_network()
		{
			return apply_filters('civi_register_social_option', array(
				'id' => 'civi_social_option',
				'title' => esc_html__('Social Network', 'civi-framework'),
				'icon' => 'dashicons dashicons-networking',
				'fields' => array_merge(
					apply_filters('civi_register_social_option_top', array()),
					array(
						array(
							'id' => "enable_social_twitter",
							'type' => 'button_set',
							'title' => esc_html__('Enable Twitter', 'civi-framework'),
							'subtitle' => esc_html__('Enable/Disable Twitter', 'civi-framework'),
							'options' => array(
								'1' => esc_html__('On', 'civi-framework'),
								'0' => esc_html__('Off', 'civi-framework'),
							),
							'default' => '1',
						),
						array(
							'id' => "enable_social_linkedin",
							'type' => 'button_set',
							'title' => esc_html__('Enable Linkedin', 'civi-framework'),
							'subtitle' => esc_html__('Enable/Disable Linkedin', 'civi-framework'),
							'options' => array(
								'1' => esc_html__('On', 'civi-framework'),
								'0' => esc_html__('Off', 'civi-framework'),
							),
							'default' => '1',
						),
						array(
							'id' => "enable_social_facebook",
							'type' => 'button_set',
							'title' => esc_html__('Enable Facebook', 'civi-framework'),
							'subtitle' => esc_html__('Enable/Disable Facebook', 'civi-framework'),
							'options' => array(
								'1' => esc_html__('On', 'civi-framework'),
								'0' => esc_html__('Off', 'civi-framework'),
							),
							'default' => '1',
						),
						array(
							'id' => "enable_social_instagram",
							'type' => 'button_set',
							'title' => esc_html__('Enable Instagram', 'civi-framework'),
							'subtitle' => esc_html__('Enable/Disable Instagram', 'civi-framework'),
							'options' => array(
								'1' => esc_html__('On', 'civi-framework'),
								'0' => esc_html__('Off', 'civi-framework'),
							),
							'default' => '1',
						),
						array(
							'id' => "civi_social_fields",
							'type' => 'panel',
							'title' => esc_html__('Social Field', 'civi-framework'),
							'sort' => true,
							'panel_title' => 'label',
							'fields' => array(
								array(
									'id' => 'social_name',
									'title' => esc_html__('Social Name', 'civi-framework'),
									'type' => 'text',
								),
								array(
									'id' => 'social_icon',
									'title' => esc_html__('Social Icon', 'civi-framework'),
									'type' => 'text',
									'desc' => esc_html__('Please enter the html code of the "fontawesome" icon to display it', 'civi-framework'),
								),
							)
						)
					),
					apply_filters('civi_register_social_option_bottom', array())
				),
			));
		}

		/**
		 * @return mixed|void
		 */
		private function user_option()
		{
			$user_navigation_employer_show_servive = $user_navigation_employer_image_service = $user_navigation_candidate_image_service = $user_navigation_candidate_show_servive = array();

			if (civi_get_option('enable_post_type_service') === '1') {
				$user_navigation_employer_show_servive = array(
					'id' => 'show_employer_employer_service',
					'type' => 'button_set',
					'title' => esc_html__('Show "Services"', 'civi-framework'),
					'subtitle' => esc_html__('Show/Hide "Services" on navigation', 'civi-framework'),
					'desc' => '',
					'options' => array(
						'1' => esc_html__('On', 'civi-framework'),
						'0' => esc_html__('Off', 'civi-framework'),
					),
					'default' => '1'
				);
				$user_navigation_employer_image_service = array(
					'id' => 'image_employer_employer_service',
					'type' => 'image',
					'url' => true,
					'title' => esc_html__('Icon Services', 'civi-framework'),
					'subtitle' => esc_html__('Choose icon for services', 'civi-framework'),
					'required' => array('show_employer_employer_service', '!=', '0'),
				);
				$user_navigation_candidate_show_servive = array(
					'id' => 'show_candidate_service',
					'type' => 'button_set',
					'title' => esc_html__('Show "My Service"', 'civi-framework'),
					'subtitle' => esc_html__('Show/Hide "My Service" on navigation', 'civi-framework'),
					'desc' => '',
					'options' => array(
						'1' => esc_html__('On', 'civi-framework'),
						'0' => esc_html__('Off', 'civi-framework'),
					),
					'default' => '1'
				);
				$user_navigation_candidate_image_service = array(
					'id' => 'image_candidate_service',
					'type' => 'image',
					'url' => true,
					'title' => esc_html__('Icon My Service', 'civi-framework'),
					'subtitle' => esc_html__('Choose icon for My Service', 'civi-framework'),
					'required' => array('show_candidate_service', '!=', '0'),
				);
			}

			return apply_filters('civi_register_user_option', array(
				'id' => 'civi_user_option',
				'title' => esc_html__('User Navigation', 'civi-framework'),
				'icon' => 'dashicons-groups',
				'fields' => array_merge(
					apply_filters('civi_register_user_employer_option_top', array()),
					array(
						apply_filters(
							'civi_register_user_employer_option_main',
							array(
								'id' => 'civi_user_option_employer',
								'type' => 'group',
								'title' => esc_html__('Employer Setting', 'civi-framework'),
								'fields' => array(
									array(
										'id' => 'show_employer_jobs_post_your',
										'type' => 'button_set',
										'title' => esc_html__('Show "Post Your"', 'civi-framework'),
										'subtitle' => esc_html__('Show/Hide "Post your first job!"', 'civi-framework'),
										'desc' => '',
										'options' => array(
											'1' => esc_html__('On', 'civi-framework'),
											'0' => esc_html__('Off', 'civi-framework'),
										),
										'default' => '1'
									),
									array(
										'id' => 'show_employer_payout',
										'type' => 'button_set',
										'title' => esc_html__('Show "Payout"', 'civi-framework'),
										'subtitle' => esc_html__('Show/Hide "Payout"', 'civi-framework'),
										'desc' => '',
										'options' => array(
											'1' => esc_html__('On', 'civi-framework'),
											'0' => esc_html__('Off', 'civi-framework'),
										),
										'default' => '1'
									),
									array(
										'id' => 'type_icon_employer',
										'type' => 'select',
										'title' => esc_html__('Icon Type', 'civi-framework'),
										'default' => 'svg',
										'options' => array(
											'image' => esc_html__('Image', 'civi-framework'),
											'svg' => esc_html__('Svg', 'civi-framework')
										),
									),
									array(
										'id' => 'show_employer_dashboard',
										'type' => 'button_set',
										'title' => esc_html__('Show "Dashboard"', 'civi-framework'),
										'subtitle' => esc_html__('Show/Hide "Dashboard" on navigation', 'civi-framework'),
										'desc' => '',
										'options' => array(
											'1' => esc_html__('On', 'civi-framework'),
											'0' => esc_html__('Off', 'civi-framework'),
										),
										'default' => '1'
									),
									array(
										'id' => 'image_employer_dashboard',
										'type' => 'image',
										'url' => true,
										'title' => esc_html__('Icon Dashboard', 'civi-framework'),
										'subtitle' => esc_html__('Choose icon for dashboard', 'civi-framework'),
										'required' => array('show_employer_dashboard', '!=', '0'),
									),
									array(
										'id' => 'show_employer_jobs_dashboard',
										'type' => 'button_set',
										'title' => esc_html__('Show "Jobs"', 'civi-framework'),
										'subtitle' => esc_html__('Show/Hide "Jobs" on navigation', 'civi-framework'),
										'desc' => '',
										'options' => array(
											'1' => esc_html__('On', 'civi-framework'),
											'0' => esc_html__('Off', 'civi-framework'),
										),
										'default' => '1'
									),
									array(
										'id' => 'image_employer_jobs_dashboard',
										'type' => 'image',
										'url' => true,
										'title' => esc_html__('Icon Jobs', 'civi-framework'),
										'subtitle' => esc_html__('Choose icon for jobs', 'civi-framework'),
										'required' => array('show_employer_jobs_dashboard', '!=', '0'),
									),
									array(
										'id' => 'show_employer_applicants',
										'type' => 'button_set',
										'title' => esc_html__('Show "Applicants"', 'civi-framework'),
										'subtitle' => esc_html__('Show/Hide "Applicants" on navigation', 'civi-framework'),
										'desc' => '',
										'options' => array(
											'1' => esc_html__('On', 'civi-framework'),
											'0' => esc_html__('Off', 'civi-framework'),
										),
										'default' => '1'
									),
									array(
										'id' => 'image_employer_applicants',
										'type' => 'image',
										'url' => true,
										'title' => esc_html__('Icon Aplicants', 'civi-framework'),
										'subtitle' => esc_html__('Choose icon for applicants', 'civi-framework'),
										'required' => array('show_employer_applicants', '!=', '0'),
									),
									array(
										'id' => 'show_employer_candidates',
										'type' => 'button_set',
										'title' => esc_html__('Show "Candidates"', 'civi-framework'),
										'subtitle' => esc_html__('Show/Hide "Candidates" on navigation', 'civi-framework'),
										'desc' => '',
										'options' => array(
											'1' => esc_html__('On', 'civi-framework'),
											'0' => esc_html__('Off', 'civi-framework'),
										),
										'default' => '1'
									),
									array(
										'id' => 'image_employer_candidates',
										'type' => 'image',
										'url' => true,
										'title' => esc_html__('Icon Candidates', 'civi-framework'),
										'subtitle' => esc_html__('Choose icon for Candidates', 'civi-framework'),
										'required' => array('show_employer_candidates', '!=', '0'),
									),
									array(
										'id' => 'show_employer_user_package',
										'type' => 'button_set',
										'title' => esc_html__('Show "User Package"', 'civi-framework'),
										'subtitle' => esc_html__('Show/Hide "User Package" on navigation', 'civi-framework'),
										'desc' => '',
										'options' => array(
											'1' => esc_html__('On', 'civi-framework'),
											'0' => esc_html__('Off', 'civi-framework'),
										),
										'default' => '1'
									),
									array(
										'id' => 'image_employer_user_package',
										'type' => 'image',
										'url' => true,
										'title' => esc_html__('Icon User Package', 'civi-framework'),
										'subtitle' => esc_html__('Choose icon for User Package', 'civi-framework'),
										'required' => array('show_employer_user_package', '!=', '0'),
									),
									array(
										'id' => 'show_employer_messages',
										'type' => 'button_set',
										'title' => esc_html__('Show "Messages"', 'civi-framework'),
										'subtitle' => esc_html__('Show/Hide "Messages" on navigation', 'civi-framework'),
										'desc' => '',
										'options' => array(
											'1' => esc_html__('On', 'civi-framework'),
											'0' => esc_html__('Off', 'civi-framework'),
										),
										'default' => '1'
									),
									array(
										'id' => 'image_employer_messages',
										'type' => 'image',
										'url' => true,
										'title' => esc_html__('Icon Messages', 'civi-framework'),
										'subtitle' => esc_html__('Choose icon for messages', 'civi-framework'),
										'required' => array('show_employer_messages', '!=', '0'),
									),
									array(
										'id' => 'show_employer_meetings',
										'type' => 'button_set',
										'title' => esc_html__('Show "Meetings"', 'civi-framework'),
										'subtitle' => esc_html__('Show/Hide "Meetings" on navigation', 'civi-framework'),
										'desc' => '',
										'options' => array(
											'1' => esc_html__('On', 'civi-framework'),
											'0' => esc_html__('Off', 'civi-framework'),
										),
										'default' => '1'
									),
									array(
										'id' => 'image_employer_meetings',
										'type' => 'image',
										'url' => true,
										'title' => esc_html__('Icon Meetings', 'civi-framework'),
										'subtitle' => esc_html__('Choose icon for meetings', 'civi-framework'),
										'required' => array('show_employer_meetings', '!=', '0'),
									),
									array(
										'id' => 'show_employer_company',
										'type' => 'button_set',
										'title' => esc_html__('Show "Company"', 'civi-framework'),
										'subtitle' => esc_html__('Show/Hide "Company" on navigation', 'civi-framework'),
										'desc' => '',
										'options' => array(
											'1' => esc_html__('On', 'civi-framework'),
											'0' => esc_html__('Off', 'civi-framework'),
										),
										'default' => '1'
									),
									array(
										'id' => 'image_employer_company',
										'type' => 'image',
										'url' => true,
										'title' => esc_html__('Icon Company', 'civi-framework'),
										'subtitle' => esc_html__('Choose icon for company', 'civi-framework'),
										'required' => array('show_employer_company', '!=', '0'),
									),
									array(
										'id' => 'show_employer_settings',
										'type' => 'button_set',
										'title' => esc_html__('Show "Settings"', 'civi-framework'),
										'subtitle' => esc_html__('Show/Hide "Settings" on navigation', 'civi-framework'),
										'desc' => '',
										'options' => array(
											'1' => esc_html__('On', 'civi-framework'),
											'0' => esc_html__('Off', 'civi-framework'),
										),
										'default' => '1'
									),
									array(
										'id' => 'image_employer_settings',
										'type' => 'image',
										'url' => true,
										'title' => esc_html__('Icon Settings', 'civi-framework'),
										'subtitle' => esc_html__('Choose icon for settings', 'civi-framework'),
										'required' => array('show_employer_settings', '!=', '0'),
									),
									array(
										'id' => 'show_employer_logout',
										'type' => 'button_set',
										'title' => esc_html__('Show "Logout"', 'civi-framework'),
										'subtitle' => esc_html__('Show/Hide "Logout" on navigation', 'civi-framework'),
										'desc' => '',
										'options' => array(
											'1' => esc_html__('On', 'civi-framework'),
											'0' => esc_html__('Off', 'civi-framework'),
										),
										'default' => '1'
									),
									array(
										'id' => 'image_employer_logout',
										'type' => 'image',
										'url' => true,
										'title' => esc_html__('Icon Logout', 'civi-framework'),
										'subtitle' => esc_html__('Choose icon for logout', 'civi-framework'),
										'required' => array('show_employer_logout', '!=', '0'),
									),
									$user_navigation_employer_show_servive,
									$user_navigation_employer_image_service,
								),
							),
						),
					),
					apply_filters('civi_register_user_candidate_option_top', array()),
					array(
						apply_filters(
							'civi_register_user_candidate_option_main',
							array(
								'id' => 'civi_user_option_candidate',
								'type' => 'group',
								'title' => esc_html__('Candidate Setting', 'civi-framework'),
								'fields' => array(
									array(
										'id' => 'show_candidate_payout',
										'type' => 'button_set',
										'title' => esc_html__('Show "Payout"', 'civi-framework'),
										'subtitle' => esc_html__('Show/Hide "Payout"', 'civi-framework'),
										'desc' => '',
										'options' => array(
											'1' => esc_html__('On', 'civi-framework'),
											'0' => esc_html__('Off', 'civi-framework'),
										),
										'default' => '1'
									),
									array(
										'id' => 'type_icon_candidate',
										'type' => 'select',
										'title' => esc_html__('Icon Type', 'civi-framework'),
										'default' => 'svg',
										'options' => array(
											'image' => esc_html__('Image', 'civi-framework'),
											'svg' => esc_html__('Svg', 'civi-framework')
										),
									),
									array(
										'id' => 'show_candidate_dashboard',
										'type' => 'button_set',
										'title' => esc_html__('Show "Dashboard"', 'civi-framework'),
										'subtitle' => esc_html__('Show/Hide "Dashboard" on navigation', 'civi-framework'),
										'desc' => '',
										'options' => array(
											'1' => esc_html__('On', 'civi-framework'),
											'0' => esc_html__('Off', 'civi-framework'),
										),
										'default' => '1'
									),
									array(
										'id' => 'image_candidate_dashboard',
										'type' => 'image',
										'url' => true,
										'title' => esc_html__('Icon Dashboard', 'civi-framework'),
										'subtitle' => esc_html__('Choose icon for dashboard', 'civi-framework'),
										'required' => array('show_candidate_dashboard', '!=', '0'),
									),
									array(
										'id' => 'show_candidate_profile',
										'type' => 'button_set',
										'title' => esc_html__('Show "Profile"', 'civi-framework'),
										'subtitle' => esc_html__('Show/Hide "Profile" on navigation', 'civi-framework'),
										'desc' => '',
										'options' => array(
											'1' => esc_html__('On', 'civi-framework'),
											'0' => esc_html__('Off', 'civi-framework'),
										),
										'default' => '1'
									),
									array(
										'id' => 'image_candidate_profile',
										'type' => 'image',
										'url' => true,
										'title' => esc_html__('Icon Profile', 'civi-framework'),
										'subtitle' => esc_html__('Choose icon for profile', 'civi-framework'),
										'required' => array('show_candidate_profile', '!=', '0'),
									),
									array(
										'id' => 'show_my_jobs',
										'type' => 'button_set',
										'title' => esc_html__('Show "My Jobs"', 'civi-framework'),
										'subtitle' => esc_html__('Show/Hide "My Jobs" on navigation', 'civi-framework'),
										'desc' => '',
										'options' => array(
											'1' => esc_html__('On', 'civi-framework'),
											'0' => esc_html__('Off', 'civi-framework'),
										),
										'default' => '1'
									),
									array(
										'id' => 'image_my_jobs',
										'type' => 'image',
										'url' => true,
										'title' => esc_html__('Icon My Jobs', 'civi-framework'),
										'subtitle' => esc_html__('Choose icon for My Jobs', 'civi-framework'),
										'required' => array('show_my_jobs', '!=', '0'),
									),
									array(
										'id' => 'show_candidate_user_package',
										'type' => 'button_set',
										'title' => esc_html__('Show "Package"', 'civi-framework'),
										'subtitle' => esc_html__('Show/Hide "Package" on navigation', 'civi-framework'),
										'desc' => '',
										'options' => array(
											'1' => esc_html__('On', 'civi-framework'),
											'0' => esc_html__('Off', 'civi-framework'),
										),
										'default' => '1'
									),
									array(
										'id' => 'image_candidate_user_package',
										'type' => 'image',
										'url' => true,
										'title' => esc_html__('Icon User Package', 'civi-framework'),
										'subtitle' => esc_html__('Choose icon for User Package', 'civi-framework'),
										'required' => array('show_candidate_user_package', '!=', '0'),
									),
									array(
										'id' => 'show_candidate_reviews',
										'type' => 'button_set',
										'title' => esc_html__('Show "My Reviews"', 'civi-framework'),
										'subtitle' => esc_html__('Show/Hide "My Reviews" on navigation', 'civi-framework'),
										'desc' => '',
										'options' => array(
											'1' => esc_html__('On', 'civi-framework'),
											'0' => esc_html__('Off', 'civi-framework'),
										),
										'default' => '1'
									),
									array(
										'id' => 'image_candidate_reviews',
										'type' => 'image',
										'url' => true,
										'title' => esc_html__('Icon My Reviews', 'civi-framework'),
										'subtitle' => esc_html__('Choose icon for My Reviews', 'civi-framework'),
										'required' => array('show_candidate_reviews', '!=', '0'),
									),
									array(
										'id' => 'show_candidate_company',
										'type' => 'button_set',
										'title' => esc_html__('Show "My Following"', 'civi-framework'),
										'subtitle' => esc_html__('Show/Hide "My Following" on navigation', 'civi-framework'),
										'desc' => '',
										'options' => array(
											'1' => esc_html__('On', 'civi-framework'),
											'0' => esc_html__('Off', 'civi-framework'),
										),
										'default' => '1'
									),
									array(
										'id' => 'image_candidate_company',
										'type' => 'image',
										'url' => true,
										'title' => esc_html__('Icon My Following', 'civi-framework'),
										'subtitle' => esc_html__('Choose icon for My Following', 'civi-framework'),
										'required' => array('show_candidate_company', '!=', '0'),
									),
									array(
										'id' => 'show_candidate_messages',
										'type' => 'button_set',
										'title' => esc_html__('Show "Messages"', 'civi-framework'),
										'subtitle' => esc_html__('Show/Hide "Messages" on navigation', 'civi-framework'),
										'desc' => '',
										'options' => array(
											'1' => esc_html__('On', 'civi-framework'),
											'0' => esc_html__('Off', 'civi-framework'),
										),
										'default' => '1'
									),
									array(
										'id' => 'image_candidate_messages',
										'type' => 'image',
										'url' => true,
										'title' => esc_html__('Icon Messages', 'civi-framework'),
										'subtitle' => esc_html__('Choose icon for messages', 'civi-framework'),
										'required' => array('show_candidate_messages', '!=', '0'),
									),
									array(
										'id' => 'show_candidate_meetings',
										'type' => 'button_set',
										'title' => esc_html__('Show "Meetings"', 'civi-framework'),
										'subtitle' => esc_html__('Show/Hide "Meetings" on navigation', 'civi-framework'),
										'desc' => '',
										'options' => array(
											'1' => esc_html__('On', 'civi-framework'),
											'0' => esc_html__('Off', 'civi-framework'),
										),
										'default' => '1'
									),
									array(
										'id' => 'image_candidate_meetings',
										'type' => 'image',
										'url' => true,
										'title' => esc_html__('Icon Meetings', 'civi-framework'),
										'subtitle' => esc_html__('Choose icon for meetings', 'civi-framework'),
										'required' => array('show_candidate_meetings', '!=', '0'),
									),
									array(
										'id' => 'show_candidate_settings',
										'type' => 'button_set',
										'title' => esc_html__('Show "Settings"', 'civi-framework'),
										'subtitle' => esc_html__('Show/Hide "Settings" on navigation', 'civi-framework'),
										'desc' => '',
										'options' => array(
											'1' => esc_html__('On', 'civi-framework'),
											'0' => esc_html__('Off', 'civi-framework'),
										),
										'default' => '1'
									),
									array(
										'id' => 'image_candidate_settings',
										'type' => 'image',
										'url' => true,
										'title' => esc_html__('Icon Settings', 'civi-framework'),
										'subtitle' => esc_html__('Choose icon for settings', 'civi-framework'),
										'required' => array('show_candidate_settings', '!=', '0'),
									),
									array(
										'id' => 'show_candidate_logout',
										'type' => 'button_set',
										'title' => esc_html__('Show "Logout"', 'civi-framework'),
										'subtitle' => esc_html__('Show/Hide "Logout" on navigation', 'civi-framework'),
										'desc' => '',
										'options' => array(
											'1' => esc_html__('On', 'civi-framework'),
											'0' => esc_html__('Off', 'civi-framework'),
										),
										'default' => '1'
									),
									array(
										'id' => 'image_candidate_logout',
										'type' => 'image',
										'url' => true,
										'title' => esc_html__('Icon Logout', 'civi-framework'),
										'subtitle' => esc_html__('Choose icon for logout', 'civi-framework'),
										'required' => array('show_candidate_logout', '!=', '0'),
									),
									$user_navigation_candidate_show_servive,
									$user_navigation_candidate_image_service,
								),
							),
						),
					),
					apply_filters('civi_register_user_option_bottom', array())
				)
			));
		}

		/**
		 * Jobs page option
		 * @return mixed
		 */
		private function jobs_option()
		{
			return
				apply_filters('civi_register_option_listing_setting_page', array(
					'id' => 'civi_listing_setting_page_option',
					'title' => esc_html__('Jobs Option', 'civi-framework'),
					'icon' => 'dashicons-list-view',
					'fields' => array(
						//General Jobs
						apply_filters('civi_register_option_genera_jobs_page_top', array()),
						apply_filters('civi_register_option_genera_jobs_page_main', array(
							'id' => 'civi_main_group',
							'type' => 'group',
							'title' => esc_html__('General Jobs', 'civi-framework'),
							'fields' => array(
								array(
									'id' => 'enable_extend_expired_jobs',
									'type' => 'button_set',
									'title' => esc_html__('Extend Expired Jobs', 'civi-framework'),
									'subtitle' => esc_html__('Enable/Disable extend expired jobs', 'civi-framework'),
									'desc' => '',
									'options' => array(
										'1' => esc_html__('On', 'civi-framework'),
										'0' => esc_html__('Off', 'civi-framework'),
									),
									'default' => '0'
								),
								array(
									'id' => 'enable_apply_login',
									'type' => 'button_set',
									'title' => esc_html__('Enable Apply Job Login', 'civi-framework'),
									'subtitle' => esc_html__('Only works in apply (gmail,phone,external)', 'civi-framework'),
									'desc' => '',
									'options' => array(
										'1' => esc_html__('On', 'civi-framework'),
										'0' => esc_html__('Off', 'civi-framework'),
									),
									'default' => '0'
								),
								array(
									'id' => "enable_job_alerts",
									'type' => 'button_set',
									'title' => esc_html__('Enable Job Alerts', 'civi-framework'),
									'subtitle' => esc_html__('Enable/Disable Job Alerts', 'civi-framework'),
									'options' => array(
										'1' => esc_html__('On', 'civi-framework'),
										'0' => esc_html__('Off', 'civi-framework'),
									),
									'default' => '0',
								),
								array(
									'id' => 'civi_job_alerts_page_id',
									'title' => esc_html__('Job Alerts', 'civi-framework'),
									'type' => 'select',
									'data' => 'page',
									'data_args' => array(
										'numberposts' => -1,
									),
									'subtitle' => esc_html__('Select page for job alerts', 'civi-framework'),
									'required' => array("enable_job_alerts", '=', '1'),
								),
								array(
									'id' => "enable_status_urgent",
									'type' => 'button_set',
									'title' => esc_html__('Enable Status Urgent', 'civi-framework'),
									'subtitle' => esc_html__('Enable/Disable Status Urgent', 'civi-framework'),
									'options' => array(
										'1' => esc_html__('On', 'civi-framework'),
										'0' => esc_html__('Off', 'civi-framework'),
									),
									'default' => '1',
								),
								array(
									'id' => "number_status_urgent",
									'title' => esc_html__('Number Status Urgent', 'civi-framework'),
									'subtitle' => esc_html__('Enter number of days status urgent', 'civi-framework'),
									'default' => '3',
									'type' => 'text',
									'required' => array("enable_status_urgent", '=', '1'),
								),
								array(
									'id' => "jobs_number_days",
									'title' => esc_html__('Number of days to apply', 'civi-framework'),
									'subtitle' => esc_html__('Enter number of days to apply', 'civi-framework'),
									'default' => '30',
									'type' => 'text',
								),
							),
						)),
						apply_filters('civi_register_option_genera_jobs_page_bottom', array()),

						//Archive Jobs
						apply_filters('civi_register_option_archive_jobs_page_top', array()),
						apply_filters('civi_register_option_archive_jobs_page_main', array(
							'id' => 'civi_main_group',
							'type' => 'group',
							'title' => esc_html__('Archive Jobs', 'civi-framework'),
							'fields' => array(
								array(
									'id' => 'archive_jobs_layout',
									'type' => 'select',
									'title' => esc_html__('Jobs Layout', 'civi-framework'),
									'default' => 'layout-list',
									'options' => array(
										'layout-list' => esc_html__('Layout List', 'civi-framework'),
										'layout-grid' => esc_html__('Layout Grid', 'civi-framework'),
										'layout-full' => esc_html__('Layout Full', 'civi-framework')
									)
								),
								array(
									'id' => 'archive_jobs_items_amount',
									'type' => 'text',
									'title' => esc_html__('Items Amount', 'civi-framework'),
									'default' => 12,
									'pattern' => '[0-9]*',
								),
								array(
									'id' => 'jobs_pagination_type',
									'type' => 'select',
									'title' => esc_html__('Type Pagination', 'civi-framework'),
									'default' => 'number',
									'options' => array(
										'number' => esc_html__('Number', 'civi-framework'),
										'loadmore' => esc_html__('Load More', 'civi-framework')
									)
								),
								array(
									'id' => "jobs_filter_sidebar_option",
									'title' => esc_html__('Postion Filter ', 'civi-framework'),
									'type' => 'select',
									'options' => array(
										'filter-left' => 'Filter Left',
										'filter-right' => 'Filter Right',
										'filter-canvas' => 'Filter Canvas',
									),
									'default' => 'left',
									'required' => array(
										array("enable_jobs_show_map", '=', '0'),
										array("archive_jobs_layout", '!=', 'layout-full'),
									),
								),

								array(
									'id' => 'enable_jobs_filter_top',
									'type' => 'button_set',
									'title' => esc_html__('Show Top Filter', 'civi-framework'),
									'subtitle' => esc_html__('Show/Hidden Top Filter', 'civi-framework'),
									'desc' => '',
									'options' => array(
										'1' => esc_html__('On', 'civi-framework'),
										'0' => esc_html__('Off', 'civi-framework'),
									),
									'default' => '1',
								),
								array(
									'id' => 'enable_jobs_show_map',
									'type' => 'button_set',
									'title' => esc_html__('Show Maps', 'civi-framework'),
									'subtitle' => esc_html__('Show/Hidden Maps', 'civi-framework'),
									'desc' => '',
									'options' => array(
										'1' => esc_html__('On', 'civi-framework'),
										'0' => esc_html__('Off', 'civi-framework'),
									),
									'default' => '0',
									'required' => array(
										array("archive_jobs_layout", '!=', 'layout-full'),
									),
								),
								array(
									'id' => "jobs_map_postion",
									'title' => esc_html__('Postion Maps ', 'civi-framework'),
									'type' => 'select',
									'options' => array(
										'map-right' => 'Map Right',
										'map-top' => 'Map Top',
									),
									'default' => 'right',
									'required' => array(
										array("enable_jobs_show_map", '=', '1'),
										array("archive_jobs_layout", '!=', 'layout-full'),
									),
								),
								array(
									'id' => 'enable_jobs_show_des',
									'type' => 'button_set',
									'title' => esc_html__('Show Description', 'civi-framework'),
									'subtitle' => esc_html__('Show/Hidden Description', 'civi-framework'),
									'desc' => '',
									'options' => array(
										'1' => esc_html__('On', 'civi-framework'),
										'0' => esc_html__('Off', 'civi-framework'),
									),
									'default' => '0',
								),
								array(
									'id' => 'enable_jobs_show_expires',
									'type' => 'button_set',
									'title' => esc_html__('Show Jobs Expires', 'civi-framework'),
									'subtitle' => esc_html__('Show/Hidden Jobs Expires', 'civi-framework'),
									'desc' => '',
									'options' => array(
										'1' => esc_html__('On', 'civi-framework'),
										'0' => esc_html__('Off', 'civi-framework'),
									),
									'default' => '0',
								),
							),
						)),
						apply_filters('civi_register_option_archive_jobs_page_bottom', array()),

						//Single Jobs
						apply_filters('civi_register_option_single_jobs_page_top', array()),
						apply_filters('civi_register_option_single_jobs_page_main', array(
							'id' => 'jobs_page_main_group',
							'type' => 'group',
							'title' => esc_html__('Single Jobs', 'civi-framework'),
							'fields' => array(
								array(
									'id' => "enable_google_job_schema",
									'type' => 'button_set',
									'title' => esc_html__('Enable Google Job Schema', 'civi-framework'),
									'subtitle' => esc_html__('Enable/Disable Google Job Schema', 'civi-framework'),
									'options' => array(
										'1' => esc_html__('On', 'civi-framework'),
										'0' => esc_html__('Off', 'civi-framework'),
									),
									'default' => '0',
								),
								array(
									'id' => "enable_job_login_to_view",
									'type' => 'button_set',
									'title' => esc_html__('Enable Job Login To View', 'civi-framework'),
									'subtitle' => esc_html__('Enable/Disable Job Login To View', 'civi-framework'),
									'options' => array(
										'1' => esc_html__('On', 'civi-framework'),
										'0' => esc_html__('Off', 'civi-framework'),
									),
									'default' => '0',
								),
								array(
									'id' => 'enable_sticky_sidebar_type',
									'type' => 'button_set',
									'title' => esc_html__('Enable Sticky Sidebar', 'civi-framework'),
									'subtitle' => esc_html__('Enable/Disable sticky sidebar when scroll', 'civi-framework'),
									'desc' => '',
									'options' => array(
										'1' => esc_html__('On', 'civi-framework'),
										'0' => esc_html__('Off', 'civi-framework'),
									),
									'default' => '1',
								),
								array(
									'id' => 'enable_single_jobs_salary',
									'type' => 'button_set',
									'title' => esc_html__('Enable Jobs Salary', 'civi-framework'),
									'subtitle' => esc_html__('Enable/Disable Jobs Salary', 'civi-framework'),
									'desc' => '',
									'options' => array(
										'1' => esc_html__('On', 'civi-framework'),
										'0' => esc_html__('Off', 'civi-framework'),
									),
									'default' => '1',
								),
								array(
									'id' => 'enable_single_jobs_related',
									'type' => 'button_set',
									'title' => esc_html__('Enable Jobs Related', 'civi-framework'),
									'subtitle' => esc_html__('Enable/Disable Jobs Related', 'civi-framework'),
									'desc' => '',
									'options' => array(
										'1' => esc_html__('On', 'civi-framework'),
										'0' => esc_html__('Off', 'civi-framework'),
									),
									'default' => '1',
								),

								array(
									'id' => 'enable_toggle_show_more_apply',
									'type' => 'button_set',
									'title' => esc_html__('Enable Toggle Show More Apply', 'civi-framework'),
									'subtitle' => esc_html__('Enable/Disable Toggle Show More (Below the mobile device)', 'civi-framework'),
									'desc' => '',
									'options' => array(
										'1' => esc_html__('On', 'civi-framework'),
										'0' => esc_html__('Off', 'civi-framework'),
									),
									'default' => '1',
								),

								array(
									'id' => "enable_date_posted",
									'type' => 'button_set',
									'title' => esc_html__('Enable Date Posted', 'civi-framework'),
									'subtitle' => esc_html__('Enable/Disable Date Posted', 'civi-framework'),
									'options' => array(
										'1' => esc_html__('On', 'civi-framework'),
										'0' => esc_html__('Off', 'civi-framework'),
									),
									'default' => '1',
								),
								array(
									'id' => "enable_closing_date",
									'type' => 'button_set',
									'title' => esc_html__('Enable Closing Date', 'civi-framework'),
									'subtitle' => esc_html__('Enable/Disable Closing Date', 'civi-framework'),
									'options' => array(
										'1' => esc_html__('On', 'civi-framework'),
										'0' => esc_html__('Off', 'civi-framework'),
									),
									'default' => '1',
								),

								array(
									'id' => 'enable_single_jobs_apply',
									'type' => 'button_set',
									'title' => esc_html__('Enable Jobs Apply', 'civi-framework'),
									'subtitle' => esc_html__('Enable/Disable Apply', 'civi-framework'),
									'desc' => '',
									'options' => array(
										'1' => esc_html__('On', 'civi-framework'),
										'0' => esc_html__('Off', 'civi-framework'),
									),
									'default' => '1',
								),

								array(
									'id' => 'enable_required_upload_cv',
									'type' => 'button_set',
									'title' => esc_html__('Enable Required Upload Cv (*)', 'civi-framework'),
									'subtitle' => esc_html__('Enable/Disable Required Upload Cv', 'civi-framework'),
									'desc' => '',
									'options' => array(
										'1' => esc_html__('On', 'civi-framework'),
										'0' => esc_html__('Off', 'civi-framework'),
									),
									'default' => '1',
									'required' => array("enable_single_jobs_apply", '=', '1'),
								),

								array(
									'id' => 'show_field_jobs_apply',
									'type' => 'checkbox_list',
									'title' => esc_html__('Show Field Form Apply', 'civi-framework'),
									'subtitle' => esc_html__('Choose the field you want to display in the Gmail application form', 'civi-framework'),
									'options' => array(
										'position' => esc_html__('Current Position', 'civi-framework'),
										'categories' => esc_html__('Categories', 'civi-framework'),
										'date' => esc_html__('Date of Birth', 'civi-framework'),
										'age' => esc_html__('Age', 'civi-framework'),
										'gender' => esc_html__('Gender', 'civi-framework'),
										'languages' => esc_html__('Languages', 'civi-framework'),
										'qualification' => esc_html__('Qualification', 'civi-framework'),
										'experience' => esc_html__('Years of Experience', 'civi-framework'),
									),
									'value_inline' => false,
									'default' => array(),
									'required' => array("enable_single_jobs_apply", '=', '1'),
								),

								array(
									'id' => 'single_jobs_image_size',
									'type' => 'text',
									'title' => esc_html__('Image Size', 'civi-framework'),
									'subtitle' => esc_html__('Enter image size. Alternatively enter size in pixels (Example : 770x250 (Not Include Unit, Space))', 'civi-framework'),
									'default' => '770x250',
								),

								array(
									'id' => 'jobs_details_order',
									'type' => 'sortable',
									'title' => esc_html__('Jobs Content Order', 'civi-framework'),
									'desc' => esc_html__('Drag and drop layout manager, to quickly organize your jobs content details.', 'civi-framework'),
									'options' => array(
										'enable_sp_head' => esc_html__('Head', 'civi-framework'),
										'enable_sp_insights' => esc_html__('Insights', 'civi-framework'),
										'enable_sp_description' => esc_html__('Description', 'civi-framework'),
										'enable_sp_skills' => esc_html__('Skills', 'civi-framework'),
										'enable_sp_gallery' => esc_html__('Gallery', 'civi-framework'),
										'enable_sp_video' => esc_html__('Video', 'civi-framework'),
										'enable_sp_map' => esc_html__('Map', 'civi-framework'),
									),
									'default' => array('enable_sp_skills', 'enable_sp_head', 'enable_sp_description', 'enable_sp_video', 'enable_sp_map', 'enable_sp_insights')
								),
								array(
									'id' => 'jobs_details_sidebar_order',
									'type' => 'sortable',
									'title' => esc_html__('Jobs Sidebar Order', 'civi-framework'),
									'desc' => esc_html__('Drag and drop layout manager, to quickly organize your jobs sidebar order.', 'civi-framework'),
									'options' => array(
										'enable_sidebar_sp_apply' => esc_html__('Apply', 'civi-framework'),
										'enable_sidebar_sp_insights' => esc_html__('Insights', 'civi-framework'),
										'enable_sidebar_sp_company' => esc_html__('Company', 'civi-framework'),
									),
									'default' => array('enable_sidebar_sp_apply', 'enable_sidebar_sp_insights', 'enable_sidebar_sp_company')
								),

								array(
									'id' => 'social_sharing',
									'type' => 'checkbox_list',
									'title' => esc_html__('Show Social Sharing', 'civi-framework'),
									'subtitle' => esc_html__('Choose which fields you want to show on social sharing?', 'civi-framework'),
									'options' => array(
										'facebook' => esc_html__('Facebook', 'civi-framework'),
										'twitter' => esc_html__('Twitter', 'civi-framework'),
										'linkedin' => esc_html__('Linkedin', 'civi-framework'),
										'tumblr' => esc_html__('Tumblr', 'civi-framework'),
										'pinterest' => esc_html__('Pinterest', 'civi-framework'),
										'whatapp' => esc_html__('Whatapp', 'civi-framework'),
									),
									'value_inline' => false,
									'default' => array('facebook', 'twitter', 'linkedin', 'tumblr', 'pinterest', 'whatapp')
								),
							),
						)),
						apply_filters('civi_register_option_single_jobs_page_bottom', array()),

						//Jobs Submit
						apply_filters('civi_jobs_option_jobs_submit_top', array()),
						apply_filters('civi_jobs_option_jobs_submit_main', array(
							'id' => 'jobs_submit_group',
							'title' => esc_html__('Jobs Submit', 'civi-framework'),
							'type' => 'group',
							'fields' => array(
								array(
									'id' => 'auto_publish',
									'title' => esc_html__('Automatically publish the submitted jobs?', 'civi-framework'),
									'type' => 'button_set',
									'options' => array(
										'1' => esc_html__('Yes', 'civi-framework'),
										'0' => esc_html__('No', 'civi-framework'),
									),
									'default' => '1',
								),

								array(
									'id' => 'auto_publish_edited',
									'title' => esc_html__('Automatically publish the edited jobs?', 'civi-framework'),
									'type' => 'button_set',
									'options' => array(
										'1' => esc_html__('Yes', 'civi-framework'),
										'0' => esc_html__('No', 'civi-framework'),
									),
									'default' => '1',
								),
								array(
									'id' => 'enable_add_new_job_location',
									'title' => esc_html__('Enable Add New Location', 'civi-framework'),
									'type' => 'button_set',
									'options' => array(
										'1' => esc_html__('Yes', 'civi-framework'),
										'0' => esc_html__('No', 'civi-framework'),
									),
									'default' => '0',
								),
								array(
									'id' => 'enable_add_new_job_categories',
									'title' => esc_html__('Enable Add New Categories', 'civi-framework'),
									'type' => 'button_set',
									'options' => array(
										'1' => esc_html__('Yes', 'civi-framework'),
										'0' => esc_html__('No', 'civi-framework'),
									),
									'default' => '0',
								),
								array(
									'id' => 'section_jobs_hide_group_fields',
									'title' => esc_html__('Hide Submit Group Form Fields', 'civi-framework'),
									'type' => 'group',

									'fields' => array(
										array(
											'id' => 'hide_jobs_group_fields',
											'type' => 'checkbox_list',
											'title' => esc_html__('Hide Submit Form Groups', 'civi-framework'),
											'subtitle' => esc_html__('Choose which fields you want to hide on group field jobs?', 'civi-framework'),
											'options' => array(
												'general' => esc_html__('General', 'civi-framework'),
												'salary' => esc_html__('Salary', 'civi-framework'),
												'apply' => esc_html__('Apply', 'civi-framework'),
												'social' => esc_html__('Social network', 'civi-framework'),
												'company' => esc_html__('Company', 'civi-framework'),
												'location' => esc_html__('Location', 'civi-framework'),
												'thumbnail' => esc_html__('Cover Image', 'civi-framework'),
												'gallery' => esc_html__('Gallery', 'civi-framework'),
												'video' => esc_html__('Video', 'civi-framework'),
											),
											'value_inline' => false,
											'default' => array()
										),
										array(
											'id' => 'hide_jobs_fields',
											'type' => 'checkbox_list',
											'title' => esc_html__('Hide Submit Form Fields', 'civi-framework'),
											'subtitle' => esc_html__('Choose which fields you want to hide on field jobs?', 'civi-framework'),
											'options' => array(
												'fields_jobs_name' => esc_html__('Name', 'civi-framework'),
												'fields_jobs_category' => esc_html__('Category', 'civi-framework'),
												'fields_jobs_type' => esc_html__('Type', 'civi-framework'),
												'fields_jobs_skills' => esc_html__('Skills', 'civi-framework'),
												'fields_jobs_des' => esc_html__('Description', 'civi-framework'),
												'fields_jobs_career' => esc_html__('Career', 'civi-framework'),
												'fields_jobs_experience' => esc_html__('Experience', 'civi-framework'),
												'fields_jobs_qualification' => esc_html__('Qualification', 'civi-framework'),
												'fields_jobs_quantity' => esc_html__('Quantity', 'civi-framework'),
												'fields_jobs_gender' => esc_html__('Gender', 'civi-framework'),
												'fields_closing_days' => esc_html__('Closing', 'civi-framework'),
												'fields_jobs_location' => esc_html__('Location', 'civi-framework'),
												'fields_map' => esc_html__('Maps', 'civi-framework'),
											),
											'value_inline' => false,
											'default' => array()
										),
										array(
											'id' => 'hide_jobs_apply_fields',
											'type' => 'checkbox_list',
											'title' => esc_html__('Hide Job apply type', 'civi-framework'),
											'subtitle' => esc_html__('Choose which fields you want to hide on field job apply type?', 'civi-framework'),
											'options' => array(
												'fields_jobs_apply_email' => esc_html__('By Email', 'civi-framework'),
												'fields_jobs_apply_external' => esc_html__('External Apply', 'civi-framework'),
												'fields_jobs_apply_internal' => esc_html__('Internal Apply', 'civi-framework'),
												'fields_jobs_call_to_apply' => esc_html__('Call To Apply', 'civi-framework'),
											),
											'value_inline' => false,
											'default' => array()
										),
										array(
											'id' => 'hide_jobs_salary_fields',
											'type' => 'checkbox_list',
											'title' => esc_html__('Hide Job Salary', 'civi-framework'),
											'subtitle' => esc_html__('Choose which fields you want to hide on field job salary?', 'civi-framework'),
											'options' => array(
												'fields_jobs_salary_range' => esc_html__('Range', 'civi-framework'),
												'fields_jobs_salary_starting' => esc_html__('Starting Amount', 'civi-framework'),
												'fields_jobs_salary_maximum' => esc_html__('Maximum Amount', 'civi-framework'),
												'fields_jobs_salary_negotiable' => esc_html__('Negotiable Price', 'civi-framework'),
											),
											'value_inline' => false,
											'default' => array()
										),
									)
								),
							)
						)),
						apply_filters('civi_jobs_option_jobs_submit_bottom', array()),

						//Jobs Search
						apply_filters('civi_register_option_search_page_top', array()),
						apply_filters('civi_register_option_search_page_main', array(
							'id' => 'jobs_search_group',
							'title' => esc_html__('Search Jobs', 'civi-framework'),
							'type' => 'group',
							'fields' => array(
								array(
									'id' => 'enable_jobs_search_bg',
									'type' => 'button_set',
									'title' => esc_html__('Enable Background', 'civi-framework'),
									'subtitle' => esc_html__('Show/Hidden Background', 'civi-framework'),
									'desc' => '',
									'options' => array(
										'1' => esc_html__('On', 'civi-framework'),
										'0' => esc_html__('Off', 'civi-framework'),
									),
									'default' => '0',
								),
								array(
									'id' => 'enable_jobs_search_location_top',
									'type' => 'button_set',
									'title' => esc_html__('Enable Search City/Town (Top)', 'civi-framework'),
									'subtitle' => esc_html__('Show/Hidden Search City/Town', 'civi-framework'),
									'desc' => '',
									'options' => array(
										'1' => esc_html__('On', 'civi-framework'),
										'0' => esc_html__('Off', 'civi-framework'),
									),
									'default' => '0',
								),
								array(
									'id' => 'enable_jobs_search_location_radius',
									'type' => 'button_set',
									'title' => esc_html__('Enable Search location radius', 'civi-framework'),
									'subtitle' => esc_html__('Show/Hidden search location radius', 'civi-framework'),
									'desc' => '',
									'options' => array(
										'1' => esc_html__('On', 'civi-framework'),
										'0' => esc_html__('Off', 'civi-framework'),
									),
									'default' => '1',
								),
								array(
									'id' => "jobs_search_color",
									'title' => esc_html__('Color', 'civi-framework'),
									'type' => 'color',
									'col' => '12',
									'default' => '',
									'required' => array(
										array("enable_jobs_search_bg", '=', '1'),
									),
								),
								array(
									'id' => "jobs_search_image",
									'title' => esc_html__('Image', 'civi-framework'),
									'type' => 'image',
									'default' => '',
									'col' => '12',
									'required' => array(
										array("enable_jobs_search_bg", '=', '1'),
									),
								),
								array(
									'id' => 'jobs_search_field',
									'title' => esc_html__('Search Fields', 'civi-framework'),
									'type' => 'sorter',
									'default' => array(
										'top' => array(
											'jobs-categories' => esc_html__('Categories', 'civi-framework'),
										),
										'sidebar' => array(
											'jobs-type' => esc_html__('Type', 'civi-framework'),
											'jobs-salary' => esc_html__('Salary', 'civi-framework'),
											'jobs-career' => esc_html__('Career', 'civi-framework'),
											'jobs-experience' => esc_html__('Experience', 'civi-framework'),
										),
										'disable' => array(
											'jobs-skills' => esc_html__('Skills', 'civi-framework'),
											'jobs-location' => esc_html__('Locations', 'civi-framework'),
											'jobs-gender' => esc_html__('Gender', 'civi-framework'),
											'jobs-qualification' => esc_html__('Qualification', 'civi-framework'),
										)
									),
								),
								array(
									'id' => 'jobs_search_fields_jobs-categories',
									'title' => esc_html__('Icon Categories', 'civi-framework'),
									'type' => 'text',
									'desc' => esc_html__('Please enter the html code of the "fontawesome" icon to display it', 'civi-framework'),
								),
								array(
									'id' => 'jobs_search_fields_jobs-type',
									'title' => esc_html__('Icon Type', 'civi-framework'),
									'type' => 'text',
									'desc' => esc_html__('Please enter the html code of the "fontawesome" icon to display it', 'civi-framework'),
								),
								array(
									'id' => 'jobs_search_fields_jobs-career',
									'title' => esc_html__('Icon Career', 'civi-framework'),
									'type' => 'text',
									'desc' => esc_html__('Please enter the html code of the "fontawesome" icon to display it', 'civi-framework'),
								),
								array(
									'id' => 'jobs_search_fields_jobs-experience',
									'title' => esc_html__('Icon Experience', 'civi-framework'),
									'type' => 'text',
									'desc' => esc_html__('Please enter the html code of the "fontawesome" icon to display it', 'civi-framework'),
								),
								array(
									'id' => 'jobs_search_fields_jobs-gender',
									'title' => esc_html__('Icon Gender', 'civi-framework'),
									'type' => 'text',
									'desc' => esc_html__('Please enter the html code of the "fontawesome" icon to display it', 'civi-framework'),
								),
								array(
									'id' => 'jobs_search_fields_location',
									'title' => esc_html__('Icon City', 'civi-framework'),
									'type' => 'text',
									'desc' => esc_html__('Please enter the html code of the "fontawesome" icon to display it', 'civi-framework'),
								),
								array(
									'id' => 'jobs_search_fields_state',
									'title' => esc_html__('Icon State', 'civi-framework'),
									'type' => 'text',
									'desc' => esc_html__('Please enter the html code of the "fontawesome" icon to display it', 'civi-framework'),
								),
								array(
									'id' => 'jobs_search_fields_country',
									'title' => esc_html__('Icon Country', 'civi-framework'),
									'type' => 'text',
									'desc' => esc_html__('Please enter the html code of the "fontawesome" icon to display it', 'civi-framework'),
								),
							)
						)),
						apply_filters('civi_register_option_search_page_bottom', array()),
					),
				));
		}


		/**
		 * Company page option
		 * @return mixed
		 */
		private function company_option()
		{
			return
				apply_filters('civi_register_company_option_listing_setting_page', array(
					'id' => 'civi_listing_company_setting_page_option',
					'title' => esc_html__('Companies Option', 'civi-framework'),
					'icon' => 'dashicons-awards',
					'fields' => array(
						//Archive Company
						apply_filters('civi_register_option_archive_company_page_top', array()),
						apply_filters('civi_register_option_archive_company_page_main', array(
							'id' => 'civi_main_group',
							'type' => 'group',
							'title' => esc_html__('Archive Company', 'civi-framework'),
							'fields' => array(
								array(
									'id' => 'archive_company_layout',
									'type' => 'select',
									'title' => esc_html__('Company Layout', 'civi-framework'),
									'default' => 'layout-list',
									'options' => array(
										'layout-list' => esc_html__('Layout List', 'civi-framework'),
										'layout-grid' => esc_html__('Layout Grid', 'civi-framework'),
									)
								),
								array(
									'id' => 'archive_company_thumbnail_size',
									'type' => 'text',
									'title' => esc_html__('Thumbnail Size', 'civi-framework'),
									'subtitle' => esc_html__('Enter image size. Alternatively enter size in pixels (Example : 330x180 (Not Include Unit, Space))', 'civi-framework'),
									'default' => '576x327',
								),
								array(
									'id' => 'archive_company_items_amount',
									'type' => 'text',
									'title' => esc_html__('Items Amount', 'civi-framework'),
									'default' => 12,
									'pattern' => '[0-9]*',
								),
								array(
									'id' => 'company_pagination_type',
									'type' => 'select',
									'title' => esc_html__('Type Pagination', 'civi-framework'),
									'default' => 'number',
									'options' => array(
										'number' => esc_html__('Number', 'civi-framework'),
										'loadmore' => esc_html__('Load More', 'civi-framework')
									)
								),
								array(
									'id' => "company_filter_sidebar_option",
									'title' => esc_html__('Postion Filter ', 'civi-framework'),
									'type' => 'select',
									'options' => array(
										'filter-left' => 'Filter Left',
										'filter-right' => 'Filter Right',
									),
									'default' => 'left',
								),
								array(
									'id' => 'enable_company_filter_top',
									'type' => 'button_set',
									'title' => esc_html__('Show Top Filter', 'civi-framework'),
									'subtitle' => esc_html__('Show/Hidden Top Filter', 'civi-framework'),
									'desc' => '',
									'options' => array(
										'1' => esc_html__('On', 'civi-framework'),
										'0' => esc_html__('Off', 'civi-framework'),
									),
									'default' => '1',
								),
								array(
									'id' => 'enable_company_show_map',
									'type' => 'button_set',
									'title' => esc_html__('Show Maps', 'civi-framework'),
									'subtitle' => esc_html__('Show/Hidden Maps', 'civi-framework'),
									'desc' => '',
									'options' => array(
										'1' => esc_html__('On', 'civi-framework'),
										'0' => esc_html__('Off', 'civi-framework'),
									),
									'default' => '0',
								),
								array(
									'id' => "company_map_postion",
									'title' => esc_html__('Postion Maps ', 'civi-framework'),
									'type' => 'select',
									'options' => array(
										'map-right' => 'Map Right',
										'map-top' => 'Map Top',
									),
									'default' => 'right',
									'required' => array(
										array("enable_company_show_map", '=', '1'),
									),
								),
								array(
									'id' => 'enable_company_show_des',
									'type' => 'button_set',
									'title' => esc_html__('Show Description', 'civi-framework'),
									'subtitle' => esc_html__('Show/Hidden Description', 'civi-framework'),
									'desc' => '',
									'options' => array(
										'1' => esc_html__('On', 'civi-framework'),
										'0' => esc_html__('Off', 'civi-framework'),
									),
									'default' => '1',
								),
							),
						)),
						apply_filters('civi_register_option_archive_company_page_bottom', array()),

						//Single Company
						apply_filters('civi_register_option_single_company_page_top', array()),
						apply_filters('civi_register_option_single_company_page_main', array(
							'id' => 'company_page_main_group',
							'type' => 'group',
							'title' => esc_html__('Single Company', 'civi-framework'),
							'fields' => array(
								array(
									'id' => "enable_company_login_to_view",
									'type' => 'button_set',
									'title' => esc_html__('Enable Company Login To View', 'civi-framework'),
									'subtitle' => esc_html__('Enable/Disable Company Login To View', 'civi-framework'),
									'options' => array(
										'1' => esc_html__('On', 'civi-framework'),
										'0' => esc_html__('Off', 'civi-framework'),
									),
									'default' => '0',
								),
								array(
									'id' => 'enable_sticky_company_sidebar_type',
									'type' => 'button_set',
									'title' => esc_html__('Enable Sticky Sidebar', 'civi-framework'),
									'subtitle' => esc_html__('Enable/Disable sticky sidebar when scroll', 'civi-framework'),
									'desc' => '',
									'options' => array(
										'1' => esc_html__('On', 'civi-framework'),
										'0' => esc_html__('Off', 'civi-framework'),
									),
									'default' => '1',
								),
								array(
									'id' => 'enable_single_company_related',
									'type' => 'button_set',
									'title' => esc_html__('Enable Company Related', 'civi-framework'),
									'subtitle' => esc_html__('Enable/Disable Company Related', 'civi-framework'),
									'desc' => '',
									'options' => array(
										'1' => esc_html__('On', 'civi-framework'),
										'0' => esc_html__('Off', 'civi-framework'),
									),
									'default' => '1',
								),

								array(
									'id' => 'enable_single_company_review',
									'type' => 'button_set',
									'title' => esc_html__('Enable Company Review', 'civi-framework'),
									'subtitle' => esc_html__('Enable/Disable Company Review', 'civi-framework'),
									'desc' => '',
									'options' => array(
										'1' => esc_html__('On', 'civi-framework'),
										'0' => esc_html__('Off', 'civi-framework'),
									),
									'default' => '1',
								),

								array(
									'id' => "single_company_style",
									'title' => esc_html__('Style Thumbnail Images', 'civi-framework'),
									'type' => 'select',
									'options' => array(
										'cover-img' => 'Cover Image',
										'large-cover-img' => 'Large Cover Image',
									),
								),

								array(
									'id' => 'single_company_image_size',
									'type' => 'text',
									'title' => esc_html__('Image Size', 'civi-framework'),
									'subtitle' => esc_html__('Enter image size. Alternatively enter size in pixels (Example : 330x180 (Not Include Unit, Space))', 'civi-framework'),
									'default' => '',
								),

								array(
									'id' => 'company_details_order',
									'type' => 'sortable',
									'title' => esc_html__('Company Content Order', 'civi-framework'),
									'desc' => esc_html__('Drag and drop layout manager, to quickly organize your company content details.', 'civi-framework'),
									'options' => array(
										'enable_sp_head' => esc_html__('Head', 'civi-framework'),
										'enable_sp_overview' => esc_html__('Overview', 'civi-framework'),
										'enable_sp_gallery' => esc_html__('Gallery', 'civi-framework'),
										'enable_sp_video' => esc_html__('Video', 'civi-framework'),
									),
									'default' => array('enable_sp_company_head', 'enable_sp_company_overview', 'enable_sp_company_gallery', 'enable_sp_video')
								),
								array(
									'id' => 'company_details_sidebar_order',
									'type' => 'sortable',
									'title' => esc_html__('Company Sidebar Order', 'civi-framework'),
									'desc' => esc_html__('Drag and drop layout manager, to quickly organize your company sidebar order.', 'civi-framework'),
									'options' => array(
										'enable_sidebar_sp_info' => esc_html__('Information', 'civi-framework'),
										'enable_sidebar_sp_location' => esc_html__('Location', 'civi-framework'),
									),
									'default' => array('enable_sidebar_sp_info', 'enable_sidebar_sp_location'),
								),
							),
						)),
						apply_filters('civi_register_option_single_company_page_bottom', array()),

						//Company Submit
						apply_filters('civi_option_company_submit_top', array()),
						apply_filters('civi_option_company_submit_main', array(
							'id' => 'company_submit_group',
							'title' => esc_html__('Company Submit', 'civi-framework'),
							'type' => 'group',
							'fields' => array(
								array(
									'id' => 'company_auto_publish',
									'title' => esc_html__('Automatically publish the submitted Company?', 'civi-framework'),
									'type' => 'button_set',
									'options' => array(
										'1' => esc_html__('Yes', 'civi-framework'),
										'0' => esc_html__('No', 'civi-framework'),
									),
									'default' => '1',
								),

								array(
									'id' => 'company_auto_publish_edited',
									'title' => esc_html__('Automatically publish the edited Company?', 'civi-framework'),
									'type' => 'button_set',
									'options' => array(
										'1' => esc_html__('Yes', 'civi-framework'),
										'0' => esc_html__('No', 'civi-framework'),
									),
									'default' => '1',
								),

								array(
									'id' => 'enable_add_new_company_location',
									'title' => esc_html__('Enable Add New Location', 'civi-framework'),
									'type' => 'button_set',
									'options' => array(
										'1' => esc_html__('Yes', 'civi-framework'),
										'0' => esc_html__('No', 'civi-framework'),
									),
									'default' => '0',
								),

								array(
									'id' => 'enable_add_new_company_categories',
									'title' => esc_html__('Enable Add New Categories', 'civi-framework'),
									'type' => 'button_set',
									'options' => array(
										'1' => esc_html__('Yes', 'civi-framework'),
										'0' => esc_html__('No', 'civi-framework'),
									),
									'default' => '0',
								),

								array(
									'id' => 'value_founded_min',
									'type' => 'text',
									'title' => esc_html__('Founded Date Min', 'civi-framework'),
									'subtitle' => esc_html__('Enter values founded date min', 'civi-framework'),
									'default' => '2010',
								),
								array(
									'id' => 'value_founded_max',
									'type' => 'text',
									'title' => esc_html__('Founded Date Max', 'civi-framework'),
									'subtitle' => esc_html__('Enter values founded date max', 'civi-framework'),
									'default' => '2023',
								),
								array(
									'id' => 'section_company_hide_group_fields',
									'title' => esc_html__('Hide Submit Group Form Fields', 'civi-framework'),
									'type' => 'group',

									'fields' => array(
										array(
											'id' => 'hide_company_group_fields',
											'type' => 'checkbox_list',
											'title' => esc_html__('Hide Submit Form Groups', 'civi-framework'),
											'subtitle' => esc_html__('Choose which fields you want to hide on group fields company?', 'civi-framework'),
											'options' => array(
												'general' => esc_html__('General', 'civi-framework'),
												'media' => esc_html__('Media', 'civi-framework'),
												'social' => esc_html__('Social network', 'civi-framework'),
												'location' => esc_html__('Location', 'civi-framework'),
												'gallery' => esc_html__('Gallery', 'civi-framework'),
												'video' => esc_html__('Video', 'civi-framework'),
											),
											'value_inline' => false,
											'default' => array()
										),
										array(
											'id' => 'hide_company_fields',
											'type' => 'checkbox_list',
											'title' => esc_html__('Hide Submit Form Fields', 'civi-framework'),
											'subtitle' => esc_html__('Choose which fields you want to hide on fields company?', 'civi-framework'),
											'options' => array(
												'fields_company_name' => esc_html__('Name', 'civi-framework'),
												'fields_company_category' => esc_html__('Category', 'civi-framework'),
												'fields_company_url' => esc_html__('Url', 'civi-framework'),
												'fields_company_about' => esc_html__('About', 'civi-framework'),
												'fields_company_website' => esc_html__('Website', 'civi-framework'),
												'fields_company_phone' => esc_html__('Phone', 'civi-framework'),
												'fields_company_email' => esc_html__('Email', 'civi-framework'),
												'fields_company_founded' => esc_html__('Founded', 'civi-framework'),
												'fields_company_size' => esc_html__('Size', 'civi-framework'),
												'fields_closing_logo' => esc_html__('Logo', 'civi-framework'),
												'fields_company_thumbnail' => esc_html__('Thumbnail', 'civi-framework'),
												'fields_company_location' => esc_html__('Location', 'civi-framework'),
												'fields_company_map' => esc_html__('Maps', 'civi-framework'),
											),
											'value_inline' => false,
											'default' => array()
										),
									)
								),
							)
						)),
						apply_filters('civi_option_company_submit_bottom', array()),

						//Company Search
						apply_filters('civi_register_option_search_company_page_top', array()),
						apply_filters('civi_register_option_search_company_page_main', array(
							'id' => 'company_search_group',
							'title' => esc_html__('Search Company', 'civi-framework'),
							'type' => 'group',
							'fields' => array(
								array(
									'id' => 'enable_company_search_bg',
									'type' => 'button_set',
									'title' => esc_html__('Enable Background', 'civi-framework'),
									'subtitle' => esc_html__('Show/Hidden Background', 'civi-framework'),
									'desc' => '',
									'options' => array(
										'1' => esc_html__('On', 'civi-framework'),
										'0' => esc_html__('Off', 'civi-framework'),
									),
									'default' => '0',
								),
								array(
									'id' => 'enable_company_search_location_top',
									'type' => 'button_set',
									'title' => esc_html__('Enable Search City/Town (Top)', 'civi-framework'),
									'subtitle' => esc_html__('Show/Hidden Search City/Town', 'civi-framework'),
									'desc' => '',
									'options' => array(
										'1' => esc_html__('On', 'civi-framework'),
										'0' => esc_html__('Off', 'civi-framework'),
									),
									'default' => '0',
								),
								array(
									'id' => 'enable_company_search_location_radius',
									'type' => 'button_set',
									'title' => esc_html__('Enable Search location radius', 'civi-framework'),
									'subtitle' => esc_html__('Show/Hidden search location radius', 'civi-framework'),
									'desc' => '',
									'options' => array(
										'1' => esc_html__('On', 'civi-framework'),
										'0' => esc_html__('Off', 'civi-framework'),
									),
									'default' => '1',
								),
								array(
									'id' => "company_search_color",
									'title' => esc_html__('Color', 'civi-framework'),
									'type' => 'color',
									'col' => '12',
									'default' => '',
									'required' => array(
										array("enable_company_search_bg", '=', '1'),
									),
								),
								array(
									'id' => "company_search_image",
									'title' => esc_html__('Image', 'civi-framework'),
									'type' => 'image',
									'default' => '',
									'col' => '12',
									'required' => array(
										array("enable_company_search_bg", '=', '1'),
									),
								),
								array(
									'id' => 'company_search_fields',
									'title' => esc_html__('Search Fields', 'civi-framework'),
									'type' => 'sorter',
									'default' => array(
										'top' => array(
											'company-categories' => esc_html__('Categories', 'civi-framework'),
										),
										'sidebar' => array(
											'company-rating' => esc_html__('Rating', 'civi-framework'),
											'company-founded' => esc_html__('Founded', 'civi-framework'),
											'company-size' => esc_html__('Size', 'civi-framework'),
										),
										'disable' => array(
											'company-location' => esc_html__('Location', 'civi-framework'),
										)
									),
								),
								array(
									'id' => 'company_search_fields_company-categories',
									'title' => esc_html__('Icon Categories', 'civi-framework'),
									'type' => 'text',
									'desc' => esc_html__('Please enter the html code of the "fontawesome" icon to display it', 'civi-framework'),
								),
								array(
									'id' => 'company_search_fields_company-rating',
									'title' => esc_html__('Icon Rating', 'civi-framework'),
									'type' => 'text',
									'desc' => esc_html__('Please enter the html code of the "fontawesome" icon to display it', 'civi-framework'),
								),
								array(
									'id' => 'company_search_fields_company-founded',
									'title' => esc_html__('Icon Founded', 'civi-framework'),
									'type' => 'text',
									'desc' => esc_html__('Please enter the html code of the "fontawesome" icon to display it', 'civi-framework'),
								),
								array(
									'id' => 'company_search_fields_company-size',
									'title' => esc_html__('Icon Size', 'civi-framework'),
									'type' => 'text',
									'desc' => esc_html__('Please enter the html code of the "fontawesome" icon to display it', 'civi-framework'),
								),
								array(
									'id' => 'company_search_fields_location',
									'title' => esc_html__('Icon City', 'civi-framework'),
									'type' => 'text',
									'desc' => esc_html__('Please enter the html code of the "fontawesome" icon to display it', 'civi-framework'),
								),
								array(
									'id' => 'company_search_fields_state',
									'title' => esc_html__('Icon State', 'civi-framework'),
									'type' => 'text',
									'desc' => esc_html__('Please enter the html code of the "fontawesome" icon to display it', 'civi-framework'),
								),
								array(
									'id' => 'company_search_fields_country',
									'title' => esc_html__('Icon Country', 'civi-framework'),
									'type' => 'text',
									'desc' => esc_html__('Please enter the html code of the "fontawesome" icon to display it', 'civi-framework'),
								),
							)
						)),
						apply_filters('civi_register_option_search_company_page_bottom', array()),

						//Company Package
						apply_filters('civi_register_option_company_package_page_top', array()),
						apply_filters('civi_register_option_company_package_page_main', array(
							'id' => 'company_package_group',
							'title' => esc_html__('Company Package', 'civi-framework'),
							'type' => 'group',
							'fields' => array(
								array(
									'id' => "enable_company_package_candidate_follow",
									'title' => esc_html__('Enable/Disable Candidate Follow', 'civi-framework'),
									'type' => 'button_set',
									'options' => array(
										'1' => esc_html__('Yes', 'civi-framework'),
										'0' => esc_html__('No', 'civi-framework'),
									),
									'default' => '0',
								),
								array(
									'id' => "enable_company_package_download_cv",
									'title' => esc_html__('Enable/Disable Download Cv', 'civi-framework'),
									'type' => 'button_set',
									'options' => array(
										'1' => esc_html__('Yes', 'civi-framework'),
										'0' => esc_html__('No', 'civi-framework'),
									),
									'default' => '0',
								),
								array(
									'id' => "enable_company_package_invite",
									'title' => esc_html__('Enable/Disable Invite', 'civi-framework'),
									'type' => 'button_set',
									'options' => array(
										'1' => esc_html__('Yes', 'civi-framework'),
										'0' => esc_html__('No', 'civi-framework'),
									),
									'default' => '0',
								),
								array(
									'id' => "enable_company_package_send_message",
									'title' => esc_html__('Enable/Disable Send Message', 'civi-framework'),
									'type' => 'button_set',
									'options' => array(
										'1' => esc_html__('Yes', 'civi-framework'),
										'0' => esc_html__('No', 'civi-framework'),
									),
									'default' => '0',
								),
								array(
									'id' => "enable_company_package_print",
									'title' => esc_html__('Enable/Disable Print', 'civi-framework'),
									'type' => 'button_set',
									'options' => array(
										'1' => esc_html__('Yes', 'civi-framework'),
										'0' => esc_html__('No', 'civi-framework'),
									),
									'default' => '0',
								),
								array(
									'id' => "enable_company_package_review_and_commnent",
									'title' => esc_html__('Enable/Disable Review And Commnet', 'civi-framework'),
									'type' => 'button_set',
									'options' => array(
										'1' => esc_html__('Yes', 'civi-framework'),
										'0' => esc_html__('No', 'civi-framework'),
									),
									'default' => '0',
								),
								array(
									'id' => "enable_company_package_info",
									'title' => esc_html__('Enable/Disable profile information', 'civi-framework'),
									'type' => 'button_set',
									'options' => array(
										'1' => esc_html__('Yes', 'civi-framework'),
										'0' => esc_html__('No', 'civi-framework'),
									),
									'default' => '0',
								),
								array(
									'id' => 'hide_company_candidate_info_fields',
									'type' => 'checkbox_list',
									'title' => esc_html__('Hide Field candidate information', 'civi-framework'),
									'subtitle' => esc_html__('Choose which fields you want to hide on candidate information', 'civi-framework'),
									'options' => array(
										'salary' => esc_html__('Offered Salary', 'civi-framework'),
										'time' => esc_html__('Experience time', 'civi-framework'),
										'languages' => esc_html__('Languages', 'civi-framework'),
										'gender' => esc_html__('Gender', 'civi-framework'),
										'qualification' => esc_html__('Qualification', 'civi-framework'),
										'age' => esc_html__('Age', 'civi-framework'),
										'phone' => esc_html__('Phone', 'civi-framework'),
										'email' => esc_html__('Email', 'civi-framework'),
										'social' => esc_html__('Social', 'civi-framework'),
									),
									'value_inline' => false,
									'default' => array('phone', 'email', 'social'),
									'required' => array("enable_company_package_info", '=', '1'),
								),
							)
						)),
						apply_filters('civi_register_option_company_package_page_bottom', array())
					),
				));
		}

		/**
		 * Candidate page option
		 * @return mixed
		 */
		private function candidate_option()
		{
			$enable_single_candidate_service = array();
			if (civi_get_option('enable_post_type_service') === '1') {
				$enable_single_candidate_service = array(
					'id' => 'enable_single_candidate_service',
					'type' => 'button_set',
					'title' => esc_html__('Enable Services', 'civi-framework'),
					'subtitle' => esc_html__('Enable/Disable Services', 'civi-framework'),
					'desc' => '',
					'options' => array(
						'1' => esc_html__('On', 'civi-framework'),
						'0' => esc_html__('Off', 'civi-framework'),
					),
					'default' => '1',
				);
			}

			return
				apply_filters('civi_register_candidate_option_listing_setting_page', array(
					'id' => 'civi_listing_candidate_setting_page_option',
					'title' => esc_html__('Candidates Option', 'civi-framework'),
					'icon' => 'dashicons-businessperson',
					'fields' => array(
						//Archive Candidate
						apply_filters('civi_register_option_archive_candidate_page_top', array()),
						apply_filters('civi_register_option_archive_candidate_page_main', array(
							'id' => 'civi_main_group',
							'type' => 'group',
							'title' => esc_html__('Archive Candidate', 'civi-framework'),
							'fields' => array(
								array(
									'id' => 'archive_candidate_layout',
									'type' => 'select',
									'title' => esc_html__('Candidate Layout', 'civi-framework'),
									'default' => 'layout-list',
									'options' => array(
										'layout-list' => esc_html__('Layout List', 'civi-framework'),
										'layout-grid' => esc_html__('Layout Grid', 'civi-framework')
									)
								),
								array(
									'id' => 'archive_candidate_items_amount',
									'type' => 'text',
									'title' => esc_html__('Items Amount', 'civi-framework'),
									'default' => 12,
									'pattern' => '[0-9]*',
								),
								array(
									'id' => 'candidate_pagination_type',
									'type' => 'select',
									'title' => esc_html__('Type Pagination', 'civi-framework'),
									'default' => 'number',
									'options' => array(
										'number' => esc_html__('Number', 'civi-framework'),
										'loadmore' => esc_html__('Load More', 'civi-framework')
									)
								),
								array(
									'id' => "candidate_filter_sidebar_option",
									'title' => esc_html__('Postion Filter ', 'civi-framework'),
									'type' => 'select',
									'options' => array(
										'filter-left' => 'Filter Left',
										'filter-right' => 'Filter Right',
									),
									'default' => 'left',
								),
								array(
									'id' => 'enable_candidate_filter_top',
									'type' => 'button_set',
									'title' => esc_html__('Show Top Filter', 'civi-framework'),
									'subtitle' => esc_html__('Show/Hidden Top Filter', 'civi-framework'),
									'desc' => '',
									'options' => array(
										'1' => esc_html__('On', 'civi-framework'),
										'0' => esc_html__('Off', 'civi-framework'),
									),
									'default' => '1',
								),
								array(
									'id' => 'enable_candidate_show_map',
									'type' => 'button_set',
									'title' => esc_html__('Show Maps', 'civi-framework'),
									'subtitle' => esc_html__('Show/Hidden Maps', 'civi-framework'),
									'desc' => '',
									'options' => array(
										'1' => esc_html__('On', 'civi-framework'),
										'0' => esc_html__('Off', 'civi-framework'),
									),
									'default' => '0',
								),
								array(
									'id' => "candidate_map_postion",
									'title' => esc_html__('Postion Maps ', 'civi-framework'),
									'type' => 'select',
									'options' => array(
										'map-right' => 'Map Right',
										'map-top' => 'Map Top',
									),
									'default' => 'right',
									'required' => array(
										array("enable_candidate_show_map", '=', '1'),
									),
								),
								array(
									'id' => 'enable_candidate_show_des',
									'type' => 'button_set',
									'title' => esc_html__('Show Description', 'civi-framework'),
									'subtitle' => esc_html__('Show/Hidden Description', 'civi-framework'),
									'desc' => '',
									'options' => array(
										'1' => esc_html__('On', 'civi-framework'),
										'0' => esc_html__('Off', 'civi-framework'),
									),
									'default' => '1',
								),
							),
						)),
						apply_filters('civi_register_option_archive_candidate_page_bottom', array()),

						//Single Candidate
						apply_filters('civi_register_option_single_candidate_page_top', array()),
						apply_filters('civi_register_option_single_candidate_page_main', array(
							'id' => 'candidate_page_main_group',
							'type' => 'group',
							'title' => esc_html__('Single Candidate', 'civi-framework'),
							'fields' => array(
								array(
									'id' => "enable_candidate_login_to_view",
									'type' => 'button_set',
									'title' => esc_html__('Enable Candidate Login To View', 'civi-framework'),
									'subtitle' => esc_html__('Enable/Disable Candidate Login To View', 'civi-framework'),
									'options' => array(
										'1' => esc_html__('On', 'civi-framework'),
										'0' => esc_html__('Off', 'civi-framework'),
									),
									'default' => '0',
								),
								array(
									'id' => 'enable_sticky_candidate_sidebar_type',
									'type' => 'button_set',
									'title' => esc_html__('Enable Sticky Sidebar', 'civi-framework'),
									'subtitle' => esc_html__('Enable/Disable sticky sidebar when scroll', 'civi-framework'),
									'desc' => '',
									'options' => array(
										'1' => esc_html__('On', 'civi-framework'),
										'0' => esc_html__('Off', 'civi-framework'),
									),
									'default' => '1',
								),

								$enable_single_candidate_service,

								array(
									'id' => 'enable_single_candidate_review',
									'type' => 'button_set',
									'title' => esc_html__('Enable Candidate Review', 'civi-framework'),
									'subtitle' => esc_html__('Enable/Disable Candidate Review', 'civi-framework'),
									'desc' => '',
									'options' => array(
										'1' => esc_html__('On', 'civi-framework'),
										'0' => esc_html__('Off', 'civi-framework'),
									),
									'default' => '1',
								),

								array(
									'id' => 'enable_single_candidate_download_cv',
									'type' => 'button_set',
									'title' => esc_html__('Enable Candidate Download CV', 'civi-framework'),
									'subtitle' => esc_html__('Enable/Disable Candidate Download CV', 'civi-framework'),
									'desc' => '',
									'options' => array(
										'1' => esc_html__('On', 'civi-framework'),
										'0' => esc_html__('Off', 'civi-framework'),
									),
									'default' => '0',
								),

								array(
									'id' => "single_candidate_style",
									'title' => esc_html__('Style Thumbnail Images', 'civi-framework'),
									'type' => 'select',
									'options' => array(
										'cover-img' => 'Cover Image',
										'large-cover-img' => 'Large Cover Image',
									),
								),

								array(
									'id' => 'single_candidate_image_size',
									'type' => 'text',
									'title' => esc_html__('Image Size', 'civi-framework'),
									'subtitle' => esc_html__('Enter image size. Alternatively enter size in pixels (Example : 330x180 (Not Include Unit, Space))', 'civi-framework'),
									'default' => '',
								),

								array(
									'id' => 'candidates_details_order',
									'type' => 'sortable',
									'title' => esc_html__('Candidate Content Order', 'civi-framework'),
									'desc' => esc_html__('Drag and drop layout manager, to quickly organize your candidate content details.', 'civi-framework'),
									'options' => array(
										'enable_sp_video' => esc_html__('Video', 'civi-framework'),
										'enable_sp_skills' => esc_html__('Skills', 'civi-framework'),
										'enable_sp_experience' => esc_html__('Experience', 'civi-framework'),
										'enable_sp_education' => esc_html__('Education', 'civi-framework'),
										'enable_sp_projects' => esc_html__('Projects', 'civi-framework'),
										'enable_sp_awards' => esc_html__('Awards', 'civi-framework'),
									),
									'default' => array('enable_sp_head', 'enable_sp_video', 'enable_sp_skills', 'enable_sp_experience', 'enable_sp_education', 'enable_sp_projects', 'enable_sp_awards')
								),

								array(
									'id' => 'candidate_details_sidebar_order',
									'type' => 'sortable',
									'title' => esc_html__('Candidate Sidebar Order', 'civi-framework'),
									'desc' => esc_html__('Drag and drop layout manager, to quickly organize your candidate sidebar order.', 'civi-framework'),
									'options' => array(
										'enable_sidebar_sp_info' => esc_html__('Information', 'civi-framework'),
										'enable_sidebar_sp_location' => esc_html__('Location', 'civi-framework'),
									),
									'default' => array('enable_sidebar_sp_info', 'enable_sidebar_sp_location'),
								),
								array(
									'id' => 'candidate_details_prints',
									'type' => 'sortable',
									'title' => esc_html__('Candidate Print', 'civi-framework'),
									'desc' => esc_html__('Drag and drop layout manager, to quickly organize your candidate print.', 'civi-framework'),
									'options' => array(
										'enable_print_sp_info' => esc_html__('Info', 'civi-framework'),
										'enable_print_sp_skills' => esc_html__('Skills', 'civi-framework'),
										'enable_print_sp_awards' => esc_html__('Awards', 'civi-framework'),
										'enable_print_sp_education' => esc_html__('Education', 'civi-framework'),
										'enable_print_sp_experience' => esc_html__('Experience', 'civi-framework'),
										'enable_print_sp_projects' => esc_html__('Projects', 'civi-framework'),
									),
									'default' => array('enable_print_sp_info', 'enable_print_sp_skills', 'enable_print_sp_awards', 'enable_print_sp_education', 'enable_print_sp_experience', 'enable_print_sp_projects'),
								),
							),
						)),
						apply_filters('civi_register_option_single_candidate_page_bottom', array()),

						//Candidate Profile
						apply_filters('civi_option_candidate_profile_top', array()),
						apply_filters('civi_option_candidate_profile_main', array(
							'id' => 'candidate_profile_group',
							'title' => esc_html__('Candidate Profile', 'civi-framework'),
							'type' => 'group',
							'fields' => array(
								array(
									'id' => 'section_candidate_hide_group_fields',
									'title' => esc_html__('Hide Submit Group Form Fields', 'civi-framework'),
									'type' => 'group',
									'fields' => array(
										array(
											'id' => 'enable_candidate_language_multiple',
											'type' => 'button_set',
											'title' => esc_html__('Enable Language Multiple', 'civi-framework'),
											'subtitle' => esc_html__('Show/Hidden Multiple', 'civi-framework'),
											'desc' => '',
											'options' => array(
												'1' => esc_html__('On', 'civi-framework'),
												'0' => esc_html__('Off', 'civi-framework'),
											),
											'default' => '0',
										),
										array(
											'id' => 'type_name_candidate',
											'type' => 'select',
											'title' => esc_html__('Name Candidate', 'civi-framework'),
											'subtitle' => esc_html__('Display type name candidate after registration', 'civi-framework'),
											'options' => array(
												'user-name' => esc_html__('User Name', 'civi-framework'),
												'fl-name' => esc_html__('First Name + Last Name', 'civi-framework'),
											),
											'default' => 'user-name',
										),
										array(
											'id' => 'hide_candidate_group_fields',
											'type' => 'checkbox_list',
											'title' => esc_html__('Hide Submit Form Groups', 'civi-framework'),
											'subtitle' => esc_html__('Choose which fields you want to hide on Candidate Profile', 'civi-framework'),
											'options' => array(
												'info' => esc_html__('Basic Info', 'civi-framework'),
												'education' => esc_html__('Education', 'civi-framework'),
												'experience' => esc_html__('Experience', 'civi-framework'),
												'skills' => esc_html__('Skills', 'civi-framework'),
												'projects' => esc_html__('Projects', 'civi-framework'),
												'awards' => esc_html__('Awards', 'civi-framework'),
											),
											'value_inline' => false,
											'default' => array()
										),
										array(
											'id' => 'hide_candidate_fields',
											'type' => 'checkbox_list',
											'title' => esc_html__('Hide Submit Form Fields', 'civi-framework'),
											'subtitle' => esc_html__('Choose which fields you want to hide candidate profile', 'civi-framework'),
											'options' => array(
												'fields_candidate_avatar' => esc_html__('Avatar', 'civi-framework'),
												'fields_candidate_thumbnail' => esc_html__('Thumbnail', 'civi-framework'),
												'fields_candidate_first_name' => esc_html__('First name', 'civi-framework'),
												'fields_candidate_last_name' => esc_html__('Last name', 'civi-framework'),
												'fields_candidate_email_address' => esc_html__('Email address', 'civi-framework'),
												'fields_candidate_phone_number' => esc_html__('Phone number', 'civi-framework'),
												'fields_candidate_current_position' => esc_html__('Current Position', 'civi-framework'),
												'fields_candidate_categories' => esc_html__('Categories', 'civi-framework'),
												'fields_candidate_description' => esc_html__('Description', 'civi-framework'),
												'fields_candidate_date_of_birth' => esc_html__('Date of Birth', 'civi-framework'),
												'fields_candidate_age' => esc_html__('Age', 'civi-framework'),
												'fields_candidate_gender' => esc_html__('Gender', 'civi-framework'),
												'fields_closing_languages' => esc_html__('Languages', 'civi-framework'),
												'fields_candidate_qualification' => esc_html__('Qualification', 'civi-framework'),
												'fields_candidate_experience' => esc_html__('Years of Experience', 'civi-framework'),
												'fields_candidate_salary' => esc_html__('Salary', 'civi-framework'),
												'fields_candidate_resume' => esc_html__('Resume', 'civi-framework'),
												'fields_candidate_social' => esc_html__('Social Network', 'civi-framework'),
												'fields_candidate_my_profile' => esc_html__('My Profile', 'civi-framework'),
												'fields_candidate_location' => esc_html__('Location', 'civi-framework'),
												'fields_candidate_map' => esc_html__('Map', 'civi-framework'),
												'fields_candidate_gallery' => esc_html__('Gallery', 'civi-framework'),
												'fields_candidate_video' => esc_html__('Video', 'civi-framework'),
											),
											'value_inline' => false,
											'default' => array()
										),
									)
								),
							)
						)),
						apply_filters('civi_option_candidate_profile_bottom', array()),
						apply_filters('civi_option_candidate_submit_bottom', array()),

						//Candidate Search
						apply_filters('civi_register_option_search_candidate_page_top', array()),
						apply_filters('civi_register_option_search_candidate_page_main', array(
							'id' => 'candidate_search_group',
							'title' => esc_html__('Candidate Search', 'civi-framework'),
							'type' => 'group',
							'fields' => array(
								array(
									'id' => 'enable_candidate_search_bg',
									'type' => 'button_set',
									'title' => esc_html__('Enable Background', 'civi-framework'),
									'subtitle' => esc_html__('Show/Hidden Background', 'civi-framework'),
									'desc' => '',
									'options' => array(
										'1' => esc_html__('On', 'civi-framework'),
										'0' => esc_html__('Off', 'civi-framework'),
									),
									'default' => '0',
								),
								array(
									'id' => 'enable_candidate_search_location_top',
									'type' => 'button_set',
									'title' => esc_html__('Enable Search City/Town (Top)', 'civi-framework'),
									'subtitle' => esc_html__('Show/Hidden Search City/Town', 'civi-framework'),
									'desc' => '',
									'options' => array(
										'1' => esc_html__('On', 'civi-framework'),
										'0' => esc_html__('Off', 'civi-framework'),
									),
									'default' => '0',
								),
								array(
									'id' => 'enable_candidate_search_location_radius',
									'type' => 'button_set',
									'title' => esc_html__('Enable Search location radius', 'civi-framework'),
									'subtitle' => esc_html__('Show/Hidden search location radius', 'civi-framework'),
									'desc' => '',
									'options' => array(
										'1' => esc_html__('On', 'civi-framework'),
										'0' => esc_html__('Off', 'civi-framework'),
									),
									'default' => '1',
								),
								array(
									'id' => "candidate_search_color",
									'title' => esc_html__('Color', 'civi-framework'),
									'type' => 'color',
									'col' => '12',
									'default' => '',
									'required' => array(
										array("enable_candidate_search_bg", '=', '1'),
									),
								),
								array(
									'id' => "candidate_search_image",
									'title' => esc_html__('Image', 'civi-framework'),
									'type' => 'image',
									'default' => '',
									'col' => '12',
									'required' => array(
										array("enable_candidate_search_bg", '=', '1'),
									),
								),
								array(
									'id' => 'candidate_search_fields',
									'title' => esc_html__('Search Fields', 'civi-framework'),
									'type' => 'sorter',
									'default' => array(
										'top' => array(
											'candidate_categories' => esc_html__('Categories', 'civi-framework'),
										),
										'sidebar' => array(
											'candidate_rating' => esc_html__('Rating', 'civi-framework'),
											'candidate_yoe' => esc_html__('Experience', 'civi-framework'),
											'candidate_qualification' => esc_html__('Qualification', 'civi-framework'),
											'candidate_gender' => esc_html__('Gender', 'civi-framework'),
										),
										'disable' => array(
											'candidate_locations' => esc_html__('Location', 'civi-framework'),
											'candidate_ages' => esc_html__('Ages', 'civi-framework'),
											'candidate_skills' => esc_html__('Skills', 'civi-framework'),
											'candidate_languages' => esc_html__('Languages', 'civi-framework'),
										)
									),
								),
								array(
									'id' => 'candidate_search_fields_candidate_categories',
									'title' => esc_html__('Icon Categories', 'civi-framework'),
									'type' => 'text',
									'desc' => esc_html__('Please enter the html code of the "fontawesome" icon to display it', 'civi-framework'),
								),
								array(
									'id' => 'candidate_search_fields_candidate_rating',
									'title' => esc_html__('Icon Rating', 'civi-framework'),
									'type' => 'text',
									'desc' => esc_html__('Please enter the html code of the "fontawesome" icon to display it', 'civi-framework'),
								),
								array(
									'id' => 'candidate_search_fields_candidate_yoe',
									'title' => esc_html__('Icon Experience', 'civi-framework'),
									'type' => 'text',
									'desc' => esc_html__('Please enter the html code of the "fontawesome" icon to display it', 'civi-framework'),
								),
								array(
									'id' => 'candidate_search_fields_candidate_qualification',
									'title' => esc_html__('Icon Qualification', 'civi-framework'),
									'type' => 'text',
									'desc' => esc_html__('Please enter the html code of the "fontawesome" icon to display it', 'civi-framework'),
								),
								array(
									'id' => 'candidate_search_fields_candidate_ages',
									'title' => esc_html__('Icon Ages', 'civi-framework'),
									'type' => 'text',
									'desc' => esc_html__('Please enter the html code of the "fontawesome" icon to display it', 'civi-framework'),
								),
								array(
									'id' => 'candidate_search_fields_candidate_gender',
									'title' => esc_html__('Icon Gender', 'civi-framework'),
									'type' => 'text',
									'desc' => esc_html__('Please enter the html code of the "fontawesome" icon to display it', 'civi-framework'),
								),
								array(
									'id' => 'candidate_search_fields_candidate_skills',
									'title' => esc_html__('Icon Skills', 'civi-framework'),
									'type' => 'text',
									'desc' => esc_html__('Please enter the html code of the "fontawesome" icon to display it', 'civi-framework'),
								),
								array(
									'id' => 'candidate_search_fields_candidate_languages',
									'title' => esc_html__('Icon Languages', 'civi-framework'),
									'type' => 'text',
									'desc' => esc_html__('Please enter the html code of the "fontawesome" icon to display it', 'civi-framework'),
								),
								array(
									'id' => 'candidate_search_fields_location',
									'title' => esc_html__('Icon City', 'civi-framework'),
									'type' => 'text',
									'desc' => esc_html__('Please enter the html code of the "fontawesome" icon to display it', 'civi-framework'),
								),
								array(
									'id' => 'candidate_search_fields_state',
									'title' => esc_html__('Icon State', 'civi-framework'),
									'type' => 'text',
									'desc' => esc_html__('Please enter the html code of the "fontawesome" icon to display it', 'civi-framework'),
								),
								array(
									'id' => 'candidate_search_fields_country',
									'title' => esc_html__('Icon Country', 'civi-framework'),
									'type' => 'text',
									'desc' => esc_html__('Please enter the html code of the "fontawesome" icon to display it', 'civi-framework'),
								),
							)
						)),
						apply_filters('civi_register_option_search_candidate_page_bottom', array()),


						//Candidate Package
						apply_filters('civi_register_option_candidate_package_page_top', array()),
						apply_filters('civi_register_option_candidate_package_page_main', array(
							'id' => 'candidate_package_group',
							'title' => esc_html__('Candidate Package', 'civi-framework'),
							'type' => 'group',
							'fields' => array(
								array(
									'id' => "enable_candidate_package_jobs_apply",
									'title' => esc_html__('Enable/Disable Jobs Apply', 'civi-framework'),
									'type' => 'button_set',
									'options' => array(
										'1' => esc_html__('Yes', 'civi-framework'),
										'0' => esc_html__('No', 'civi-framework'),
									),
									'default' => '0',
								),
								array(
									'id' => "enable_candidate_package_jobs_wishlist",
									'title' => esc_html__('Enable/Disable Jobs Wishlist', 'civi-framework'),
									'type' => 'button_set',
									'options' => array(
										'1' => esc_html__('Yes', 'civi-framework'),
										'0' => esc_html__('No', 'civi-framework'),
									),
									'default' => '0',
								),
								array(
									'id' => "enable_candidate_package_company_follow",
									'title' => esc_html__('Enable/Disable Company follow', 'civi-framework'),
									'type' => 'button_set',
									'options' => array(
										'1' => esc_html__('Yes', 'civi-framework'),
										'0' => esc_html__('No', 'civi-framework'),
									),
									'default' => '0',
								),
								array(
									'id' => "enable_candidate_package_send_message",
									'title' => esc_html__('Enable/Disable Send Message', 'civi-framework'),
									'type' => 'button_set',
									'options' => array(
										'1' => esc_html__('Yes', 'civi-framework'),
										'0' => esc_html__('No', 'civi-framework'),
									),
									'default' => '0',
								),
								array(
									'id' => "enable_candidate_package_review_and_commnent",
									'title' => esc_html__('Enable/Disable Review And Commnet', 'civi-framework'),
									'type' => 'button_set',
									'options' => array(
										'1' => esc_html__('Yes', 'civi-framework'),
										'0' => esc_html__('No', 'civi-framework'),
									),
									'default' => '0',
								),
								array(
									'id' => "enable_candidate_package_contact_company",
									'title' => esc_html__('Enable/Disable Contact Company In Jobs', 'civi-framework'),
									'type' => 'button_set',
									'options' => array(
										'1' => esc_html__('Yes', 'civi-framework'),
										'0' => esc_html__('No', 'civi-framework'),
									),
									'default' => '0',
								),
								array(
									'id' => 'hide_candidate_contact_company_fields',
									'type' => 'checkbox_list',
									'title' => esc_html__('Hide Field Contact Company In Jobs', 'civi-framework'),
									'subtitle' => esc_html__('Choose which fields you want to hide on Contact Company In Jobs', 'civi-framework'),
									'options' => array(
										'description' => esc_html__('Description', 'civi-framework'),
										'categories' => esc_html__('Categories', 'civi-framework'),
										'size' => esc_html__('Size', 'civi-framework'),
										'founded' => esc_html__('Founded in', 'civi-framework'),
										'location' => esc_html__('Location', 'civi-framework'),
										'phone' => esc_html__('Phone', 'civi-framework'),
										'email' => esc_html__('Email', 'civi-framework'),
										'social' => esc_html__('Social', 'civi-framework'),
									),
									'value_inline' => false,
									'default' => array('phone', 'email', 'social'),
									'required' => array("enable_candidate_package_contact_company", '=', '1'),
								),
								array(
									'id' => "enable_candidate_package_info_company",
									'title' => esc_html__('Enable/Disable Information Company', 'civi-framework'),
									'type' => 'button_set',
									'options' => array(
										'1' => esc_html__('Yes', 'civi-framework'),
										'0' => esc_html__('No', 'civi-framework'),
									),
									'default' => '0',
								),
								array(
									'id' => 'hide_candidate_info_company_fields',
									'type' => 'checkbox_list',
									'title' => esc_html__('Hide Field Info Company', 'civi-framework'),
									'subtitle' => esc_html__('Choose which fields you want to hide on Information Company', 'civi-framework'),
									'options' => array(
										'categories' => esc_html__('Categories', 'civi-framework'),
										'size' => esc_html__('Size', 'civi-framework'),
										'founded' => esc_html__('Founded in', 'civi-framework'),
										'location' => esc_html__('Location', 'civi-framework'),
										'phone' => esc_html__('Phone', 'civi-framework'),
										'email' => esc_html__('Email', 'civi-framework'),
										'social' => esc_html__('Social', 'civi-framework'),
									),
									'value_inline' => false,
									'default' => array('phone', 'email', 'social'),
									'required' => array("enable_candidate_package_info_company", '=', '1'),
								),
							)
						)),
						apply_filters('civi_register_option_candidate_package_page_bottom', array())
					),
				));
		}


		/**
		 * Service page option
		 * @return mixed
		 */

		private function service_option()
		{
			//Archive Service
			$option_archive_service = $option_single_service = $option_submit_service = $option_search_service = array();
			if (civi_get_option('enable_post_type_service') === '1') {

				//Archive Service
				$option_archive_service = array(
					'id' => 'civi_archive_service_group',
					'type' => 'group',
					'title' => esc_html__('Archive Service', 'civi-framework'),
					'fields' => array(
						array(
							'id' => 'archive_service_layout',
							'type' => 'select',
							'title' => esc_html__('Service Layout', 'civi-framework'),
							'default' => 'layout-list',
							'options' => array(
								'layout-list' => esc_html__('Layout List', 'civi-framework'),
								'layout-grid' => esc_html__('Layout Grid', 'civi-framework'),
							)
						),
						array(
							'id' => 'archive_service_items_amount',
							'type' => 'text',
							'title' => esc_html__('Items Amount', 'civi-framework'),
							'default' => 12,
							'pattern' => '[0-9]*',
						),
						array(
							'id' => 'service_pagination_type',
							'type' => 'select',
							'title' => esc_html__('Type Pagination', 'civi-framework'),
							'default' => 'number',
							'options' => array(
								'number' => esc_html__('Number', 'civi-framework'),
								'loadmore' => esc_html__('Load More', 'civi-framework')
							)
						),
						array(
							'id' => "service_filter_sidebar_option",
							'title' => esc_html__('Postion Filter ', 'civi-framework'),
							'type' => 'select',
							'options' => array(
								'filter-left' => 'Filter Left',
								'filter-right' => 'Filter Right',
							),
							'default' => 'left',
						),
						array(
							'id' => 'enable_service_filter_top',
							'type' => 'button_set',
							'title' => esc_html__('Show Top Filter', 'civi-framework'),
							'subtitle' => esc_html__('Show/Hidden Top Filter', 'civi-framework'),
							'desc' => '',
							'options' => array(
								'1' => esc_html__('On', 'civi-framework'),
								'0' => esc_html__('Off', 'civi-framework'),
							),
							'default' => '1',
						),
						array(
							'id' => 'enable_service_show_map',
							'type' => 'button_set',
							'title' => esc_html__('Show Maps', 'civi-framework'),
							'subtitle' => esc_html__('Show/Hidden Maps', 'civi-framework'),
							'desc' => '',
							'options' => array(
								'1' => esc_html__('On', 'civi-framework'),
								'0' => esc_html__('Off', 'civi-framework'),
							),
							'default' => '0',
						),
						array(
							'id' => "service_map_postion",
							'title' => esc_html__('Postion Maps ', 'civi-framework'),
							'type' => 'select',
							'options' => array(
								'map-right' => 'Map Right',
								'map-top' => 'Map Top',
							),
							'default' => 'right',
							'required' => array(
								array("enable_service_show_map", '=', '1'),
							),
						),
						array(
							'id' => 'enable_service_show_des',
							'type' => 'button_set',
							'title' => esc_html__('Show Description', 'civi-framework'),
							'subtitle' => esc_html__('Show/Hidden Description', 'civi-framework'),
							'desc' => '',
							'options' => array(
								'1' => esc_html__('On', 'civi-framework'),
								'0' => esc_html__('Off', 'civi-framework'),
							),
							'default' => '0',
						),
					),
				);

				//Single Service
				$option_single_service = array(
					'id' => 'service_single_service_group',
					'type' => 'group',
					'title' => esc_html__('Single Service', 'civi-framework'),
					'fields' => array(
						array(
							'id' => 'enable_sticky_service_sidebar_type',
							'type' => 'button_set',
							'title' => esc_html__('Enable Sticky Sidebar', 'civi-framework'),
							'subtitle' => esc_html__('Enable/Disable sticky sidebar when scroll', 'civi-framework'),
							'desc' => '',
							'options' => array(
								'1' => esc_html__('On', 'civi-framework'),
								'0' => esc_html__('Off', 'civi-framework'),
							),
							'default' => '1',
						),
						array(
							'id' => 'enable_single_service_related',
							'type' => 'button_set',
							'title' => esc_html__('Enable Service Related', 'civi-framework'),
							'subtitle' => esc_html__('Enable/Disable Service Related', 'civi-framework'),
							'desc' => '',
							'options' => array(
								'1' => esc_html__('On', 'civi-framework'),
								'0' => esc_html__('Off', 'civi-framework'),
							),
							'default' => '1',
						),
						array(
							'id' => 'enable_single_service_review',
							'type' => 'button_set',
							'title' => esc_html__('Enable Service Review', 'civi-framework'),
							'subtitle' => esc_html__('Enable/Disable Service Review', 'civi-framework'),
							'desc' => '',
							'options' => array(
								'1' => esc_html__('On', 'civi-framework'),
								'0' => esc_html__('Off', 'civi-framework'),
							),
							'default' => '1',
						),
						array(
							'id' => 'services_details_order',
							'type' => 'sortable',
							'title' => esc_html__('Service Content Order', 'civi-framework'),
							'desc' => esc_html__('Drag and drop layout manager, to quickly organize your service content details.', 'civi-framework'),
							'options' => array(
								'enable_sp_gallery' => esc_html__('Gallery', 'civi-framework'),
								'enable_sp_descriptions' => esc_html__('Descriptions', 'civi-framework'),
								'enable_sp_skills' => esc_html__('Skills', 'civi-framework'),
								'enable_sp_location' => esc_html__('Location', 'civi-framework'),
								'enable_sp_video' => esc_html__('Video', 'civi-framework'),
								'enable_sp_faq' => esc_html__('Faq', 'civi-framework'),
							),
							'default' => array('enable_sp_gallery', 'enable_sp_descriptions', 'enable_sp_skills', 'enable_sp_location', 'enable_sp_video', 'enable_sp_faq', 'enable_sp_review')
						),
						array(
							'id' => 'service_details_sidebar_order',
							'type' => 'sortable',
							'title' => esc_html__('Service Sidebar Order', 'civi-framework'),
							'desc' => esc_html__('Drag and drop layout manager, to quickly organize your service sidebar order.', 'civi-framework'),
							'options' => array(
								'enable_sidebar_sp_package' => esc_html__('Package', 'civi-framework'),
								'enable_sidebar_sp_info' => esc_html__('Information', 'civi-framework'),
							),
							'default' => array('enable_sidebar_sp_package', 'enable_sidebar_sp_info'),
						),
					),
				);

				//Submit Service
				$option_submit_service = array(
					'id' => 'service_submit_group',
					'title' => esc_html__('Service Submit', 'civi-framework'),
					'type' => 'group',
					'fields' => array(
						array(
							'id' => 'service_auto_publish',
							'title' => esc_html__('Automatically publish the submitted Service?', 'civi-framework'),
							'type' => 'button_set',
							'options' => array(
								'1' => esc_html__('Yes', 'civi-framework'),
								'0' => esc_html__('No', 'civi-framework'),
							),
							'default' => '1',
						),

						array(
							'id' => 'service_auto_publish_edited',
							'title' => esc_html__('Automatically publish the edited Service?', 'civi-framework'),
							'type' => 'button_set',
							'options' => array(
								'1' => esc_html__('Yes', 'civi-framework'),
								'0' => esc_html__('No', 'civi-framework'),
							),
							'default' => '1',
						),
						array(
							'id' => 'section_service_hide_fields',
							'title' => esc_html__('Hide Submit Form Fields', 'civi-framework'),
							'type' => 'group',
							'fields' => array(
								array(
									'id' => 'hide_service_fields',
									'type' => 'checkbox_list',
									'title' => esc_html__('Hide Submit Form Fields', 'civi-framework'),
									'subtitle' => esc_html__('Choose which fields you want to hide on New Property page?', 'civi-framework'),
									'options' => array(
										'fields_service_title' => esc_html__('Title', 'civi-framework'),
										'fields_service_category' => esc_html__('Category', 'civi-framework'),
										'fields_service_price' => esc_html__('Price', 'civi-framework'),
										'fields_service_delivery_time' => esc_html__('Transfer time', 'civi-framework'),
										'fields_service_description' => esc_html__('Description', 'civi-framework'),
										'fields_service_languages' => esc_html__('Languages', 'civi-framework'),
										'fields_service_language_level' => esc_html__('Languages level', 'civi-framework'),
										'fields_service_location' => esc_html__('Location', 'civi-framework'),
										'fields_service_map' => esc_html__('Maps', 'civi-framework'),
										'fields_service_cover_image' => esc_html__('Cover image', 'civi-framework'),
										'fields_closing_gallery' => esc_html__('Gallery', 'civi-framework'),
										'fields_service_video' => esc_html__('Video', 'civi-framework'),
										'fields_service_skills' => esc_html__('Skills', 'civi-framework'),
										'fields_service_addons' => esc_html__('Addons', 'civi-framework'),
										'fields_service_faq' => esc_html__('Faqs', 'civi-framework'),
									),
									'value_inline' => false,
									'default' => array()
								),
							)
						),
					)
				);

				//Search Service
				$option_search_service = array(
					'id' => 'service_search_group',
					'title' => esc_html__('Search Service', 'civi-framework'),
					'type' => 'group',
					'fields' => array(
						array(
							'id' => 'enable_service_search_bg',
							'type' => 'button_set',
							'title' => esc_html__('Enable Background', 'civi-framework'),
							'subtitle' => esc_html__('Show/Hidden Background', 'civi-framework'),
							'desc' => '',
							'options' => array(
								'1' => esc_html__('On', 'civi-framework'),
								'0' => esc_html__('Off', 'civi-framework'),
							),
							'default' => '0',
						),
						array(
							'id' => 'enable_service_search_location_top',
							'type' => 'button_set',
							'title' => esc_html__('Enable Search City/Town (Top)', 'civi-framework'),
							'subtitle' => esc_html__('Show/Hidden Search City/Town', 'civi-framework'),
							'desc' => '',
							'options' => array(
								'1' => esc_html__('On', 'civi-framework'),
								'0' => esc_html__('Off', 'civi-framework'),
							),
							'default' => '0',
						),
						array(
							'id' => 'enable_service_search_location_radius',
							'type' => 'button_set',
							'title' => esc_html__('Enable Search location radius', 'civi-framework'),
							'subtitle' => esc_html__('Show/Hidden search location radius', 'civi-framework'),
							'desc' => '',
							'options' => array(
								'1' => esc_html__('On', 'civi-framework'),
								'0' => esc_html__('Off', 'civi-framework'),
							),
							'default' => '1',
						),
						array(
							'id' => "service_search_color",
							'title' => esc_html__('Color', 'civi-framework'),
							'type' => 'color',
							'col' => '12',
							'default' => '',
							'required' => array(
								array("enable_service_search_bg", '=', '1'),
							),
						),
						array(
							'id' => "service_search_image",
							'title' => esc_html__('Image', 'civi-framework'),
							'type' => 'image',
							'default' => '',
							'col' => '12',
							'required' => array(
								array("enable_service_search_bg", '=', '1'),
							),
						),
						array(
							'id' => 'service_search_fields',
							'title' => esc_html__('Search Fields', 'civi-framework'),
							'type' => 'sorter',
							'default' => array(
								'top' => array(
									'service-categories' => esc_html__('Categories', 'civi-framework'),
								),
								'sidebar' => array(
									'service-rating' => esc_html__('Rating', 'civi-framework'),
									'service-price' => esc_html__('Price', 'civi-framework'),
									'service-language-level' => esc_html__('Languages Level', 'civi-framework'),
								),
								'disable' => array(
									'service-location' => esc_html__('Location', 'civi-framework'),
									'service-skills' => esc_html__('Skills', 'civi-framework'),
									'service-language' => esc_html__('Language', 'civi-framework'),
								)
							),
						),
						array(
							'id' => 'service_search_fields_service-categories',
							'title' => esc_html__('Icon Categories', 'civi-framework'),
							'type' => 'text',
							'desc' => esc_html__('Please enter the html code of the "fontawesome" icon to display it', 'civi-framework'),
						),
						array(
							'id' => 'service_search_fields_service-rating',
							'title' => esc_html__('Icon Rating', 'civi-framework'),
							'type' => 'text',
							'desc' => esc_html__('Please enter the html code of the "fontawesome" icon to display it', 'civi-framework'),
						),
						array(
							'id' => 'service_search_fields_service-skills',
							'title' => esc_html__('Icon Skills', 'civi-framework'),
							'type' => 'text',
							'desc' => esc_html__('Please enter the html code of the "fontawesome" icon to display it', 'civi-framework'),
						),
						array(
							'id' => 'service_search_fields_service-language',
							'title' => esc_html__('Icon Language', 'civi-framework'),
							'type' => 'text',
							'desc' => esc_html__('Please enter the html code of the "fontawesome" icon to display it', 'civi-framework'),
						),
						array(
							'id' => 'service_search_fields_service-language-level',
							'title' => esc_html__('Icon Languages Level', 'civi-framework'),
							'type' => 'text',
							'desc' => esc_html__('Please enter the html code of the "fontawesome" icon to display it', 'civi-framework'),
						),
						array(
							'id' => 'service_search_fields_location',
							'title' => esc_html__('Icon City', 'civi-framework'),
							'type' => 'text',
							'desc' => esc_html__('Please enter the html code of the "fontawesome" icon to display it', 'civi-framework'),
						),
						array(
							'id' => 'service_search_fields_state',
							'title' => esc_html__('Icon State', 'civi-framework'),
							'type' => 'text',
							'desc' => esc_html__('Please enter the html code of the "fontawesome" icon to display it', 'civi-framework'),
						),
						array(
							'id' => 'service_search_fields_country',
							'title' => esc_html__('Icon Country', 'civi-framework'),
							'type' => 'text',
							'desc' => esc_html__('Please enter the html code of the "fontawesome" icon to display it', 'civi-framework'),
						),
					)
				);
			}

			return
				apply_filters('civi_register_service_option_listing_setting_page', array(
					'id' => 'civi_listing_service_setting_page_option',
					'title' => esc_html__('Services Option', 'civi-framework'),
					'icon' => 'dashicons-nametag',
					'fields' => array(
						array(
							'id' => 'enable_post_type_service',
							'type' => 'button_set',
							'title' => esc_html__('Enable Services', 'civi-framework'),
							'subtitle' => esc_html__('Enable/Disable Services', 'civi-framework'),
							'desc' => '',
							'options' => array(
								'1' => esc_html__('On', 'civi-framework'),
								'0' => esc_html__('Off', 'civi-framework'),
							),
							'default' => '0',
						),

						array(
							'id' => 'enable_candidate_service_fee',
							'type' => 'button_set',
							'title' => esc_html__('Enable Candidate Service Fee', 'civi-framework'),
							'subtitle' => esc_html__('Enable/Disable Candidate Service Fee', 'civi-framework'),
							'desc' => '',
							'options' => array(
								'1' => esc_html__('On', 'civi-framework'),
								'0' => esc_html__('Off', 'civi-framework'),
							),
							'default' => '1',
							'required' => array(
								array("enable_post_type_service", '=', '1'),
							),
						),

						array(
							'id' => "candidate_number_service_fee",
							'title' => esc_html__('Number Candidate Service Fee', 'civi-framework'),
							'subtitle' => esc_html__('Enter (%) Candidate Service Fee', 'civi-framework'),
							'type' => 'text',
							'default' => '10',
							'pattern' => '[0-9]*',
							'required' => array(
								array("enable_post_type_service", '=', '1'),
								array("enable_candidate_service_fee", '=', '1')
							),
						),

						//Archive Service
						apply_filters('civi_register_option_archive_service_page_top', array()),
						apply_filters(
							'civi_register_option_archive_service_page_main',
							$option_archive_service
						),
						apply_filters('civi_register_option_archive_service_page_bottom', array()),

						//Single Service
						apply_filters('civi_register_option_single_service_page_top', array()),
						apply_filters(
							'civi_register_option_single_service_page_main',
							$option_single_service
						),
						apply_filters('civi_register_option_single_service_page_bottom', array()),

						//Service Submit
						apply_filters('civi_option_service_submit_top', array()),
						apply_filters(
							'civi_option_service_submit_main',
							$option_submit_service
						),
						apply_filters('civi_option_service_submit_bottom', array()),

						//Service Search
						apply_filters('civi_register_option_search_service_page_top', array()),
						apply_filters(
							'civi_register_option_search_service_page_main',
							$option_search_service
						),
						apply_filters('civi_register_option_search_service_page_bottom', array())
					),
				));
		}

		/**
		 * @return mixed|void
		 */
		private function email_management_option()
		{
			return apply_filters('civi_register_option_email_management', array(
				'id' => 'civi_email_management_option',
				'title' => esc_html__('Email Template', 'civi-framework'),
				'icon' => 'dashicons-email-alt',
				'fields' => array_merge(
					apply_filters('civi_register_option_email_management_top', array()),
					array(
						//Header
						array(
							'id' => 'email-header',
							'title' => esc_html__('Header Email', 'civi-framework'),
							'type' => 'group',
							'toggle_default' => false,
							'fields' => array(
								array(
									'id' => 'logo_email',
									'type' => 'text',
									'title' => esc_html__('Logo Email', 'civi-framework'),
									'default' => '',
									'subtitle' => esc_html__('Choose link logo for email', 'civi-framework'),
								),
								array(
									'id' => 'title_email',
									'type' => 'text',
									'title' => esc_html__('Title', 'civi-framework'),
									'default' => esc_html__('Welcome to %website_url!', 'civi-framework'),
								),
							)
						),
						//Content
						array(
							'id' => 'email-content',
							'title' => esc_html__('Content Email', 'civi-framework'),
							'type' => 'group',
							'toggle_default' => false,
							'fields' => array_merge(
								apply_filters('civi_register_option_email_content_top', array()),
								array(
									array(
										'id' => 'email-new-user',
										'title' => esc_html__('New Registed User', 'civi-framework'),
										'type' => 'group',
										'toggle_default' => false,
										'fields' => array(
											array(
												'id' => 'civi_user_mail_register_user',
												'type' => 'info',
												'style' => 'info',
												'title' => esc_html__('User Email', 'civi-framework'),
											),
											array(
												'id' => 'subject_mail_register_user',
												'type' => 'text',
												'title' => esc_html__('Subject', 'civi-framework'),
												'default' => esc_html__('Your username and password on %website_url', 'civi-framework'),
											),
											array(
												'id' => 'mail_register_user',
												'type' => 'editor',
												'args' => array(
													'media_buttons' => true,
													'quicktags' => true,
												),
												'title' => esc_html__('Content', 'civi-framework'),
												'default' => esc_html__(
													'You can login now using the below credentials:
										Username: %your_name
										Password: %user_pass_register
										If you have any problems, please contact us.
										Thank you!',
													'civi-framework'
												),
											),
											array(
												'id' => 'civi_admin_mail_register_user',
												'type' => 'info',
												'style' => 'info',
												'title' => esc_html__('Admin Email', 'civi-framework'),
											),
											array(
												'id' => 'subject_admin_mail_register_user',
												'type' => 'text',
												'title' => esc_html__('Subject', 'civi-framework'),
												'default' => esc_html__('New User Registration', 'civi-framework'),
											),
											array(
												'id' => 'admin_mail_register_user',
												'type' => 'editor',
												'args' => array(
													'media_buttons' => true,
													'quicktags' => true,
												),
												'title' => esc_html__('Content', 'civi-framework'),
												'default' => esc_html__(
													'New user registration on %website_url.
												E-mail: %user_login_register',
													'civi-framework'
												),
											)
										)
									),
									array(
										'id' => 'mail-verify-user',
										'title' => esc_html__('Verify User', 'civi-framework'),
										'type' => 'group',
										'toggle_default' => false,
										'fields' => array(
											array(
												'id' => 'civi_user_mail_verify_user',
												'type' => 'info',
												'style' => 'info',
												'title' => esc_html__('User Email', 'civi-framework'),
											),
											array(
												'id' => 'subject_mail_verify_user',
												'type' => 'text',
												'title' => esc_html__('Subject', 'civi-framework'),
												'default' => esc_html__('Account Verification', 'civi-framework'),
											),
											array(
												'id' => 'mail_verify_user',
												'type' => 'editor',
												'args' => array(
													'media_buttons' => true,
													'quicktags' => true,
												),
												'title' => esc_html__('Content', 'civi-framework'),
												'default' => esc_html__(
													"To verify your email address, please use the following One Time Password (OTP):
													%code_verify_user
												If you have any problems, please contact us.
												Thank you!",
													'civi-framework'
												),
											)
										)
									),
									array(
										'id' => 'email-activated-package',
										'title' => esc_html__('Activated Package', 'civi-framework'),
										'type' => 'group',
										'toggle_default' => false,
										'fields' => array(
											array(
												'id' => 'civi_user_mail_activated_package',
												'type' => 'info',
												'style' => 'info',
												'title' => esc_html__('User Email', 'civi-framework'),
											),
											array(
												'id' => 'subject_mail_activated_package',
												'type' => 'text',
												'title' => esc_html__('Subject', 'civi-framework'),
												'default' => esc_html__('Your purchase was activated', 'civi-framework'),
											),
											array(
												'id' => 'mail_activated_package',
												'type' => 'editor',
												'args' => array(
													'media_buttons' => true,
													'quicktags' => true,
												),
												'title' => esc_html__('Content', 'civi-framework'),
												'default' => esc_html__(
													"Hi thcivi,
										Welcome to %website_url and thank you for purchasing a plan with us. We are excited you have chosen %website_name . %website_name is a great jobs to advertise and search properties.
										You plan on  %website_url activated! You can now list your properties according to you plan.",
													'civi-framework'
												),
											),
											array(
												'id' => 'civi_admin_mail_activated_package',
												'type' => 'info',
												'style' => 'info',
												'title' => esc_html__('Admin Email', 'civi-framework'),
											),
											array(
												'id' => 'subject_admin_mail_activated_package',
												'type' => 'text',
												'title' => esc_html__('Subject', 'civi-framework'),
												'default' => esc_html__('Your package has been purchased by 1 user', 'civi-framework'),
											),
											array(
												'id' => 'admin_mail_activated_package',
												'type' => 'editor',
												'args' => array(
													'media_buttons' => true,
													'quicktags' => true,
												),
												'title' => esc_html__('Content', 'civi-framework'),
												'default' => esc_html__(
													"We are excited to inform you that a user has successfully purchased your package! Here are the details:User Name: %your_name,User Email: %user_email,Package ID: %package_id",
													'civi-framework'
												),
											),
										)
									),
									array(
										'id' => 'new-jobs-apply',
										'title' => esc_html__('Apply Jobs', 'civi-framework'),
										'type' => 'group',
										'toggle_default' => false,
										'fields' => array(
											array(
												'id' => 'civi_info_mail_candidate_apply',
												'type' => 'info',
												'style' => 'info',
												'title' => esc_html__('User Email', 'civi-framework'),
											),
											array(
												'id' => 'subject_mail_candidate_apply',
												'type' => 'text',
												'title' => esc_html__('Subject', 'civi-framework'),
												'default' => esc_html__('You have successfully applied on %website_url', 'civi-framework'),
											),
											array(
												'id' => 'mail_candidate_apply',
												'type' => 'editor',
												'args' => array(
													'media_buttons' => true,
													'quicktags' => true,
												),
												'title' => esc_html__('Content', 'civi-framework'),
												'default' => esc_html__(
													'Hi %user_apply,
										You have applied for 1 job on %website_url.
										Jobs Title: %jobs_apply
										Jobs Url: %jobs_url',
													'civi-framework'
												),
											),
											array(
												'id' => 'civi_info_mail_employer_apply',
												'type' => 'info',
												'style' => 'info',
												'title' => esc_html__('Admin Email', 'civi-framework'),
											),
											array(
												'id' => 'subject_mail_employer_apply',
												'type' => 'text',
												'title' => esc_html__('Subject', 'civi-framework'),
												'default' => esc_html__('There is 1 candidate applied for your job', 'civi-framework'),
											),
											array(
												'id' => 'mail_employer_apply',
												'type' => 'editor',
												'args' => array(
													'media_buttons' => true,
													'quicktags' => true,
												),
												'title' => esc_html__('Content', 'civi-framework'),
												'default' => esc_html__(
													'Hi,
										Your jobs on %website_url has been applied.
										Jobs Title: %jobs_apply
										Jobs Url: %jobs_url
										Cv Url: %cv_url
										User Apply: %user_apply
										User Info: %user_url',
													'civi-framework'
												),
											),
											array(
												'id' => 'civi_info_mail_candidate_apply_nlogin',
												'type' => 'info',
												'style' => 'info',
												'title' => esc_html__('Candidate Email (Not Login)', 'civi-framework'),
											),
											array(
												'id' => 'subject_mail_candidate_apply_nlogin',
												'type' => 'text',
												'title' => esc_html__('Subject', 'civi-framework'),
												'default' => esc_html__('There is 1 candidate applied for your job', 'civi-framework'),
											),
											array(
												'id' => 'mail_candidate_apply_nlogin',
												'type' => 'editor',
												'args' => array(
													'media_buttons' => true,
													'quicktags' => true,
												),
												'title' => esc_html__('Content', 'civi-framework'),
												'default' => esc_html__(
													'Hi,
										Your jobs on %website_url has been applied.
										Jobs Title: %jobs_apply
										Jobs Url: %jobs_url
										CV Url: %cv_url
										Message: %message',
													'civi-framework'
												),
											),
										)
									),
									array(
										'id' => 'email-activated-listing',
										'title' => esc_html__('Activated Jobs', 'civi-framework'),
										'type' => 'group',
										'toggle_default' => false,
										'fields' => array(
											array(
												'id' => 'civi_user_mail_activated_listing',
												'type' => 'info',
												'style' => 'info',
												'title' => esc_html__('User Email', 'civi-framework'),
											),
											array(
												'id' => 'subject_mail_activated_listing',
												'type' => 'text',
												'title' => esc_html__('Subject', 'civi-framework'),
												'default' => esc_html__('Your purchase was activated', 'civi-framework'),
											),
											array(
												'id' => 'mail_activated_listing',
												'type' => 'editor',
												'args' => array(
													'media_buttons' => true,
													'quicktags' => true,
												),
												'title' => esc_html__('Content', 'civi-framework'),
												'default' => esc_html__('Hi thcivi,Your purchase on %website_url is activated! You should go and check it out.', 'civi-framework'),
											)
										)
									),
									array(
										'id' => 'email-approved-listing',
										'title' => esc_html__('Approved Jobs', 'civi-framework'),
										'type' => 'group',
										'toggle_default' => false,
										'fields' => array(
											array(
												'id' => 'civi_user_mail_approved_listing',
												'type' => 'info',
												'style' => 'info',
												'title' => esc_html__('User Email', 'civi-framework'),
											),
											array(
												'id' => 'subject_mail_approved_listing',
												'type' => 'text',
												'title' => esc_html__('Subject', 'civi-framework'),
												'default' => esc_html__('Your listing approved', 'civi-framework'),
											),
											array(
												'id' => 'mail_approved_listing',
												'type' => 'editor',
												'args' => array(
													'media_buttons' => true,
													'quicktags' => true,
												),
												'title' => esc_html__('Content', 'civi-framework'),
												'default' => esc_html__(
													"Hi thcivi,
										Your jobs on %website_url has been approved.
										Your Name:%your_name
										Jobs Title:%listing_title
										Jobs Url: %listing_url",
													'civi-framework'
												),
											)
										)
									),
									array(
										'id' => 'email-expired-listing',
										'title' => esc_html__('Expired Jobs', 'civi-framework'),
										'type' => 'group',
										'toggle_default' => false,
										'fields' => array(
											array(
												'id' => 'civi_user_mail_expired_listing',
												'type' => 'info',
												'style' => 'info',
												'title' => esc_html__('User Email', 'civi-framework'),
											),
											array(
												'id' => 'subject_mail_expired_listing',
												'type' => 'text',
												'title' => esc_html__('Subject', 'civi-framework'),
												'default' => esc_html__('Your listing expired', 'civi-framework'),
											),
											array(
												'id' => 'mail_expired_listing',
												'type' => 'editor',
												'args' => array(
													'media_buttons' => true,
													'quicktags' => true,
												),
												'title' => esc_html__('Content', 'civi-framework'),
												'default' => esc_html__(
													"Hi,
										Your jobs on %website_url has been expired.

										Jobs Title:%listing_title
										Jobs Url: %listing_url",
													'civi-framework'
												),
											)
										)
									),
									array(
										'id' => 'email-job-alerts',
										'title' => esc_html__('Job Alerts', 'civi-framework'),
										'type' => 'group',
										'toggle_default' => false,
										'fields' => array(
											array(
												'id' => 'civi_first_mail_job_alerts',
												'type' => 'info',
												'style' => 'info',
												'title' => esc_html__('First Email', 'civi-framework'),
											),
											array(
												'id' => 'subject_first_mail_job_alerts',
												'type' => 'text',
												'title' => esc_html__('Subject', 'civi-framework'),
												'default' => esc_html__('New Job Announcement', 'civi-framework'),
											),
											array(
												'id' => 'first_mail_job_alerts',
												'type' => 'editor',
												'args' => array(
													'media_buttons' => true,
													'quicktags' => true,
												),
												'title' => esc_html__('Content', 'civi-framework'),
												'default' => wp_kses_post(
													'Hello,
												Thank you for signing up, you will receive %frequency job related information.
												Best regards,
												Do not notify me anymore? <a href="%unregister_link">Click here</a>',
												),
											),
											array(
												'id' => 'civi_last_mail_job_alerts',
												'type' => 'info',
												'style' => 'info',
												'title' => esc_html__('Last Email', 'civi-framework'),
											),
											array(
												'id' => 'subject_last_mail_job_alerts',
												'type' => 'text',
												'title' => esc_html__('Subject', 'civi-framework'),
												'default' => esc_html__('New Job Announcement', 'civi-framework'),
											),
											array(
												'id' => 'last_mail_job_alerts',
												'type' => 'editor',
												'args' => array(
													'media_buttons' => true,
													'quicktags' => true,
												),
												'title' => esc_html__('Content', 'civi-framework'),
												'default' => wp_kses_post(
													'Hello,
												There are %number jobs found at your request, job listing below:
												%list_job
												Best regards,
												Do not notify me anymore? <a href="%unregister_link">Click here</a>',
												),
											),
										)
									),
									array(
										'id' => 'email-approved-apply',
										'title' => esc_html__('Approved Applicants', 'civi-framework'),
										'type' => 'group',
										'toggle_default' => false,
										'fields' => array(
											array(
												'id' => 'civi_user_mail_approved_applicants',
												'type' => 'info',
												'style' => 'info',
												'title' => esc_html__('User Email', 'civi-framework'),
											),
											array(
												'id' => 'subject_mail_approved_applicants',
												'type' => 'text',
												'title' => esc_html__('Subject', 'civi-framework'),
												'default' => esc_html__('Your Applicants approved', 'civi-framework'),
											),
											array(
												'id' => 'mail_approved_applicants',
												'type' => 'editor',
												'args' => array(
													'media_buttons' => true,
													'quicktags' => true,
												),
												'title' => esc_html__('Content', 'civi-framework'),
												'default' => esc_html__(
													"Hi,
										You have been approved by the employer: %employer_name
										Jobs Apply: %jobs_apply
										Jobs Url: %jobs_url",
													'civi-framework'
												),
											)
										)
									),
									array(
										'id' => 'email-job-invite',
										'title' => esc_html__('Invite Jobs', 'civi-framework'),
										'type' => 'group',
										'toggle_default' => false,
										'fields' => array(
											array(
												'id' => 'civi_user_mail_job_invite',
												'type' => 'info',
												'style' => 'info',
												'title' => esc_html__('User Email', 'civi-framework'),
											),
											array(
												'id' => 'subject_mail_job_invite',
												'type' => 'text',
												'title' => esc_html__('Subject', 'civi-framework'),
												'default' => esc_html__('Your Jobs Invite', 'civi-framework'),
											),
											array(
												'id' => 'mail_job_invite',
												'type' => 'editor',
												'args' => array(
													'media_buttons' => true,
													'quicktags' => true,
												),
												'title' => esc_html__('Content', 'civi-framework'),
												'default' => esc_html__(
													"Hi, You have been invite by the employer: %employer_name
												Jobs Invite: %jobs_invite",
													'civi-framework'
												),
											)
										)
									),
									array(
										'id' => 'email-new-wire-transfer',
										'title' => esc_html__('New Wire Transfer', 'civi-framework'),
										'type' => 'group',
										'toggle_default' => false,
										'fields' => array(
											array(
												'id' => 'civi_user_mail_new_wire_transfer',
												'type' => 'info',
												'style' => 'info',
												'title' => esc_html__('User Email', 'civi-framework'),
											),
											array(
												'id' => 'subject_mail_new_wire_transfer',
												'type' => 'text',
												'title' => esc_html__('Subject', 'civi-framework'),
												'default' => esc_html__('You ordcivid a new Wire Transfer', 'civi-framework'),
											),
											array(
												'id' => 'mail_new_wire_transfer',
												'type' => 'editor',
												'args' => array(
													'media_buttons' => true,
													'quicktags' => true,
												),
												'title' => esc_html__('Content', 'civi-framework'),
												'default' => esc_html__(
													'We received your Wire Transfer payment request on  %website_url !
										Please follow the instructions below in order to start submitting properties as soon as possible.
										The invoice number is: %invoice_no, Amount: %total_price.',
													'civi-framework'
												),
											),
											array(
												'id' => 'civi_admin_mail_new_wire_transfer',
												'type' => 'info',
												'style' => 'info',
												'title' => esc_html__('Admin Email', 'civi-framework'),
											),
											array(
												'id' => 'subject_admin_mail_new_wire_transfer',
												'type' => 'text',
												'title' => esc_html__('Subject', 'civi-framework'),
												'default' => esc_html__('Somebody ordcivid a new Wire Transfer', 'civi-framework'),
											),
											array(
												'id' => 'admin_mail_new_wire_transfer',
												'type' => 'editor',
												'args' => array(
													'media_buttons' => true,
													'quicktags' => true,
												),
												'title' => esc_html__('Content', 'civi-framework'),
												'default' => esc_html__(
													'We received your Wire Transfer payment request on  %website_url !
										Please follow the instructions below in order to start submitting properties as soon as possible.
										The invoice number is: %invoice_no, Amount: %total_price.',
													'civi-framework'
												),
											)
										)
									),
									array(
										'id' => 'email-meetings',
										'title' => esc_html__('Notification Meetings', 'civi-framework'),
										'type' => 'group',
										'toggle_default' => false,
										'fields' => array(
											array(
												'id' => 'civi_info_mail_notification_meetings',
												'type' => 'info',
												'style' => 'info',
												'title' => esc_html__('Notification Meetings', 'civi-framework'),
											),
											array(
												'id' => 'subject_mail_notification_meetings',
												'type' => 'text',
												'title' => esc_html__('Subject', 'civi-framework'),
												'default' => esc_html__('You have a notification about the meeting', 'civi-framework'),
											),
											array(
												'id' => 'mail_notification_meetings',
												'type' => 'editor',
												'args' => array(
													'media_buttons' => true,
													'quicktags' => true,
												),
												'title' => esc_html__('Content', 'civi-framework'),
												'default' => esc_html__(
													'There is a meeting coming up at %website_url!
												Job related meeting: %jobs_meetings!
												Time for the meeting to start %date_time.',
													'civi-framework'
												),
											),
										)
									)
								),
								apply_filters('civi_register_option_email_content_bottom', array()),
							)
						),
						//Footer
						array(
							'id' => 'email-footer',
							'title' => esc_html__('Footer Email', 'civi-framework'),
							'type' => 'group',
							'toggle_default' => false,
							'fields' => array(
								array(
									'id' => 'mail_footer_user',
									'type' => 'editor',
									'args' => array(
										'media_buttons' => true,
										'quicktags' => true,
									),
									'title' => esc_html__('Content', 'civi-framework'),
									'default' => esc_html__(
										'Do you need help? Contact us
                                        T. (00) 658 54332
                                        E. hello@uxper.co
                                        © 2023 Uxper. All Right Reserved.',
										'civi-framework'
									),
								),
							)
						),
					),
					apply_filters('civi_register_option_email_management_bottom', array())
				)
			));
		}
	}
}
