<?php
	// Assets::add( 'jquery' );
?>
<?php $__env->startSection( 'head' ); ?>
<?php $__env->stopSection(); ?>

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

<?php $__env->startSection( 'content' ); ?>
	<div id="main-content" class="cc padding">
		<h1>مطالب دوره <?php echo e($course->name); ?></h1>
		
		<?php $__empty_1 = true; foreach( $course->Contents as $content ): $__empty_1 = false; ?>
			<div class="content">
				<?php if( $content->body || count( $content->Attachments ) !== 1 ): ?>
					<a href="<?php echo content_route( $content ); ?>"><i class="fa fa-file"></i> <?php echo e($content->title); ?></a>
				<?php else: ?>
					<a target="_BLANK" href="<?php echo $content->Attachments[ 0 ]->url; ?>"><i class="fa fa-file"></i> <?php echo e($content->Attachments[ 0 ]->filename); ?></a>
				<?php endif; ?>
			</div>
		<?php endforeach; if ($__empty_1): ?>
			<div class="msg-info">در این دوره مطلبی به ثبت نرسیده است</div>
		<?php endif; ?>
	</div>
<?php $__env->stopSection(); ?>