<html>
<?php if (isset($component)) { $__componentOriginal0f509fab02c45445826003a1e50db506 = $component; } ?>
<?php $component = Illuminate\View\AnonymousComponent::resolve(['view' => 'components.head','data' => []] + (isset($attributes) && $attributes instanceof Illuminate\View\ComponentAttributeBag ? (array) $attributes->getIterator() : [])); ?>
<?php $component->withName('head'); ?>
<?php if ($component->shouldRender()): ?>
<?php $__env->startComponent($component->resolveView(), $component->data()); ?>
<?php if (isset($attributes) && $attributes instanceof Illuminate\View\ComponentAttributeBag && $constructor = (new ReflectionClass(Illuminate\View\AnonymousComponent::class))->getConstructor()): ?>
<?php $attributes = $attributes->except(collect($constructor->getParameters())->map->getName()->all()); ?>
<?php endif; ?>
<?php $component->withAttributes([]); ?>
<?php echo $__env->renderComponent(); ?>
<?php endif; ?>
<?php if (isset($__componentOriginal0f509fab02c45445826003a1e50db506)): ?>
<?php $component = $__componentOriginal0f509fab02c45445826003a1e50db506; ?>
<?php unset($__componentOriginal0f509fab02c45445826003a1e50db506); ?>
<?php endif; ?>

<body>

	<!-- Wrapper -->
	<div id="wrapper">
		<!-- Header -->
		<?php if (isset($component)) { $__componentOriginal2a2e454b2e62574a80c8110e5f128b60 = $component; } ?>
<?php $component = App\View\Components\Header::resolve([] + (isset($attributes) && $attributes instanceof Illuminate\View\ComponentAttributeBag ? (array) $attributes->getIterator() : [])); ?>
<?php $component->withName('header'); ?>
<?php if ($component->shouldRender()): ?>
<?php $__env->startComponent($component->resolveView(), $component->data()); ?>
<?php if (isset($attributes) && $attributes instanceof Illuminate\View\ComponentAttributeBag && $constructor = (new ReflectionClass(App\View\Components\Header::class))->getConstructor()): ?>
<?php $attributes = $attributes->except(collect($constructor->getParameters())->map->getName()->all()); ?>
<?php endif; ?>
<?php $component->withAttributes([]); ?>
<?php echo $__env->renderComponent(); ?>
<?php endif; ?>
<?php if (isset($__componentOriginal2a2e454b2e62574a80c8110e5f128b60)): ?>
<?php $component = $__componentOriginal2a2e454b2e62574a80c8110e5f128b60; ?>
<?php unset($__componentOriginal2a2e454b2e62574a80c8110e5f128b60); ?>
<?php endif; ?>

		<!-- Menu -->
		<?php if (isset($component)) { $__componentOriginaldadc8f6aa159c05f9151bf94d661e8e3 = $component; } ?>
