<?php
/**
 * Template to display a Project Lists.
 *
 * @package voidempo
 */

if ( ! defined( 'ABSPATH' ) ) {
	exit; // Exit if accessed directly.
}
if ( ! is_user_logged_in() ) {
	wp_send_json_error( [ 'message' => 'Unauthorized' ], 403 );
	wp_die();
}
global $wpdb;
?>
<div class="mt-5">
	<h3>
		<center> My Projects </center>
	</h3>
	<div class="d-flex p-3 justify-content-end">
	<button class="btn btn-primary load-page-btn" data-page="voidempo_create_task">Create New Task</button>
	</div>

	<table id="voidempo_project_view" class="table table-striped table-bordered" style="width:100%">
		<thead>
			<tr>
				<th>Project Name</th>
				<th>Members</th>
				<th>Manager</th>
				<th>Status</th>
				<th>Project Start Date</th>
				<th>Project End Date</th>
				<th>Actions</th>
			</tr>
		</thead>
		<tbody>
		</tbody>
	</table>
</div>
<div>

</div>
<div class="lp-ad-screen" style="display:none;">
<span><img src="<?php echo esc_url( get_site_url() . '/wp-content/plugins/voidek-employee-portal/assets/images/loader.gif' ); ?>" alt="Loading..."></span>
	</div>
<div>

</div>
<?php
require VOIDEMPO_PLUGIN_PATH . 'templates/footer.php';
?>
