Editing: 5d51764877c8429a8c12156b89d331b67df094ce.php
<?php $__env->startPush('styles_top'); ?> <link rel="stylesheet" href="/assets/default/vendors/daterangepicker/daterangepicker.min.css"> <?php $__env->stopPush(); ?> <?php $__env->startSection('content'); ?> <section> <h2 class="section-title"><?php echo e(trans('panel.my_activity')); ?></h2> <div class="activities-container mt-25 p-20 p-lg-35"> <div class="row"> <div class="col-6 col-md-3 mt-30 mt-md-0 d-flex align-items-center justify-content-center"> <div class="d-flex flex-column align-items-center text-center"> <img src="/assets/default/img/activity/webinars.svg" width="64" height="64" alt=""> <strong class="font-30 text-dark-blue font-weight-bold mt-5"><?php echo e(!empty($webinars) ? $webinarsCount : 0); ?></strong> <span class="font-16 text-gray font-weight-500"><?php echo e(trans('panel.classes')); ?></span> </div> </div> <div class="col-6 col-md-3 mt-30 mt-md-0 d-flex align-items-center justify-content-center"> <div class="d-flex flex-column align-items-center text-center"> <img src="/assets/default/img/activity/hours.svg" width="64" height="64" alt=""> <strong class="font-30 text-dark-blue font-weight-bold mt-5"><?php echo e(convertMinutesToHourAndMinute($webinarHours)); ?></strong> <span class="font-16 text-gray font-weight-500"><?php echo e(trans('home.hours')); ?></span> </div> </div> <div class="col-6 col-md-3 mt-30 mt-md-0 d-flex align-items-center justify-content-center mt-5 mt-md-0"> <div class="d-flex flex-column align-items-center text-center"> <img src="/assets/default/img/activity/sales.svg" width="64" height="64" alt=""> <strong class="font-30 text-dark-blue font-weight-bold mt-5"><?php echo e(handlePrice($webinarSalesAmount)); ?></strong> <span class="font-16 text-gray font-weight-500"><?php echo e(trans('cart.total') .' '. trans('panel.webinar_sales')); ?></span> </div> </div> <div class="col-6 col-md-3 mt-30 mt-md-0 d-flex align-items-center justify-content-center mt-5 mt-md-0"> <div class="d-flex flex-column align-items-center text-center"> <img src="/assets/default/img/activity/download-sales.svg" width="64" height="64" alt=""> <strong class="font-30 text-dark-blue font-weight-bold mt-5"><?php echo e(handlePrice($courseSalesAmount)); ?></strong> <span class="font-16 text-gray font-weight-500"><?php echo e(trans('cart.total') .' '.trans('panel.course_sales')); ?></span> </div> </div> </div> </div> </section> <section class="mt-25"> <div class="d-flex align-items-start align-items-md-center justify-content-between flex-column flex-md-row"> <h2 class="section-title"><?php echo e(trans('panel.my_webinars')); ?></h2> <form action="" method="get"> <div class="d-flex align-items-center flex-row-reverse flex-md-row justify-content-start justify-content-md-center mt-20 mt-md-0"> <label class="cursor-pointer mb-0 mr-10 font-weight-500 font-14 text-gray" for="conductedSwitch"><?php echo e(trans('panel.only_not_conducted_webinars')); ?></label> <div class="custom-control custom-switch"> <input type="checkbox" name="not_conducted" <?php if(request()->get('not_conducted','') == 'on'): ?> checked <?php endif; ?> class="custom-control-input" id="conductedSwitch"> <label class="custom-control-label" for="conductedSwitch"></label> </div> </div> </form> </div> <?php if(!empty($webinars) and !$webinars->isEmpty()): ?> <?php $__currentLoopData = $webinars; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $webinar): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?> <?php $lastSession = $webinar->lastSession(); $nextSession = $webinar->nextSession(); $isProgressing = false; if($webinar->start_date <= time() and !empty($lastSession) and $lastSession->date > time()) { $isProgressing=true; } ?> <div class="row mt-30"> <div class="col-12"> <div class="webinar-card webinar-list d-flex"> <div class="image-box"> <img src="<?php echo e($webinar->getImage()); ?>" class="img-cover" alt=""> <div class="badges-lists"> <?php if(!empty($webinar->deleteRequest) and $webinar->deleteRequest->status == "pending"): ?> <span class="badge badge-danger"><?php echo e(trans('update.removal_request_sent')); ?></span> <?php else: ?> <?php switch($webinar->status): case (\App\Models\Webinar::$active): ?> <?php if($webinar->isWebinar()): ?> <?php if($webinar->start_date > time()): ?> <span class="badge badge-primary"><?php echo e(trans('panel.not_conducted')); ?></span> <?php elseif($webinar->isProgressing()): ?> <span class="badge badge-secondary"><?php echo e(trans('webinars.in_progress')); ?></span> <?php else: ?> <span class="badge badge-secondary"><?php echo e(trans('public.finished')); ?></span> <?php endif; ?> <?php else: ?> <span class="badge badge-secondary"><?php echo e(trans('webinars.'.$webinar->type)); ?></span> <?php endif; ?> <?php break; ?> <?php case (\App\Models\Webinar::$isDraft): ?> <span class="badge badge-danger"><?php echo e(trans('public.draft')); ?></span> <?php break; ?> <?php case (\App\Models\Webinar::$pending): ?> <span class="badge badge-warning"><?php echo e(trans('public.waiting')); ?></span> <?php break; ?> <?php case (\App\Models\Webinar::$inactive): ?> <span class="badge badge-danger"><?php echo e(trans('public.rejected')); ?></span> <?php break; ?> <?php endswitch; ?> <?php endif; ?> </div> <?php if($webinar->isWebinar()): ?> <div class="progress"> <span class="progress-bar" style="width: <?php echo e($webinar->getProgress()); ?>%"></span> </div> <?php endif; ?> </div> <div class="webinar-card-body w-100 d-flex flex-column"> <div class="d-flex align-items-center justify-content-between"> <a href="<?php echo e($webinar->getUrl()); ?>" target="_blank"> <h3 class="font-16 text-dark-blue font-weight-bold"><?php echo e($webinar->title); ?> <span class="badge badge-dark ml-10 status-badge-dark"><?php echo e(trans('webinars.'.$webinar->type)); ?></span> </h3> </a> <?php if($webinar->isOwner($authUser->id) or $webinar->isPartnerTeacher($authUser->id)): ?> <div class="btn-group dropdown table-actions"> <button type="button" class="btn-transparent dropdown-toggle" data-toggle="dropdown" aria-haspopup="true" aria-expanded="false"> <i data-feather="more-vertical" height="20"></i> </button> <div class="dropdown-menu "> <?php if(!empty($webinar->start_date)): ?> <button type="button" data-webinar-id="<?php echo e($webinar->id); ?>" class="js-webinar-next-session webinar-actions btn-transparent d-block"><?php echo e(trans('public.create_join_link')); ?></button> <?php endif; ?> <?php if (app(\Illuminate\Contracts\Auth\Access\Gate::class)->check('panel_webinars_learning_page')): ?> <a href="<?php echo e($webinar->getLearningPageUrl()); ?>" target="_blank" class="webinar-actions d-block mt-10"><?php echo e(trans('update.learning_page')); ?></a> <?php endif; ?> <?php if (app(\Illuminate\Contracts\Auth\Access\Gate::class)->check('panel_webinars_create')): ?> <a href="/panel/webinars/<?php echo e($webinar->id); ?>/edit" class="webinar-actions d-block mt-10"><?php echo e(trans('public.edit')); ?></a> <?php endif; ?> <?php if($webinar->isWebinar()): ?> <?php if (app(\Illuminate\Contracts\Auth\Access\Gate::class)->check('panel_webinars_create')): ?> <a href="/panel/webinars/<?php echo e($webinar->id); ?>/step/4" class="webinar-actions d-block mt-10"><?php echo e(trans('public.sessions')); ?></a> <?php endif; ?> <?php endif; ?> <?php if (app(\Illuminate\Contracts\Auth\Access\Gate::class)->check('panel_webinars_create')): ?> <a href="/panel/webinars/<?php echo e($webinar->id); ?>/step/4" class="webinar-actions d-block mt-10"><?php echo e(trans('public.files')); ?></a> <?php endif; ?> <?php if (app(\Illuminate\Contracts\Auth\Access\Gate::class)->check('panel_webinars_export_students_list')): ?> <a href="/panel/webinars/<?php echo e($webinar->id); ?>/export-students-list" class="webinar-actions d-block mt-10"><?php echo e(trans('public.export_list')); ?></a> <?php endif; ?> <?php if($authUser->id == $webinar->creator_id): ?> <?php if (app(\Illuminate\Contracts\Auth\Access\Gate::class)->check('panel_webinars_duplicate')): ?> <a href="/panel/webinars/<?php echo e($webinar->id); ?>/duplicate" class="webinar-actions d-block mt-10"><?php echo e(trans('public.duplicate')); ?></a> <?php endif; ?> <?php endif; ?> <?php if (app(\Illuminate\Contracts\Auth\Access\Gate::class)->check('panel_webinars_statistics')): ?> <a href="/panel/webinars/<?php echo e($webinar->id); ?>/statistics" class="webinar-actions d-block mt-10"><?php echo e(trans('update.statistics')); ?></a> <?php endif; ?> <?php if($webinar->creator_id == $authUser->id): ?> <?php if (app(\Illuminate\Contracts\Auth\Access\Gate::class)->check('panel_webinars_delete')): ?> <?php echo $__env->make('web.default.panel.includes.content_delete_btn', [ 'deleteContentUrl' => "/panel/webinars/{$webinar->id}/delete", 'deleteContentClassName' => 'webinar-actions d-block mt-10 text-danger', 'deleteContentItem' => $webinar, 'deleteContentItemType' => "course", ], \Illuminate\Support\Arr::except(get_defined_vars(), ['__data', '__path']))->render(); ?> <?php endif; ?> <?php endif; ?> </div> </div> <?php endif; ?> </div> <?php echo $__env->make(getTemplate() . '.includes.webinar.rate',['rate' => $webinar->getRate()], \Illuminate\Support\Arr::except(get_defined_vars(), ['__data', '__path']))->render(); ?> <div class="webinar-price-box mt-15"> <?php if($webinar->price > 0): ?> <?php if($webinar->bestTicket() < $webinar->price): ?> <span class="real"><?php echo e(handlePrice($webinar->bestTicket(), true, true, false, null, true)); ?></span> <span class="off ml-10"><?php echo e(handlePrice($webinar->price, true, true, false, null, true)); ?></span> <?php else: ?> <span class="real"><?php echo e(handlePrice($webinar->price, true, true, false, null, true)); ?></span> <?php endif; ?> <?php else: ?> <span class="real"><?php echo e(trans('public.free')); ?></span> <?php endif; ?> </div> <div class="d-flex align-items-center justify-content-between flex-wrap mt-auto"> <div class="d-flex align-items-start flex-column mt-20 mr-15"> <span class="stat-title"><?php echo e(trans('public.item_id')); ?>:</span> <span class="stat-value"><?php echo e($webinar->id); ?></span> </div> <div class="d-flex align-items-start flex-column mt-20 mr-15"> <span class="stat-title"><?php echo e(trans('public.category')); ?>:</span> <span class="stat-value"><?php echo e(!empty($webinar->category_id) ? $webinar->category->title : ''); ?></span> </div> <?php if($webinar->isProgressing() and !empty($nextSession)): ?> <div class="d-flex align-items-start flex-column mt-20 mr-15"> <span class="stat-title"><?php echo e(trans('webinars.next_session_duration')); ?>:</span> <span class="stat-value"><?php echo e(convertMinutesToHourAndMinute($nextSession->duration)); ?> Hrs</span> </div> <?php if($webinar->isWebinar()): ?> <div class="d-flex align-items-start flex-column mt-20 mr-15"> <span class="stat-title"><?php echo e(trans('webinars.next_session_start_date')); ?>:</span> <span class="stat-value"><?php echo e(dateTimeFormat($nextSession->date,'j M Y')); ?></span> </div> <?php endif; ?> <?php else: ?> <div class="d-flex align-items-start flex-column mt-20 mr-15"> <span class="stat-title"><?php echo e(trans('public.duration')); ?>:</span> <span class="stat-value"><?php echo e(convertMinutesToHourAndMinute($webinar->duration)); ?> Hrs</span> </div> <?php if($webinar->isWebinar()): ?> <div class="d-flex align-items-start flex-column mt-20 mr-15"> <span class="stat-title"><?php echo e(trans('public.start_date')); ?>:</span> <span class="stat-value"><?php echo e(dateTimeFormat($webinar->start_date,'j M Y')); ?></span> </div> <?php endif; ?> <?php endif; ?> <?php if($webinar->isTextCourse() or $webinar->isCourse()): ?> <div class="d-flex align-items-start flex-column mt-20 mr-15"> <span class="stat-title"><?php echo e(trans('public.files')); ?>:</span> <span class="stat-value"><?php echo e($webinar->files->count()); ?></span> </div> <?php endif; ?> <?php if($webinar->isTextCourse()): ?> <div class="d-flex align-items-start flex-column mt-20 mr-15"> <span class="stat-title"><?php echo e(trans('webinars.text_lessons')); ?>:</span> <span class="stat-value"><?php echo e($webinar->textLessons->count()); ?></span> </div> <?php endif; ?> <?php if($webinar->isCourse()): ?> <div class="d-flex align-items-start flex-column mt-20 mr-15"> <span class="stat-title"><?php echo e(trans('home.downloadable')); ?>:</span> <span class="stat-value"><?php echo e(($webinar->downloadable) ? trans('public.yes') : trans('public.no')); ?></span> </div> <?php endif; ?> <div class="d-flex align-items-start flex-column mt-20 mr-15"> <span class="stat-title"><?php echo e(trans('panel.sales')); ?>:</span> <span class="stat-value"><?php echo e(count($webinar->sales)); ?> (<?php echo e((!empty($webinar->sales) and count($webinar->sales)) ? handlePrice($webinar->sales->sum('amount')) : 0); ?>)</span> </div> <?php if(!empty($webinar->partner_instructor) and $webinar->partner_instructor and $authUser->id != $webinar->teacher_id and $authUser->id != $webinar->creator_id): ?> <div class="d-flex align-items-start flex-column mt-20 mr-15"> <span class="stat-title"><?php echo e(trans('panel.invited_by')); ?>:</span> <span class="stat-value"><?php echo e($webinar->teacher->full_name); ?></span> </div> <?php elseif($authUser->id != $webinar->teacher_id and $authUser->id != $webinar->creator_id): ?> <div class="d-flex align-items-start flex-column mt-20 mr-15"> <span class="stat-title"><?php echo e(trans('webinars.teacher_name')); ?>:</span> <span class="stat-value"><?php echo e($webinar->teacher->full_name); ?></span> </div> <?php elseif($authUser->id == $webinar->teacher_id and $authUser->id != $webinar->creator_id and $webinar->creator->isOrganization()): ?> <div class="d-flex align-items-start flex-column mt-20 mr-15"> <span class="stat-title"><?php echo e(trans('webinars.organization_name')); ?>:</span> <span class="stat-value"><?php echo e($webinar->creator->full_name); ?></span> </div> <?php endif; ?> </div> </div> </div> </div> </div> <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?> <div class="my-30"> <?php echo e($webinars->appends(request()->input())->links('vendor.pagination.panel')); ?> </div> <?php else: ?> <?php echo $__env->make(getTemplate() . '.includes.no-result',[ 'file_name' => 'webinar.png', 'title' => trans('panel.you_not_have_any_webinar'), 'hint' => trans('panel.no_result_hint') , 'btn' => ['url' => '/panel/webinars/new','text' => trans('panel.create_a_webinar') ] ], \Illuminate\Support\Arr::except(get_defined_vars(), ['__data', '__path']))->render(); ?> <?php endif; ?> </section> <?php echo $__env->make('web.default.panel.webinar.make_next_session_modal', \Illuminate\Support\Arr::except(get_defined_vars(), ['__data', '__path']))->render(); ?> <?php $__env->stopSection(); ?> <?php $__env->startPush('scripts_bottom'); ?> <script src="/assets/default/vendors/daterangepicker/daterangepicker.min.js"></script> <script> var undefinedActiveSessionLang = '<?php echo e(trans('webinars.undefined_active_session')); ?>'; var saveSuccessLang = '<?php echo e(trans('webinars.success_store')); ?>'; var selectChapterLang = '<?php echo e(trans('update.select_chapter')); ?>'; </script> <script src="/assets/default/js/panel/make_next_session.min.js"></script> <?php $__env->stopPush(); ?> <?php echo $__env->make(getTemplate() .'.panel.layouts.panel_layout', \Illuminate\Support\Arr::except(get_defined_vars(), ['__data', '__path']))->render(); ?><?php /**PATH /home/ayaclass/public_html/resources/views/web/default/panel/webinar/index.blade.php ENDPATH**/ ?>
Save
Back