<?php $component = App\View\Components\Menu::resolve([] + (isset($attributes) && $attributes instanceof Illuminate\View\ComponentAttributeBag ? (array) $attributes->getIterator() : [])); ?>
<?php $component->withName('menu'); ?>
<?php if ($component->shouldRender()): ?>
<?php $__env->startComponent($component->resolveView(), $component->data()); ?>
<?php if (isset($attributes) && $attributes instanceof Illuminate\View\ComponentAttributeBag && $constructor = (new ReflectionClass(App\View\Components\Menu::class))->getConstructor()): ?>
<?php $attributes = $attributes->except(collect($constructor->getParameters())->map->getName()->all()); ?>
<?php endif; ?>
<?php $component->withAttributes([]); ?>
<?php echo $__env->renderComponent(); ?>
<?php endif; ?>
<?php if (isset($__componentOriginaldadc8f6aa159c05f9151bf94d661e8e3)): ?>
<?php $component = $__componentOriginaldadc8f6aa159c05f9151bf94d661e8e3; ?>
<?php unset($__componentOriginaldadc8f6aa159c05f9151bf94d661e8e3); ?>
<?php endif; ?>

		<!-- Main -->
		<div id="main">
			<!-- Post -->
			<?php $__currentLoopData = $posts; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $post): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
			<?php if($post->blocked != 1): ?>
			<article class="post">
				<header>
					<div class="title">
						<h2><a href="<?php echo e(Route('post', $post->id)); ?>"><?php echo e($post->header); ?></a></h2>
						<p><?php echo e($post->subheader); ?></p>
					</div>
					<div class="meta">
						<time class="published" datetime="2015-11-01"><?php echo e($post->datepost); ?></time>
						<a href="<?php echo e(Route('user', $post->user_id)); ?>" class="author"><span class="name"><?php echo e($post->user->fullname); ?></span><img src="/blog_laravel/public/<?php echo e($post->user->avatar); ?>" alt="" /></a>
					</div>
				</header>
				<a href="<?php echo e(Route('post', $post->id)); ?>" class="image featured"><img src="/blog_laravel/public/<?php echo e($post->photo); ?>" alt="" /></a>
				<p><?php echo e($post->anons); ?></p>
				<footer>
					<ul class="actions">
						<li><a href="<?php echo e(Route('post', $post->id)); ?>" class="button big">Continue Reading</a></li>
					</ul>
					<ul class="stats">
						<li><a href="<?php echo e(Route('likes', $post->id)); ?>" class="icon fa-heart"><?php echo e($post->likes->count()); ?></a></li>
						<li><a href="<?php echo e(Route('post', $post->id)); ?>#comm" class="icon fa-comment"><?php echo e($post->comments->count()); ?></a></li>
					</ul>
				</footer>
			</article>
			<?php endif; ?>
			<?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>

			<!-- Pagination -->
			<?php echo e($posts->links('vendor.pagination.simple-default')); ?>


		</div>

		<!-- Sidebar -->
		<section id="sidebar">

			<!-- Intro -->
			<section id="intro">
				<a href="#" class="logo"><img src="/blog_laravel/public/images/logo.jpg" alt="" /></a>
				<header>
					<h2>Blog</h2>
					<p>Be popular with us</p>
				</header>
			</section>

			<!-- Mini Posts -->
			<section>
				<h3>Popular posts</h3>
				<div class="mini-posts">

					<!-- Mini Post -->
					<?php $__currentLoopData = $popularposts; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $popularpost): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
					<?php if($popularpost->blocked != 1): ?>
					<article class="mini-post">
						<header>
							<h3><a href="<?php echo e(Route('post', $post->id)); ?>">
									<?php echo e($popularpost->header); ?>

								</a></h3>
							<time class="published" datetime="<?php echo e($post->datepost); ?>">
								<?php echo e($popularpost->datepost); ?>

							</time>
							<a href="<?php echo e(Route('user', $popularpost->user_id)); ?>" class="author"><img src="/blog_laravel/public/<?php echo e($popularpost->user->avatar); ?>" alt="" /></a>
						</header>
						<a href="<?php echo e(Route('post', $popularpost->id)); ?>" class="image"><img src="/blog_laravel/public/<?php echo e($popularpost->photo); ?>" alt="" /></a>
					</article>
					<?php endif; ?>
					<?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
				</div>
			</section>

			<!-- Posts List -->
			<section>

				<h3>Rating bloggers</h3>
				<ul class="posts">
					<?php $__currentLoopData = $popularusers; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $popularuser): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
					<li>
						<article>
							<header>
								<h3><a href="<?php echo e(Route('user', $popularuser->id)); ?>"><?php echo e($popularuser->fullname); ?></a></h3>
								<span class="published"><?php echo e($popularuser->userLikes->count()); ?> likes in <?php echo e($popularuser->userPosts->count()); ?> posts</span>
							</header>
							<a href="<?php echo e(Route('user', $popularuser->id)); ?>" class="image"><img src="/blog_laravel/public/<?php echo e($popularuser->avatar); ?>" alt="" /></a>
						</article>
					</li>
					<?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
				</ul>
			</section>

			<!-- Footer -->
			<?php if (isset($component)) { $__componentOriginal8a8716efb3c62a45938aca52e78e0322 = $component; } ?>
<?php $component = Illuminate\View\AnonymousComponent::resolve(['view' => 'components.footer','data' => []] + (isset($attributes) && $attributes instanceof Illuminate\View\ComponentAttributeBag ? (array) $attributes->getIterator() : [])); ?>
<?php $component->withName('footer'); ?>
<?php if ($component->shouldRender()): ?>
<?php $__env->startComponent($component->resolveView(), $component->data()); ?>
<?php if (isset($attributes) && $attributes instanceof Illuminate\View\ComponentAttributeBag && $constructor = (new ReflectionClass(Illuminate\View\AnonymousComponent::class))->getConstructor()): ?>
<?php $attributes = $attributes->except(collect($constructor->getParameters())->map->getName()->all()); ?>
<?php endif; ?>
<?php $component->withAttributes([]); ?>
<?php echo $__env->renderComponent(); ?>
<?php endif; ?>
<?php if (isset($__componentOriginal8a8716efb3c62a45938aca52e78e0322)): ?>
<?php $component = $__componentOriginal8a8716efb3c62a45938aca52e78e0322; ?>
<?php unset($__componentOriginal8a8716efb3c62a45938aca52e78e0322); ?>
<?php endif; ?>

		</section>

	</div>

	<!-- Scripts -->
	<?php if (isset($component)) { $__componentOriginal23a21c0d0f80992980c57ef2802ca540 = $component; } ?>
<?php $component = Illuminate\View\AnonymousComponent::resolve(['view' => 'components.scripts','data' => []] + (isset($attributes) && $attributes instanceof Illuminate\View\ComponentAttributeBag ? (array) $attributes->getIterator() : [])); ?>
<?php $component->withName('scripts'); ?>
<?php if ($component->shouldRender()): ?>
<?php $__env->startComponent($component->resolveView(), $component->data()); ?>
<?php if (isset($attributes) && $attributes instanceof Illuminate\View\ComponentAttributeBag && $constructor = (new ReflectionClass(Illuminate\View\AnonymousComponent::class))->getConstructor()): ?>
<?php $attributes = $attributes->except(collect($constructor->getParameters())->map->getName()->all()); ?>
<?php endif; ?>
<?php $component->withAttributes([]); ?>
<?php echo $__env->renderComponent(); ?>
<?php endif; ?>
<?php if (isset($__componentOriginal23a21c0d0f80992980c57ef2802ca540)): ?>
<?php $component = $__componentOriginal23a21c0d0f80992980c57ef2802ca540; ?>
<?php unset($__componentOriginal23a21c0d0f80992980c57ef2802ca540); ?>
<?php endif; ?>

</body>

</html><?php /**PATH C:\xampp\htdocs\bloglaravel\resources\views/index.blade.php ENDPATH**/ ?>