<?php
    $translations = parse_translation(authCheck()?->userable);
?>

<?php if (isset($component)) { $__componentOriginald7f77a02f879fd4954ea3c39c4e952cb = $component; } ?>
<?php if (isset($attributes)) { $__attributesOriginald7f77a02f879fd4954ea3c39c4e952cb = $attributes; } ?>
<?php $component = Modules\LMS\View\Components\Dashboard\Layout::resolve([] + (isset($attributes) && $attributes instanceof Illuminate\View\ComponentAttributeBag ? $attributes->all() : [])); ?>
<?php $component->withName('dashboard-layout'); ?>
<?php if ($component->shouldRender()): ?>
<?php $__env->startComponent($component->resolveView(), $component->data()); ?>
<?php if (isset($attributes) && $attributes instanceof Illuminate\View\ComponentAttributeBag): ?>
<?php $attributes = $attributes->except(\Modules\LMS\View\Components\Dashboard\Layout::ignoredParameterNames()); ?>
<?php endif; ?>
<?php $component->withAttributes([]); ?>
     <?php $__env->slot('title', null, []); ?>  <?php echo e(translate('My Course')); ?>  <?php $__env->endSlot(); ?>
    <div class="grid grid-cols-12 gap-x-4">
        <!-- Start Intro -->
        <div class="col-span-full 2xl:col-span-7 card p-0">
            <div class="grid grid-cols-12 px-5 sm:px-12 py-11 relative overflow-hidden h-full">
                <div class="col-span-full md:col-span-7 self-center inline-flex flex-col 2xl:block">
                    <p class="today !leading-none text-sm lg:text-base text-gray-900">
                        <?php echo e(translate('Today is')); ?>

                        <?php echo e(customDateFormate(now(), 'd M Y')); ?>

                    </p>
                    <h1 class="text-heading dark:text-white text-4xl xl:text-[42px] leading-[1.23] font-semibold mt-3">
                        <span class="flex-center justify-start">
                            <span class="shrink-0"> <?php echo e(translate('Welcome Back')); ?> .</span>
                            <span
                                class="select-none hidden md:inline-block animate-hand-wave origin-[70%_70%]">👋</span><br>
                        </span>
                        <?php echo e($translations['first_name'] ?? authCheck()?->userable?->first_name); ?>

                    </h1>

                </div>
                <div class="col-span-full md:col-span-5 flex-col items-center justify-center 2xl:block hidden md:flex">
                    <img src="<?php echo e(asset('lms/assets/images/loti/loti-admin-dashboard.svg')); ?>" alt="online-workshop"
                        class="hidden group-[.light]:block">
                    <img src="<?php echo e(asset('lms/assets/images/loti/loti-admin-dashboard.svg')); ?>" alt="online-workshop"
                        class="hidden group-[.dark]:block">
                </div>
                <!-- Graphicla Elements -->
                <ul>
                    <li class="absolute -top-[30px] left-1/2 animate-spin-slow">
                        <img src="<?php echo e(asset('lms/assets/images/element/graphical-element-1.svg')); ?>" alt="element">
                    </li>
                    <li class="absolute -bottom-[24px] left-1/4 animate-spin-slow">
                        <img src="<?php echo e(asset('lms/assets/images/element/graphical-element-2.svg')); ?>" alt="element">
                    </li>
                </ul>
            </div>
        </div>
        <!-- End Intro -->

        <!-- Start Student Couse Overview -->
        <div class="col-span-full 2xl:col-span-5 mb-4">
            <div class="grid grid-cols-12 gap-4 h-full">
                <div class="col-span-full md:col-span-6 card p-5 mb-0">
                    <div
                        class="size-11 flex-center bg-[#F7F3FF] dark:bg-dark-icon rounded-10 dk-theme-card-square mb-4">
                        <img src="<?php echo e(asset('lms/assets/images/icons/course-overview/progress.svg')); ?>" alt="icon"
                            class="dark:brightness-[5]">
                    </div>
                    <p class="text-gray-500 dark:text-dark-text font-medium leading-none mb-2">
                        <?php echo e(translate('Course in progress')); ?>

                    </p>
                    <div class="counter-value text-primary-500 text-[32px] font-semibold leading-none"
                        data-value="<?php echo e($data['totalProcessing']); ?>">
                        <?php echo e($data['totalProcessing'] ?? 0); ?>

                    </div>
                </div>
                <div class="col-span-full md:col-span-6 card p-5 mb-0">
                    <div
                        class="size-11 flex-center bg-[#F7F3FF] dark:bg-dark-icon rounded-10 dk-theme-card-square mb-4">
                        <img src="<?php echo e(asset('lms/assets/images/icons/course-overview/complete.svg')); ?>" alt="icon"
                            class="dark:brightness-[5]">
                    </div>
                    <p class="text-gray-500 dark:text-dark-text font-medium leading-none mb-2">
                        <?php echo e(translate('Completed course')); ?>

                    </p>
                    <div class="counter-value text-primary-500 text-[32px] font-semibold leading-none"
                        data-value="<?php echo e($data['totalCompleted']); ?>">
                        <?php echo e($data['totalCompleted'] ?? 0); ?>

                    </div>
                </div>
                <div class="col-span-full md:col-span-6 card p-5 mb-0">
                    <div
                        class="size-11 flex-center bg-[#F7F3FF] dark:bg-dark-icon rounded-10 dk-theme-card-square mb-4">
                        <img src="<?php echo e(asset('lms/assets/images/icons/course-overview/purchase.svg')); ?>" alt="icon"
                            class="dark:brightness-[5]">
                    </div>
                    <p class="text-gray-500 dark:text-dark-text font-medium leading-none mb-2">
                        <?php echo e(translate('Enrolled Course')); ?>

                    </p>
                    <div class="counter-value text-primary-500 text-[32px] font-semibold leading-none"
                        data-value="<?php echo e($data['totalEnrolled'] ?? 0); ?>">
                        <?php echo e($data['totalEnrolled'] ?? 0); ?>

                    </div>
                </div>
                <div class="col-span-full md:col-span-6 card p-5 mb-0">
                    <div
                        class="size-11 flex-center bg-[#F7F3FF] dark:bg-dark-icon rounded-10 dk-theme-card-square mb-4">
                        <img src="<?php echo e(asset('lms/assets/images/icons/course-overview/certificate.svg')); ?>"
                            alt="icon" class="dark:brightness-[5]">
                    </div>
                    <p class="text-gray-500 dark:text-dark-text font-medium leading-none mb-2">
                        <?php echo e(translate('Certificate')); ?>

                    </p>
                    <div class="counter-value text-primary-500 text-[32px] font-semibold leading-none"
                        data-value="<?php echo e($data['totalCertificate'] ?? 0); ?>">

                        <?php echo e($data['totalCertificate'] ?? 0); ?>

                    </div>
                </div>
            </div>
        </div>
        <!-- End Student Couse Overview -->


        <!-- Start Student Course List Table -->
        <div class="col-span-full 2xl:col-span-12 card lg:order-2 2xl:order-none">
            <h6 class="card-title mb-6"><?php echo e(translate('Latest Enrolled course')); ?></h6>
            <?php if(isset($data['enrolled']) && count($data['enrolled']) > 0): ?>
                <!-- Course Table -->
                <div class="overflow-x-auto scrollbar-table">
                    <table
                        class="table-auto w-full whitespace-nowrap text-left text-gray-500 dark:text-dark-text font-medium leading-none">
                        <thead>
                            <tr>
                                <th
                                    class="px-3.5 py-4 bg-[#F2F4F9] dark:bg-dark-card-two first:rounded-l-lg last:rounded-r-lg first:dk-theme-card-square-left last:dk-theme-card-square-right">
                                    <?php echo e(translate('Course title')); ?>

                                </th>
                                <th
                                    class="px-3.5 py-4 bg-[#F2F4F9] dark:bg-dark-card-two first:rounded-l-lg last:rounded-r-lg first:dk-theme-card-square-left last:dk-theme-card-square-right">
                                    <?php echo e(translate('Course Category')); ?>

                                </th>
                                <th
                                    class="px-3.5 py-4 bg-[#F2F4F9] dark:bg-dark-card-two first:rounded-l-lg last:rounded-r-lg first:dk-theme-card-square-left last:dk-theme-card-square-right">
                                    <?php echo e(translate('Price')); ?>

                                </th>
                                <th
                                    class="px-3.5 py-4 bg-[#F2F4F9] dark:bg-dark-card-two first:rounded-l-lg last:rounded-r-lg first:dk-theme-card-square-left last:dk-theme-card-square-right">
                                    <?php echo e(translate('Status')); ?>

                                </th>
                            </tr>
                        </thead>
                        <tbody class="divide-y divide-gray-200 dark:divide-dark-border-three">
                            <?php $__currentLoopData = $data['enrolled']; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $enrolled): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
                                <?php if($enrolled->purchase_type == 'course'): ?>
                                    <?php if (isset($component)) { $__componentOriginal2eba4ea031393fd5982d2270fae0c13b = $component; } ?>
