<?php $__env->startSection('breadcrumb'); ?>
    <nav class="nav-breadcrumb" aria-label="breadcrumb">
        <ol class="breadcrumb">
            <li class="breadcrumb-item"><a href="<?php echo e(LaravelLocalization::getLocalizedURL(getCurrentLocale(), url('/'), [], true)); ?>">الرئيسيه</a></li>
            <li class="breadcrumb-item active" aria-current="page"><?php echo e(__('courses.inner_page')); ?></li>
        </ol>
    </nav>
<?php $__env->stopSection(); ?>
<?php $__env->startSection('content'); ?>

    <main>
        <!--start all courses-->
        <section class="all-courses">
            <div class="container">
                <div class="row">
                    <div class="col-xs-12">
                        <div class="heading">
                            <button class="btn-view btn-grid active"><i class="fas fa-th"></i></button>
                            <button class="btn-view btn-list"><i class="fas fa-list"></i></button>



























                        </div>
                        <div class="products-inner grid-container">
                            <div class="row mt-4">
                                <?php if($courses->count()): ?>
                                    <?php $__currentLoopData = $courses; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $course): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
                                        <div class="col-lg-4 col-md-4 col-sm-4 col-xs-4">
                                            <div class="card">
                                                <div class="image-content">
                                                    <img src="<?php echo e($course->images ? asset($course->images[0]) : asset('assets/web/images/courses-1.jpg')); ?>" alt="">
                                                    <div class="overlay">
                                                        <a href="<?php echo e(route('courseSubscription', $course->id)); ?>" class="butn buy">
                                                            <i class="fas fa-university"></i> اشترك الآن
                                                        </a>






                                                    </div>
                                                </div>
                                                <div class="card-body">
                                                    <a href="<?php echo e(route('our-categories.show', $course->category_id)); ?>" class="category"><?php echo e($course->category_name); ?></a>
                                                    <a href="<?php echo e(route('our-courses.courses', $course->id)); ?>" class="course-name"><?php echo e($course->name['name_'.getCurrentLocale()]); ?></a>
                                                    <p class="by">بواسطة <a href="#"><?php echo e($course->instructor); ?></a></p>
                                                    <p class="description"><?php echo e($course->description['description_'.getCurrentLocale()]); ?></p>
                                                    <div class="d-flex justify-content-between mt-3">
                                                        <p><?php echo e(__('courses.end_at') . ': ' . $course->end_at); ?></p>
                                                        <p><?php echo e(__('courses.hours') . ': ' . $course->hours . ' Hours'); ?></p>
                                                    </div>
                                                </div>
                                                <div class="card-footer">





                                                    <h6 class="price"><?php echo e($course->price); ?>$</h6>
                                                </div>
                                            </div>
                                        </div>
                                    <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
                                <?php endif; ?>






































































































































































































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


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

<?php $__env->startSection('inner_js'); ?>
    <script>
        $(document).ready(function () {
            $('.navs-container').addClass('page-heading')
        })
    </script>

    <script>
        var lowerSlider = document.querySelector('#lower');
        var  upperSlider = document.querySelector('#upper');

        document.querySelector('#two').value=upperSlider.value;
        document.querySelector('#one').value=lowerSlider.value;

        var  lowerVal = parseInt(lowerSlider.value);
        var upperVal = parseInt(upperSlider.value);

        upperSlider.oninput = function () {
            lowerVal = parseInt(lowerSlider.value);
            upperVal = parseInt(upperSlider.value);

            if (upperVal < lowerVal + 4) {
                lowerSlider.value = upperVal - 4;
                if (lowerVal == lowerSlider.min) {
                    upperSlider.value = 4;
                }
            }
            document.querySelector('#two').value=this.value
        };

        lowerSlider.oninput = function () {
            lowerVal = parseInt(lowerSlider.value);
            upperVal = parseInt(upperSlider.value);
            if (lowerVal > upperVal - 4) {
                upperSlider.value = lowerVal + 4;
                if (upperVal == upperSlider.max) {
                    lowerSlider.value = parseInt(upperSlider.max) - 4;
                }
            }
            document.querySelector('#one').value=this.value
        };
    </script>
<?php $__env->stopSection(); ?>

<?php echo $__env->make('web.layouts.container', \Illuminate\Support\Arr::except(get_defined_vars(), ['__data', '__path']))->render(); ?><?php /**PATH C:\wamp64\www\mkn\resources\views/web/categories/index.blade.php ENDPATH**/ ?>