Your IP : 52.14.75.147
<nav class="navbar navbar-expand-md navbar-light shadow-sm mb-4 mb-lg-0 sidenav">
<a class="d-xl-none d-lg-none d-md-none text-inherit fw-bold" href="#">Menu</a>
<button class="navbar-toggler d-md-none icon-shape icon-sm rounded bg-primary text-light" type="button"
data-bs-toggle="collapse" data-bs-target="#sidenav" aria-controls="sidenav" aria-expanded="false"
aria-label="Toggle navigation">
<span class="fe fe-menu"></span>
</button>
<div class="collapse navbar-collapse" id="sidenav">
<div class="navbar-nav flex-column">
<span class="navbar-header">Course Basic Info</span>
<ul class="list-unstyled ms-n2 mb-0">
<li class="nav-item <?php if(request()->routeIs('instructor.course')): ?> active <?php endif; ?>">
<a class="nav-link" href="/instructor/course/<?php echo e($type); ?>/<?php echo e($slug); ?>"><i
class="fe fe-home nav-icon"></i>Course Information</a>
</li>
</ul>
<ul class="list-unstyled ms-n2 mb-0">
<li class="nav-item <?php if(request()->routeIs('instructor.learners')): ?> active <?php endif; ?>">
<a class="nav-link" href="/instructor/goals/<?php echo e($type); ?>/<?php echo e($slug); ?>"><i
class="fe fe-users nav-icon"></i>Intended learners</a>
</li>
</ul>
<span class="navbar-header">Create your content</span>
<ul class="list-unstyled ms-n2 mb-0">
<li class="nav-item <?php if(request()->routeIs('instructor.curriculum')): ?> active <?php endif; ?>">
<a class="nav-link"
href="/instructor/curriculum/<?php echo e($type); ?>/<?php echo e($slug); ?>"><i
class="<?php echo \Illuminate\Support\Arr::toCssClasses(["nav-icon","fe","fe-book-open"]) ?>"></i>
Curriculum
</a>
</li>
<?php if($type == 4): ?>
<li class="<?php echo \Illuminate\Support\Arr::toCssClasses(['nav-item','active'=>request()->routeIs('instructor.upload-ebook')]) ?>">
<a class="nav-link"
href="/instructor/upload-ebook/<?php echo e($type); ?>/<?php echo e($slug); ?>"><i
class="<?php echo \Illuminate\Support\Arr::toCssClasses(["nav-icon","fe","fe-upload"]) ?>"></i>
Upload Ebook
</a>
</li>
<?php endif; ?>
</ul>
<span class="navbar-header">Publish your course</span>
<ul class="list-unstyled ms-n2 mb-0">
<?php if($type != 4): ?>
<li class="nav-item <?php if(request()->routeIs('instructor.course_review')): ?> active <?php endif; ?>">
<a class="nav-link" target="_blank"
href="/instructor/course_review/<?php echo e($type); ?>/<?php echo e($slug); ?>"><i
class="fe fe-video nav-icon"></i>Course Preview</a>
</li>
<?php endif; ?>
<li class="nav-item <?php if(request()->routeIs('instructor.pricing')): ?> active <?php endif; ?>">
<a class="nav-link" href="/instructor/pricing/<?php echo e($type); ?>/<?php echo e($slug); ?>"><i
class="fe fe-dollar-sign nav-icon"></i>Pricing</a>
</li>
<li class="nav-item <?php if(request()->routeIs('instructor.course_message')): ?> active <?php endif; ?>">
<a class="nav-link"
href="/instructor/course_message/<?php echo e($type); ?>/<?php echo e($slug); ?>"><i
class="fe fe-message-circle nav-icon"></i>Course messages </a>
</li>
</ul>
<span class="navbar-header">Guide</span>
<ul class="list-unstyled ms-n2 mb-4">
<li class="nav-item <?php if(request()->routeIs('instructor.faq')): ?> active <?php endif; ?>">
<a class="nav-link" href="/instructor/faq/<?php echo e($type); ?>/<?php echo e($slug); ?>"><i
class="bi bi-question nav-icon"></i>FAQ</a>
</li>
</ul>
<?php if($type==1): ?>
<span class="navbar-header">Classroom</span>
<ul class="list-unstyled ms-n2 mb-4">
<li class="nav-item <?php if(request()->routeIs('instructor.classroom')): ?> active <?php endif; ?>">
<a class="nav-link" target="_blank"
href="/instructor/classroom/<?php echo e($type); ?>/<?php echo e($slug); ?>"><i
class="mdi mdi-google-classroom nav-icon"></i>Classroom</a>
</li>
</ul>
<?php endif; ?>
<div class="d-none publish-div">
<span class="navbar-header">Submit for review</span>
<ul class="list-unstyled ms-n2 mb-4">
<li class="nav-item d-flex justify-content-lg-center justify-content-sm-start">
<button class="pub-btn review-btn btn btn-xs btn-primary me-lg-4 w-100">Submit</button>
</li>
</ul>
</div>
<div class="d-none share-div">
<span class="navbar-header">Share Course</span>
<ul class="list-unstyled ms-n2 mb-4">
<li class="nav-item d-flex justify-content-lg-center justify-content-sm-start">
<div class="d-none" id="link_div" data-link></div>
<button class="share-btn btn btn-xs btn-primary me-lg-4 w-100">Share <i class="fe fe-share"></i>
</button>
</li>
</ul>
</div>
</div>
</div>
</nav>
<script>
$(function () {
$(".pub-btn").click(function (e) {
e.preventDefault();
let but = $(this);
let slug = <?php echo \Illuminate\Support\Js::from($slug)->toHtml() ?>;
$.ajax({
url: api_url + `admin/publish_course`,
method: "post",
data: {
slug: slug,
},
beforeSend: () => {
btn(but, '', 'before');
}
}).done(res => {
console.log(res);
salat(res.message);
btn(but, 'Submit', 'after');
$('.publish-div').remove();
$('.share-div').removeClass('d-none');
}).fail(res => {
console.log(res);
err = res.responseJSON
delete err.message;
concatError2(err);
btn(but, 'Submit', 'after');
})
})
document.querySelector(".share-btn").addEventListener('click', async (e) => {
e.preventDefault();
const link = $(document).find($("#link_div")).data('link');
const data = {
title: 'Lentoria',
text: 'Share your Lentoria Course',
url: `${app_url}/c/${link}`
}
console.log(data)
try {
await navigator.share(data);
console.log('link shared successfully');
} catch (err) {
console.log(err);
}
})
// $(".share-btn").click(async function (e) {
// e.preventDefault();
// const link = $(document).find($("#link_div")).data('link');
// const data = {
// title: 'Lentoria',
// text: 'Share your Lentoria Course',
// url: `${app_url}/c/${link}`
// }
// console.log(data)
// try {
// await navigator.share(data);
// console.log('link shared successfully');
// } catch (err) {
// console.log(err);
// }
//
// })
})
</script>
<?php /**PATH /home/lentoinv/lentoria.com/resources/views/instructor/side.blade.php ENDPATH**/ ?>