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

<!-- User Dashboard Area Start -->
<section class="user-dashboard">
    <div class="user-dashboard-menu-area">
        <div class="container">
            <div class="row">
                <div class="col-lg-12">
                    <h4 class="heading-title">
                        <?php echo e(__('My Courses')); ?>

                    </h4>
                    <?php echo $__env->make('student.includes.nav', \Illuminate\Support\Arr::except(get_defined_vars(), ['__data', '__path']))->render(); ?>
                </div>
            </div>
        </div>
    </div>
  <div class="user-dashboard-content-area">
      <div class="container" id="ajaxContent">

 	<?php if($enrolled_courses->count()>0): ?>      
            <div class="row all-videos">
                <?php $__currentLoopData = $enrolled_courses; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $course): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
                <div class="col-xl-3 col-lg-4 col-md-6">
                    <div class="single-course">

                        <div class="img">
                            <img src="<?php echo e(asset('assets/images/courses/'.$course->photo)); ?>" alt="">
                        </div>

                        <div class="content">

                            <h4 class="title">
                                <?php echo e($course->showTitle()); ?>

                            </h4>

                            <div class="reating-area">
                                <div class="stars">
                                    <div class="ratings">
                                        <div class="empty-stars"></div>
                                        <div class="full-stars" style="width:<?php echo e(App\Models\Rating::ratings($course->id)); ?>%"></div>
                                    </div>
                                </div>
                                <a href="<?php echo e(route('front.course',$course->slug)); ?>#reviewform" class="total-star">
                                    <?php echo e(__('Edit Rating')); ?>

                                </a>
                            </div>

                            <div class="important-links">
                                <a href="<?php echo e(route('front.course',$course->slug)); ?>" class="mybtn1"><?php echo e(__('Details')); ?></a>
                                <?php if($course->showLessons()): ?>
                                <a href="<?php echo e(route('student-course-curriculam-lesson',$course->sections()->with('lessons')->first()->lessons()->oldest('pos')->first()->id)); ?>" class="mybtn1"><?php echo e(__('Start Lesson')); ?></a>
                                <?php endif; ?>
                                <?php if(in_array($course->id,json_decode($certify,true))): ?>
                            <a target="_blank" href="<?php echo e(route('student-enroll-cert-show',$course->id)); ?>" class="mybtn1"><?php echo e(__('Certificate')); ?></a>
                                <?php endif; ?>
                            </div>
                        </div>
                    </div>
                </div>
                <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
            </div>

            <div class="page-center mt-5">
                <?php echo $enrolled_courses->links(); ?>

            </div>
        <?php else: ?> 
             <div class="text-center">
            	<b><a href="<?php echo e(route('front.index')); ?>" class="text-center mybtn1"><?php echo e(__('Vist Courses')); ?></a></b>
	</div>
        <?php endif; ?>

      </div>
  </div>
</section>

<!-- User Dashboard Area End -->

<?php $__env->stopSection(); ?>

<?php echo $__env->make('layouts.front', \Illuminate\Support\Arr::except(get_defined_vars(), ['__data', '__path']))->render(); ?><?php /**PATH /home/royaldem/public_html/project/resources/views/student/dashboard.blade.php ENDPATH**/ ?>