<?php if (!defined('ABSPATH')) die('Restricted Access'); ?>
<?php
/**
*
*/
?>
<tr>
    <td>
        <input type="checkbox" class="wpjobportal-cb" id="wpjobportal-cb" name="wpjobportal-cb[]" value="<?php echo esc_attr($wpjobportal_row->id); ?>" />
    </td>
    <td>
        <a href="<?php echo esc_url($wpjobportal_link); ?>" title="<?php echo esc_attr(__('Name','wp-job-portal')); ?>">
            <?php echo esc_html(wpjobportal::wpjobportal_getVariableValue($wpjobportal_row->name)); ?>
        </a>
    </td>
    <td>
        <?php echo esc_html(wpjobportal::wpjobportal_getVariableValue($wpjobportal_row->internationalname)); ?>
    </td>
    <td>
        <?php echo esc_html(wpjobportal::wpjobportal_getVariableValue($wpjobportal_row->localname)); ?>
    </td>

    <td>
        <?php if ($wpjobportal_row->enabled == '1') { ?>
	        <a href="<?php echo esc_url(wp_nonce_url(admin_url('admin.php?page=wpjobportal_state&task=unpublish&action=wpjobportaltask&wpjobportal-cb[]='.$wpjobportal_row->id.$wpjobportal_pageid),'wpjobportal_state_nonce')); ?>" title="<?php echo esc_attr(__('published', 'wp-job-portal')); ?>">
	            <img src="<?php echo esc_url(WPJOBPORTAL_PLUGIN_URL); ?>includes/images/control_panel/dashboard/good.png" border="0" alt="<?php echo esc_attr(__('Published', 'wp-job-portal')); ?>" />
	        </a>
       <?php } else { ?>
	        <a href="<?php echo esc_url(wp_nonce_url(admin_url('admin.php?page=wpjobportal_state&task=publish&action=wpjobportaltask&wpjobportal-cb[]='.$wpjobportal_row->id.$wpjobportal_pageid),'wpjobportal_state_nonce')); ?>" title="<?php echo esc_attr(__('Not Published', 'wp-job-portal')); ?>">
	            <img src="<?php echo esc_url(WPJOBPORTAL_PLUGIN_URL); ?>includes/images/control_panel/dashboard/close.png" border="0" alt="<?php echo esc_attr(__('Not Published', 'wp-job-portal')); ?>" />
	        </a>
		<?php } ?>
    </td>
    <td>
        <a href="<?php echo esc_url_raw(admin_url('admin.php?page=wpjobportal_city&stateid='.esc_attr($wpjobportal_row->id).'&countryid='.esc_attr($wpjobportal_row->countryid))); ?>" title="<?php echo esc_attr(__('Cities', 'wp-job-portal')); ?>">
            <?php echo esc_html(__('Cities', 'wp-job-portal')); ?>
        </a>
    </td>
    <td>
        <a class="wpjobportal-table-act-btn" href="<?php echo esc_url($wpjobportal_link); ?>" title="<?php echo esc_attr(__('Edit', 'wp-job-portal')); ?>">
            <img src="<?php echo esc_url(WPJOBPORTAL_PLUGIN_URL); ?>includes/images/control_panel/dashboard/edit.png" alt="<?php echo esc_attr(__('Edit', 'wp-job-portal')); ?>">
        </a>
        <a class="wpjobportal-table-act-btn" href="<?php echo esc_url(wp_nonce_url(admin_url('admin.php?page=wpjobportal_state&task=remove&action=wpjobportaltask&wpjobportal-cb[]='.$wpjobportal_row->id),'wpjobportal_state_nonce')); ?>" onclick='return confirmdelete("<?php echo esc_js(__('Are you sure to delete', 'wp-job-portal')).' ?'; ?>");' title="<?php echo esc_attr(__('Delete', 'wp-job-portal')); ?>">
            <img src="<?php echo esc_url(WPJOBPORTAL_PLUGIN_URL); ?>includes/images/control_panel/dashboard/delete.png" alt="<?php echo esc_attr(__('Delete', 'wp-job-portal')); ?>">
        </a>
    </td>
</tr>
