<?php
	Assets::add( 'lightslider' );
	Assets::add( 'home.min.js' );
?>
<?php $__env->startSection( 'head' ); ?>
<?php $__env->stopSection(); ?>

<?php $__env->startSection( 'foot' ); ?>
<?php $__env->stopSection(); ?>

<?php $__env->startSection( 'content' ); ?>
	<?php if( Auth::guest() && $text = Setting::get( 'alert-html' ) ): ?>
		<div class="cc">
			<div id="home-alert">
				<?php echo $text; ?>

			</div>
		</div>
	<?php endif; ?>
	
	<?php if( Auth::guest() && $text = Setting::get( 'signup-link-text' ) ): ?>
		<div class="cc">
			<div id="home-signup">
				<a href="<?php echo route( 'signup' ); ?>"><?php echo e($text); ?></a>
			</div>
		</div>
	<?php endif; ?>
	
	<div class="cc">
		<ul id="slider" class="cs-hidden">
			<?php foreach( $slides as $slide ): ?>
				<li><img src="<?php echo $slide->image_url; ?>"></li>
			<?php endforeach; ?>
		</ul>
	</div>
	
	<!--<div class="cc" id="first-box">-->
	<!--	<div class="pure-g">-->
			<!--<div id="latest-courses" class="pure-u-1 pure-u-md-18-24 l-box">-->
			<!--	<h2 class="home-title">جدیدترین بسته‌های آموزشی</h2>-->
			<!--	<div class="pure-g">-->
			<!--		<?php foreach( $packages as $package ): ?>-->
			<!--			<div class="pure-u-1 pure-u-md-1-3 l-box course-container">-->
			<!--				<a href="<?php echo route( 'buy-package', [ 'id' => $package->id ] ); ?>" class="course-link">-->
			<!--					<div class="icon"><img src="img/package-empty.jpg"></div>-->
			<!--					<h2 class="title"><?php echo e($package->name); ?></h2>-->
			<!--					<div class="view">خرید بسته</div>-->
			<!--				</a>-->
			<!--			</div>-->
			<!--		<?php endforeach; ?>-->
			<!--	</div>-->
				
			<!--	<div class="button-container">-->
			<!--		<a href="<?php echo route( 'buy-package' ); ?>" class="button big">تمامی بسته‌ها</a>-->
			<!--	</div>-->
			<!--</div>-->
			
			<!--<div id="latest-articles" class="pure-u-1 pure-u-md-6-24 l-box">-->
			<!--	<h2 class="home-title">آخرین مطالب</h2>-->
			<!--	<div id="articles-main">-->
			<!--		<?php foreach( $articles as $article ): ?>-->
			<!--			<div class="article">-->
			<!--				<a href="<?php echo content_route( $article ); ?>" class="title"><?php echo e($article->title); ?></a><br>-->
			<!--				<span class="date"><?php echo $article->created_at_persian; ?></span>-->
			<!--			</div>-->
			<!--		<?php endforeach; ?>-->
			<!--	</div>-->
			<!--</div>-->
	<!--	</div>-->
	<!--</div>-->
	
	<!--<div id="second-box">-->
	<!--	<div class="cc">-->
	<!--		<div class="pure-g">-->
	<!--			<div id="latest-news" class="pure-u-1 pure-u-md-18-24 l-box">-->
	<!--				<h2 class="home-title">آخرین اخبار</h2>-->
	<!--				<div class="pure-g">-->
	<!--					<?php foreach( $news as $news_item ): ?>-->
	<!--						<div class="pure-u-1 pure-u-md-1-3 l-box news-container">-->
	<!--							<a href="<?php echo content_route( $news_item ); ?>" class="news-link">-->
	<!--								<div class="icon"><img src="<?php echo $news_item->image_url; ?>"></div>-->
	<!--								<h2 class="title"><?php echo e($news_item->title); ?></h2>-->
	<!--								<span class="date"><?php echo $news_item->created_at_persian; ?></span>-->
	<!--							</a>-->
	<!--						</div>-->
	<!--					<?php endforeach; ?>-->
	<!--				</div>-->
					
	<!--				<div class="button-container">-->
	<!--					<a href="<?php echo route( 'news' ); ?>" class="button big">تمامی اخبار</a>-->
	<!--				</div>-->
	<!--			</div>-->
				
	<!--			<div id="ads" class="pure-u-1 pure-u-md-6-24 l-box">-->
	<!--				<?php foreach( $banners as $slide ): ?>-->
	<!--					<?php if( $slide->url ): ?>-->
	<!--						<a href="<?php echo $slide->url; ?>">-->
	<!--					<?php endif; ?>-->
	<!--							<img src="<?php echo $slide->image_url; ?>">-->
	<!--					<?php if( $slide->url ): ?>-->
	<!--						</a>-->
	<!--					<?php endif; ?>-->
	<!--				<?php endforeach; ?>-->
	<!--			</div>-->
	<!--		</div>-->
	<!--	</div>-->
	<!--</div>-->
	
	<?php if( count( $downloads ) ): ?>
		<div id="downloads-archive">
			<div class="cc">
				<h2 class="home-title">دانلودها</h2>
				<div class="pure-g">
					<?php foreach( $downloads as $download ): ?>
						<div class="download pure-u-1-2 pure-u-md-1-3 pure-u-lg-1-6 l-box">
							<a href="<?php echo route( 'download', array( $download->id ) ); ?>">
								<div class="filetype filetype-<?php echo $download->Attachments[ 0 ]->filetype_css_class; ?>"></div>
								<h2><?php echo $download->name; ?></h2>
							</a>
						</div>
					<?php endforeach; ?>
				</div>
				<div class="button-container">
					<a href="<?php echo route( 'downloads' ); ?>" class="button big">تمامی دانلودها</a>
				</div>
			</div>
		</div>
	<?php endif; ?>
	
	<div id="home-contact">
		<div class="cc">
			<div class="pure-g">
				<div class="pure-u-1 pure-u-md-12-24 l-box">
					<h2 class="home-title">تماس با ما</h2>
					<p><?php echo e(Setting::get( 'address' )); ?></p>
					<p><?php echo e(Setting::get( 'email' )); ?></p>
					<p><?php echo e(Setting::get( 'phone' )); ?></p>
				</div>
				
				<div id="contact-form" class="pure-u-1 pure-u-md-12-24 l-box">
					<h2 class="home-title">ارسال پیام</h2>
					
					<!--<?php echo Form::open(); ?>-->
					<!--	<div class="pure-g">-->
					<!--		<div class="pure-u-1 pure-u-md-1-2 l-box">-->
					<!--			<?php echo Form::label( 'name', 'نام' ); ?>-->
					<!--			<?php echo Form::text( 'name' ); ?>-->
					<!--		</div>-->
					<!--		<div class="pure-u-1 pure-u-md-1-2 l-box">-->
					<!--			<?php echo Form::label( 'email', 'ایمیل' ); ?>-->
					<!--			<?php echo Form::text( 'email' ); ?>-->
					<!--		</div>-->
					<!--		<div class="pure-u-1 l-box">-->
					<!--			<?php echo Form::label( 'message', 'پیام' ); ?>-->
					<!--			<?php echo Form::textarea( 'message' ); ?>-->
					<!--		</div>-->
					<!--		<div class="pure-u-1 l-box">-->
					<!--			<?php echo Form::submit( 'ارسال پیام' ); ?>-->
					<!--		</div>-->
					<!--	</div>-->
					<!--<?php echo Form::close(); ?>-->
				</div>
			</div>
		</div>
	</div>
<?php $__env->stopSection(); ?>