<?php wpj_init_request_modals();

wpj_display_user_graph( 'shopping' ); ?>

<div class="user-dashboard-wrapper">

	<?php wpj_display_user_sidebar( get_current_user_id() ); ?>

	<div class="user-requests-wrapper js-user-requests-wrapper user-dashboard-page pr">

		<!-- Title -->
		<div class="ui basic notpadded cf mb20">

			<?php wpj_display_title( array( 'title' => __( 'My Requests', 'wpjobster' ), 'title_class' => 'left' ) ); ?>

			<div class="right wpj-group">

				<?php wpj_display_request_bulk_action_button();

				wpj_display_button( __( 'Post New', 'wpjobster' ), 'link', get_permalink( wpj_get_option( 'wpjobster_new_request_page_id' ) ), '' ); ?>

			</div>

		</div>

		<?php // Request created message
		wpj_display_request_notices();

		// Filter buttons
		wpj_display_filter_buttons( 'user_requests' );

		// Requests list
		foreach ( $tabs as $pg => $tab_info ) { ?>

			<div class="ui tab <?php if ( $active_tab == $pg ) { echo 'active'; } ?>" data-tab="<?php echo $pg; ?>">

				<?php wpj_display_user_posted_requests_list( $pg ); ?>

			</div>

		<?php } ?>

	</div>

</div>