<?php if (isset($attributes)) { $__attributesOriginal2eba4ea031393fd5982d2270fae0c13b = $attributes; } ?>
<?php $component = Illuminate\View\AnonymousComponent::resolve(['view' => '7ee9c4f86007ba41bc79bbfab1cd8a68::student.enrolled-course','data' => ['enrolled' => $enrolled]] + (isset($attributes) && $attributes instanceof Illuminate\View\ComponentAttributeBag ? $attributes->all() : [])); ?>
<?php $component->withName('portal::student.enrolled-course'); ?>
<?php if ($component->shouldRender()): ?>
<?php $__env->startComponent($component->resolveView(), $component->data()); ?>
<?php if (isset($attributes) && $attributes instanceof Illuminate\View\ComponentAttributeBag): ?>
<?php $attributes = $attributes->except(\Illuminate\View\AnonymousComponent::ignoredParameterNames()); ?>
<?php endif; ?>
<?php $component->withAttributes(['enrolled' => \Illuminate\View\Compilers\BladeCompiler::sanitizeComponentAttribute($enrolled)]); ?>
<?php echo $__env->renderComponent(); ?>
<?php endif; ?>
<?php if (isset($__attributesOriginal2eba4ea031393fd5982d2270fae0c13b)): ?>
<?php $attributes = $__attributesOriginal2eba4ea031393fd5982d2270fae0c13b; ?>
<?php unset($__attributesOriginal2eba4ea031393fd5982d2270fae0c13b); ?>
<?php endif; ?>
<?php if (isset($__componentOriginal2eba4ea031393fd5982d2270fae0c13b)): ?>
<?php $component = $__componentOriginal2eba4ea031393fd5982d2270fae0c13b; ?>
<?php unset($__componentOriginal2eba4ea031393fd5982d2270fae0c13b); ?>
<?php endif; ?>
                                <?php else: ?>
                                    <?php if (isset($component)) { $__componentOriginal55c363b2d77f15944a4aca17133ddd79 = $component; } ?>
