// check if current user matches the report user
	// or if the current user is an admin
	// if not, send them back to their admin page

	if ($current_user->ID != $report->report_client['ID'] && !current_user_can('manage_options')) {
		auth_redirect();
	}
	
	// Get all report content
	// then sort it and get ready to be printed to the screen
	$features_recap = sort_repeater('features_recap');	
	$pending_recap = sort_repeater('pending_recap');
	$passed_recap = sort_repeater('passed_recap');
	$news_recap = sort_repeater('news_recap');
	$tv_radio_recap = sort_repeater('tv_radio_recap');
	$reviews_recap = sort_repeater('reviews_recap');

	get_header();
?>

<?php the_partial('nav'); ?>
	
<?php if ( have_post ) : while ( have_posts() ) : the_post(); ?>
	<div class="hero">
		<div class="page-container">
			<div class="client-mantle">
				<?php if (get_field('client_image', $report->report_client['ID'])): ?>
					<div class="client-mantle__img-wrap">
						<img class="" src="<?php echo get_field( 'client_image', 'user_' . $report->report_client['ID'] )['url']; ?>" alt="">
					</div>
				<?php endif ?>
<?php 
	$features_recap = sort_repeater('features_recap');
	$reviews_recap = sort_repeater('reviews_recap');
	$pending_recap = sort_repeater('pending_recap');
	$passed_recap = sort_repeater('passed_recap');
	$news_recap = sort_repeater('news_recap');
	$tv_radio_recap = sort_repeater('tv_radio_recap');
	$tours_recap = get_field('tour_recap', $post->ID);
?>

<?php if ($features_recap || $reviews_recap || $pending_recap || $passed_recap || $news_recap || $tv_radio_recap || $tours_recap) : ?>
	<nav class="nav">
		<button class="menu" data-js-component="nav">
			<span class="menu__bar"></span>
			<span class="menu__bar"></span>
			<span class="menu__bar"></span>
		</button>
		<div class="nav__wrapper">
			<?php if ( $features_recap ) : ?>
			<a class="nav__item" href="#features">Features</a>
			<?php endif; ?>

			<?php if ( $reviews_recap ) : ?>
			<a class="nav__item" href="#reviews">Reviews</a>
			<?php endif; ?>

			<?php if ( $tours_recap ) : ?>
			<a class="nav__item" href="#tours">Tour</a>
			<?php endif; ?>

			<?php if ( $pending_recap ) : ?>