<?php wpj_display_user_graph( 'shopping' ); ?>

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

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

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

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

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

		</div>

		<!-- Filter buttons -->
		<?php wpj_display_filter_buttons( 'user_feedback' );

		// Page content
		foreach ( $tabs as $pg => $tab_info ) {

			if ( $pg == 'ratings-to-award' ) { ?>

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

					<?php wpj_display_ratings_to_award_list(); ?>

				</div>

			<?php } elseif ( $pg == 'pending-ratings' ) { ?>

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

					<?php wpj_display_ratings_pending_list(); ?>>

				</div>

			<?php } elseif ( $pg == 'my-ratings' ) { ?>

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

					<?php wpj_display_ratings_received_list(); ?>

				</div>

			<?php }

		} ?>

	</div>
		
</div>