<?php if (isset($attributes)) { $__attributesOriginal55c363b2d77f15944a4aca17133ddd79 = $attributes; } ?>
<?php $component = Illuminate\View\AnonymousComponent::resolve(['view' => '7ee9c4f86007ba41bc79bbfab1cd8a68::student.enrolled-bundle','data' => ['enrolled' => $enrolled]] + (isset($attributes) && $attributes instanceof Illuminate\View\ComponentAttributeBag ? $attributes->all() : [])); ?>
<?php $component->withName('portal::student.enrolled-bundle'); ?>
<?php if ($component->shouldRender()): ?>
<?php $__env->startComponent($component->resolveView(), $component->data()); ?>
<?php if (isset($attributes) && $attributes instanceof Illuminate\View\ComponentAttributeBag): ?>
<?php $attributes = $attributes->except(\Illuminate\View\AnonymousComponent::ignoredParameterNames()); ?>
<?php endif; ?>
<?php $component->withAttributes(['enrolled' => \Illuminate\View\Compilers\BladeCompiler::sanitizeComponentAttribute($enrolled)]); ?>
<?php echo $__env->renderComponent(); ?>
<?php endif; ?>
<?php if (isset($__attributesOriginal55c363b2d77f15944a4aca17133ddd79)): ?>
<?php $attributes = $__attributesOriginal55c363b2d77f15944a4aca17133ddd79; ?>
<?php unset($__attributesOriginal55c363b2d77f15944a4aca17133ddd79); ?>
<?php endif; ?>
<?php if (isset($__componentOriginal55c363b2d77f15944a4aca17133ddd79)): ?>
<?php $component = $__componentOriginal55c363b2d77f15944a4aca17133ddd79; ?>
<?php unset($__componentOriginal55c363b2d77f15944a4aca17133ddd79); ?>
<?php endif; ?>
                                <?php endif; ?>
                            <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
                        </tbody>
                    </table>
                </div>
            <?php endif; ?>
        </div>
        <!-- End Student Course List Table -->
    </div>
 <?php echo $__env->renderComponent(); ?>
<?php endif; ?>
<?php if (isset($__attributesOriginald7f77a02f879fd4954ea3c39c4e952cb)): ?>
<?php $attributes = $__attributesOriginald7f77a02f879fd4954ea3c39c4e952cb; ?>
<?php unset($__attributesOriginald7f77a02f879fd4954ea3c39c4e952cb); ?>
<?php endif; ?>
<?php if (isset($__componentOriginald7f77a02f879fd4954ea3c39c4e952cb)): ?>
<?php $component = $__componentOriginald7f77a02f879fd4954ea3c39c4e952cb; ?>
<?php unset($__componentOriginald7f77a02f879fd4954ea3c39c4e952cb); ?>
<?php endif; ?>
<?php /**PATH D:\www\edulab\Modules\LMS\resources\views\portals\student\index.blade.php ENDPATH**/ ?>