updated instructor dashboard option
Cette révision appartient à :
Parent
238f11caa3
révision
967f247f77
@ -1,7 +1,8 @@
|
||||
<?php
|
||||
|
||||
namespace App\Http\Controllers;
|
||||
namespace App\Http\Controllers\Api;
|
||||
|
||||
use App\Http\Controllers\Controller;
|
||||
use Illuminate\Http\Request;
|
||||
use App\Models\Course;
|
||||
use App\Models\Instructor;
|
||||
@ -28,9 +29,6 @@ public function index()
|
||||
$itCategories = CourseCategory::whereIn('category_name', ['Hardware', 'Network Technology', 'Software & Security', 'Operating System & Server', '2D Animation', '3D Animation'])->pluck('id')->toArray();
|
||||
$itCourses = Course::whereIn('course_category_id', $itCategories)->where('tag', 'popular')->get();
|
||||
|
||||
return view(
|
||||
'frontend.home',
|
||||
compact('course', 'instructor', 'category', 'popularCourses', 'designCourses', 'developmentCourses', 'businessCourses', 'itCourses')
|
||||
);
|
||||
return response($category, 200);
|
||||
}
|
||||
}
|
||||
|
||||
@ -1,9 +1,4 @@
|
||||
@if(fullAccess())
|
||||
@extends('backend.layouts.appInstructor')
|
||||
@endif
|
||||
@if(!fullAccess())
|
||||
@extends('backend.layouts.appInstructor')
|
||||
@endif
|
||||
@extends('backend.layouts.app')
|
||||
@section('title', 'Coupon List')
|
||||
|
||||
@push('styles')
|
||||
|
||||
@ -1,9 +1,4 @@
|
||||
@if(fullAccess())
|
||||
@extends('backend.layouts.appInstructor')
|
||||
@endif
|
||||
@if(!fullAccess())
|
||||
@extends('backend.layouts.appInstructor')
|
||||
@endif
|
||||
@extends('backend.layouts.app')
|
||||
@section('title', 'Course List')
|
||||
|
||||
@push('styles')
|
||||
@ -50,9 +45,13 @@
|
||||
</button>
|
||||
<div class="dropdown-menu dropdown-menu-right border py-0">
|
||||
<div class="py-2">
|
||||
<a class="dropdown-item" href="{{route('course.edit', encryptor('encrypt',$d->id))}}">Edit</a>
|
||||
<a class="dropdown-item text-danger" href="javascript:void(0);" onclick="$('#form{{$d->id}}').submit()">Delete</a>
|
||||
<form id="form{{$d->id}}" action="{{route('course.destroy', encryptor('encrypt',$d->id))}}" method="post">
|
||||
<a class="dropdown-item"
|
||||
href="{{route('course.edit', encryptor('encrypt',$d->id))}}">Edit</a>
|
||||
<a class="dropdown-item text-danger" href="javascript:void(0);"
|
||||
onclick="$('#form{{$d->id}}').submit()">Delete</a>
|
||||
<form id="form{{$d->id}}"
|
||||
action="{{route('course.destroy', encryptor('encrypt',$d->id))}}"
|
||||
method="post">
|
||||
@csrf
|
||||
@method('DELETE')
|
||||
</form>
|
||||
@ -63,13 +62,16 @@
|
||||
<div class="card-body pt-2">
|
||||
<div class="text-center">
|
||||
<div class="">
|
||||
<img src="{{asset('public/uploads/courses/'.$d->image)}}" class="w-100" height="200" alt="">
|
||||
<img src="{{asset('public/uploads/courses/'.$d->image)}}" class="w-100"
|
||||
height="200" alt="">
|
||||
</div>
|
||||
<h3 class="mt-4 mb-1">{{$d->title_en}}</h3>
|
||||
<ul class="list-group mb-3 list-group-flush">
|
||||
<li class="list-group-item px-0 d-flex justify-content-between">
|
||||
<span>Difficulty</span>
|
||||
<strong>{{ $d->difficulty == 'beginner' ? __('Beginner') : ($d->difficulty == 'intermediate' ? __('Intermediate') : __('Advanced')) }}</strong>
|
||||
<strong>{{ $d->difficulty == 'beginner' ? __('Beginner') :
|
||||
($d->difficulty == 'intermediate' ? __('Intermediate') :
|
||||
__('Advanced')) }}</strong>
|
||||
</li>
|
||||
<li class="list-group-item px-0 d-flex justify-content-between">
|
||||
<span class="mb-0">Instructor :</span>
|
||||
@ -84,7 +86,8 @@
|
||||
<strong>{{$d->price?'৳'.$d->price:'Free'}}</strong>
|
||||
</li>
|
||||
</ul>
|
||||
<a class="btn btn-outline-primary btn-rounded mt-3 px-4" href="about-student.html">Read More</a>
|
||||
<a class="btn btn-outline-primary btn-rounded mt-3 px-4"
|
||||
href="about-student.html">Read More</a>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
@ -1,9 +1,4 @@
|
||||
@if(fullAccess())
|
||||
@extends('backend.layouts.appInstructor')
|
||||
@endif
|
||||
@if(!fullAccess())
|
||||
@extends('backend.layouts.appInstructor')
|
||||
@endif
|
||||
@extends('backend.layouts.app')
|
||||
@section('title', 'Course Lesson List')
|
||||
|
||||
@push('styles')
|
||||
|
||||
@ -1,9 +1,4 @@
|
||||
@if(fullAccess())
|
||||
@extends('backend.layouts.appInstructor')
|
||||
@endif
|
||||
@if(!fullAccess())
|
||||
@extends('backend.layouts.appInstructor')
|
||||
@endif
|
||||
@extends('backend.layouts.app')
|
||||
@section('title', 'Course Material List')
|
||||
|
||||
@push('styles')
|
||||
|
||||
@ -1,9 +1,4 @@
|
||||
@if(fullAccess())
|
||||
@extends('backend.layouts.appInstructor')
|
||||
@endif
|
||||
@if(!fullAccess())
|
||||
@extends('backend.layouts.appInstructor')
|
||||
@endif
|
||||
@extends('backend.layouts.app')
|
||||
@section('title', 'Enrollment List')
|
||||
|
||||
@push('styles')
|
||||
|
||||
@ -1,9 +1,4 @@
|
||||
@if(fullAccess())
|
||||
@extends('backend.layouts.appInstructor')
|
||||
@endif
|
||||
@if(!fullAccess())
|
||||
@extends('backend.layouts.appInstructor')
|
||||
@endif
|
||||
@extends('backend.layouts.app')
|
||||
@section('title', 'Instructor List')
|
||||
|
||||
@push('styles')
|
||||
|
||||
@ -1,4 +1,4 @@
|
||||
@extends('backend.layouts.appInstructor')
|
||||
@extends('backend.layouts.app')
|
||||
@section('title', 'Instructor Dashboard')
|
||||
|
||||
@push('styles')
|
||||
|
||||
@ -186,6 +186,7 @@ class="feather feather-log-out">
|
||||
<!--**********************************
|
||||
Sidebar start
|
||||
***********************************-->
|
||||
@if(fullAccess())
|
||||
<div class="dlabnav">
|
||||
<div class="dlabnav-scroll">
|
||||
<ul class="metismenu" id="menu">
|
||||
@ -277,6 +278,36 @@ class="las la-question-circle"></i>Questions</a></li>
|
||||
</ul>
|
||||
</div>
|
||||
</div>
|
||||
@endif
|
||||
|
||||
@if(!fullAccess())
|
||||
<div class="dlabnav">
|
||||
<div class="dlabnav-scroll">
|
||||
<ul class="metismenu" id="menu">
|
||||
<li class="nav-label first">Instructor Panel</li>
|
||||
<li><a class="ai-icon" href="{{route('dashboard')}}" aria-expanded="false">
|
||||
<i class="las la-tachometer-alt"></i> <span class="nav-text">Dashboard</span>
|
||||
</a>
|
||||
</li>
|
||||
<li><a class="ai-icon" href="{{route('home')}}" aria-expanded="false">
|
||||
<i class="las la-home"></i><span class="nav-text">Home</span>
|
||||
</a>
|
||||
</li>
|
||||
<li class="nav-label">Main Menu</li>
|
||||
<li><a href="{{route('instructor.index')}}">
|
||||
<i class="las la-chalkboard-teacher"></i>Instructors List
|
||||
</a>
|
||||
</li>
|
||||
<li><a href="{{route('student.index')}}"><i class="las la-book-reader"></i>Students List</a></li>
|
||||
<li><a href="{{route('course.index')}}"><i class="las la-book-open"></i>All Courses</a></li>
|
||||
<li><a href="{{route('lesson.index')}}"><i class="las la-chalkboard"></i>Course Lessons</a></li>
|
||||
<li><a href="{{route('material.index')}}"><i class="las la-atom"></i></i>Course Materials</a></li>
|
||||
<li><a href="{{route('coupon.index')}}"><i class="las la-tags"></i>Coupons</a></li>
|
||||
<li><a href="{{route('enrollment.index')}}"><i class="las la-bullseye"></i>Enrollments</a></li>
|
||||
</ul>
|
||||
</div>
|
||||
</div>
|
||||
@endif
|
||||
<!--**********************************
|
||||
Sidebar end
|
||||
***********************************-->
|
||||
|
||||
@ -1,287 +0,0 @@
|
||||
<!DOCTYPE html>
|
||||
<html lang="{{str_replace('_','_', app()->getLocale())}}">
|
||||
|
||||
<head>
|
||||
<meta charset="utf-8">
|
||||
<meta http-equiv="X-UA-Compatible" content="IE=edge">
|
||||
<meta name="viewport" content="width=device-width,initial-scale=1">
|
||||
<title>{{ENV('APP_NAME')}} | @yield('title')</title>
|
||||
|
||||
<!-- Favicon icon -->
|
||||
<link rel="icon" type="image/png" sizes="16x16" href="{{asset('public/images/favicon.png')}}">
|
||||
<link rel="stylesheet" href="{{asset('public/vendor/bootstrap-select/dist/css/bootstrap-select.min.css')}}">
|
||||
<link rel="stylesheet" href="{{asset('public/css/style.css')}}">
|
||||
|
||||
@stack('styles')
|
||||
|
||||
</head>
|
||||
|
||||
<body>
|
||||
<!--**********************************
|
||||
Main wrapper start
|
||||
***********************************-->
|
||||
<div id="main-wrapper">
|
||||
|
||||
<!--**********************************
|
||||
Nav header start
|
||||
***********************************-->
|
||||
<div class="nav-header">
|
||||
<a href="{{route('home')}}" class="brand-logo">
|
||||
<img class="logo-abbr" src="{{asset('public/images/logo-white.png')}}" alt="">
|
||||
<img class="logo-compact" src="{{asset('public/images/d-logo.png')}}" alt="">
|
||||
<img class="brand-title" src="{{asset('public/images/d-logo.png')}}" alt="">
|
||||
</a>
|
||||
|
||||
<div class="nav-control">
|
||||
<div class="hamburger">
|
||||
<span class="line"></span><span class="line"></span><span class="line"></span>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<!--**********************************
|
||||
Nav header end
|
||||
***********************************-->
|
||||
|
||||
<!--**********************************
|
||||
Header start
|
||||
***********************************-->
|
||||
<div class="header">
|
||||
<div class="header-content">
|
||||
<nav class="navbar navbar-expand">
|
||||
<div class="collapse navbar-collapse justify-content-between">
|
||||
<div class="header-left">
|
||||
<div class="search_bar dropdown">
|
||||
<span class="search_icon p-3 c-pointer" data-toggle="dropdown">
|
||||
<i class="mdi mdi-magnify"></i>
|
||||
</span>
|
||||
<div class="dropdown-menu p-0 m-0">
|
||||
<form>
|
||||
<input class="form-control" type="search" placeholder="Search"
|
||||
aria-label="Search">
|
||||
</form>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<ul class="navbar-nav header-right">
|
||||
<li class="nav-item dropdown notification_dropdown">
|
||||
<a class="nav-link bell ai-icon" href="#" role="button" data-toggle="dropdown">
|
||||
<svg id="icon-user" xmlns="http://www.w3.org/2000/svg" width="20" height="20"
|
||||
viewbox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2"
|
||||
stroke-linecap="round" stroke-linejoin="round" class="feather feather-bell">
|
||||
<path d="M18 8A6 6 0 0 0 6 8c0 7-3 9-3 9h18s-3-2-3-9"></path>
|
||||
<path d="M13.73 21a2 2 0 0 1-3.46 0"></path>
|
||||
</svg>
|
||||
<div class="pulse-css"></div>
|
||||
</a>
|
||||
<div class="dropdown-menu dropdown-menu-right">
|
||||
<ul class="list-unstyled">
|
||||
<li class="media dropdown-item">
|
||||
<span class="success"><i class="ti-user"></i></span>
|
||||
<div class="media-body">
|
||||
<a href="#">
|
||||
<p><strong>Martin</strong> has added a <strong>customer</strong>
|
||||
Successfully
|
||||
</p>
|
||||
</a>
|
||||
</div>
|
||||
<span class="notify-time">3:20 am</span>
|
||||
</li>
|
||||
<li class="media dropdown-item">
|
||||
<span class="primary"><i class="ti-shopping-cart"></i></span>
|
||||
<div class="media-body">
|
||||
<a href="#">
|
||||
<p><strong>Jennifer</strong> purchased Light Dashboard 2.0.</p>
|
||||
</a>
|
||||
</div>
|
||||
<span class="notify-time">3:20 am</span>
|
||||
</li>
|
||||
<li class="media dropdown-item">
|
||||
<span class="danger"><i class="ti-bookmark"></i></span>
|
||||
<div class="media-body">
|
||||
<a href="#">
|
||||
<p><strong>Robin</strong> marked a <strong>ticket</strong> as
|
||||
unsolved.
|
||||
</p>
|
||||
</a>
|
||||
</div>
|
||||
<span class="notify-time">3:20 am</span>
|
||||
</li>
|
||||
<li class="media dropdown-item">
|
||||
<span class="primary"><i class="ti-heart"></i></span>
|
||||
<div class="media-body">
|
||||
<a href="#">
|
||||
<p><strong>David</strong> purchased Light Dashboard 1.0.</p>
|
||||
</a>
|
||||
</div>
|
||||
<span class="notify-time">3:20 am</span>
|
||||
</li>
|
||||
<li class="media dropdown-item">
|
||||
<span class="success"><i class="ti-image"></i></span>
|
||||
<div class="media-body">
|
||||
<a href="#">
|
||||
<p><strong> James.</strong> has added a<strong>customer</strong>
|
||||
Successfully
|
||||
</p>
|
||||
</a>
|
||||
</div>
|
||||
<span class="notify-time">3:20 am</span>
|
||||
</li>
|
||||
</ul>
|
||||
<a class="all-notification" href="#">See all notifications <i
|
||||
class="ti-arrow-right"></i></a>
|
||||
</div>
|
||||
</li>
|
||||
<li class="nav-item dropdown header-profile">
|
||||
<a class="nav-link" title="Profile Info" href="#" role="button" data-toggle="dropdown">
|
||||
<img src="{{asset('public/uploads/users/'.request()->session()->get('image'))}}"
|
||||
width="20" alt="">
|
||||
</a>
|
||||
<div class="dropdown-menu dropdown-menu-right">
|
||||
<a href="{{route('userProfile')}}" class="dropdown-item ai-icon">
|
||||
<svg id="icon-user1" xmlns="http://www.w3.org/2000/svg" width="18" height="18"
|
||||
viewbox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2"
|
||||
stroke-linecap="round" stroke-linejoin="round" class="feather feather-user">
|
||||
<path d="M20 21v-2a4 4 0 0 0-4-4H8a4 4 0 0 0-4 4v2"></path>
|
||||
<circle cx="12" cy="7" r="4"></circle>
|
||||
</svg>
|
||||
<span class="ml-2">Profile </span>
|
||||
</a>
|
||||
<a href="email-inbox.html" class="dropdown-item ai-icon">
|
||||
<svg id="icon-inbox" xmlns="http://www.w3.org/2000/svg" width="18" height="18"
|
||||
viewbox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2"
|
||||
stroke-linecap="round" stroke-linejoin="round" class="feather feather-mail">
|
||||
<path
|
||||
d="M4 4h16c1.1 0 2 .9 2 2v12c0 1.1-.9 2-2 2H4c-1.1 0-2-.9-2-2V6c0-1.1.9-2 2-2z">
|
||||
</path>
|
||||
<polyline points="22,6 12,13 2,6"></polyline>
|
||||
</svg>
|
||||
<span class="ml-2">Inbox </span>
|
||||
</a>
|
||||
<a href="{{route('logOut')}}" class="dropdown-item ai-icon">
|
||||
<svg id="icon-logout" xmlns="http://www.w3.org/2000/svg" width="18" height="18"
|
||||
viewbox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2"
|
||||
stroke-linecap="round" stroke-linejoin="round"
|
||||
class="feather feather-log-out">
|
||||
<path d="M9 21H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h4"></path>
|
||||
<polyline points="16 17 21 12 16 7"></polyline>
|
||||
<line x1="21" y1="12" x2="9" y2="12"></line>
|
||||
</svg>
|
||||
<span class="ml-2">Logout </span>
|
||||
</a>
|
||||
</div>
|
||||
</li>
|
||||
</ul>
|
||||
</div>
|
||||
</nav>
|
||||
</div>
|
||||
</div>
|
||||
<!--**********************************
|
||||
Header end ti-comment-alt
|
||||
***********************************-->
|
||||
|
||||
<!--**********************************
|
||||
Sidebar start
|
||||
***********************************-->
|
||||
<div class="dlabnav">
|
||||
<div class="dlabnav-scroll">
|
||||
<ul class="metismenu" id="menu">
|
||||
<li class="nav-label first">Instructor Panel</li>
|
||||
<li><a class="ai-icon" href="{{route('dashboard')}}" aria-expanded="false">
|
||||
<i class="las la-tachometer-alt"></i> <span class="nav-text">Dashboard</span>
|
||||
</a>
|
||||
</li>
|
||||
<li><a class="ai-icon" href="{{route('home')}}" aria-expanded="false">
|
||||
<i class="las la-home"></i><span class="nav-text">Home</span>
|
||||
</a>
|
||||
</li>
|
||||
<li class="nav-label">Main Menu</li>
|
||||
<li><a href="{{route('instructor.index')}}">
|
||||
<i class="las la-chalkboard-teacher"></i>Instructors List
|
||||
</a>
|
||||
</li>
|
||||
<li><a href="{{route('student.index')}}"><i class="las la-book-reader"></i>Students List</a></li>
|
||||
<li><a href="{{route('course.index')}}"><i class="las la-book-open"></i>All Courses</a></li>
|
||||
<li><a href="{{route('lesson.index')}}"><i class="las la-chalkboard"></i>Course Lessons</a></li>
|
||||
<li><a href="{{route('material.index')}}"><i class="las la-atom"></i></i>Course Materials</a></li>
|
||||
<li><a href="{{route('coupon.index')}}"><i class="las la-tags"></i>Coupons</a></li>
|
||||
<li><a href="{{route('enrollment.index')}}"><i class="las la-bullseye"></i>Enrollments</a></li>
|
||||
</ul>
|
||||
</div>
|
||||
</div>
|
||||
<!--**********************************
|
||||
Sidebar end
|
||||
***********************************-->
|
||||
|
||||
<!--**********************************
|
||||
Content body start
|
||||
***********************************-->
|
||||
|
||||
@yield('content')
|
||||
|
||||
<!--**********************************
|
||||
Content body end
|
||||
***********************************-->
|
||||
|
||||
<!--**********************************
|
||||
Footer start
|
||||
***********************************-->
|
||||
<div class="footer">
|
||||
<div class="copyright">
|
||||
<p>Copyright © Designed & Developed by <a href="../index.htm" target="_blank">DexignLab</a> 2020</p>
|
||||
</div>
|
||||
</div>
|
||||
<!--**********************************
|
||||
Footer end
|
||||
***********************************-->
|
||||
|
||||
<!--**********************************
|
||||
Support ticket button start
|
||||
***********************************-->
|
||||
|
||||
<!--**********************************
|
||||
Support ticket button end
|
||||
***********************************-->
|
||||
|
||||
</div>
|
||||
<!--**********************************
|
||||
Main wrapper end
|
||||
***********************************-->
|
||||
|
||||
<!--**********************************
|
||||
Scripts
|
||||
***********************************-->
|
||||
<!-- Required vendors -->
|
||||
<script src="{{asset('public/vendor/global/global.min.js')}}"></script>
|
||||
<script src="{{asset('public/vendor/bootstrap-select/dist/js/bootstrap-select.min.js')}}"></script>
|
||||
<script src="{{asset('public/js/custom.min.js')}}"></script>
|
||||
<script src="{{asset('public/js/dlabnav-init.js')}}"></script>
|
||||
|
||||
<!-- Svganimation scripts -->
|
||||
<script src="{{asset('public/vendor/svganimation/vivus.min.js')}}"></script>
|
||||
<script src="{{asset('public/vendor/svganimation/svg.animation.js')}}"></script>
|
||||
<script src="{{asset('public/js/styleSwitcher.js')}}"></script>
|
||||
|
||||
@stack('scripts')
|
||||
{{-- TOASTER --}}
|
||||
<script src="https://cdnjs.cloudflare.com/ajax/libs/toastr.js/latest/toastr.min.js"></script>
|
||||
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/toastr.js/latest/toastr.css" />
|
||||
<script>
|
||||
@if(Session::has('success'))
|
||||
toastr.success("{{ Session::get('success') }}");
|
||||
@endif
|
||||
@if(Session::has('info'))
|
||||
toastr.info("{{ Session::get('info') }}");
|
||||
@endif
|
||||
@if(Session::has('warning'))
|
||||
toastr.warning("{{ Session::get('warning') }}");
|
||||
@endif
|
||||
@if(Session::has('error'))
|
||||
toastr.error("{{ Session::get('error') }}");
|
||||
@endif
|
||||
</script>
|
||||
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/toastr.js/latest/toastr.css" />
|
||||
{!! Toastr::message() !!}
|
||||
</body>
|
||||
|
||||
</html>
|
||||
@ -1,9 +1,4 @@
|
||||
@if(fullAccess())
|
||||
@extends('backend.layouts.appInstructor')
|
||||
@endif
|
||||
@if(!fullAccess())
|
||||
@extends('backend.layouts.appInstructor')
|
||||
@endif
|
||||
@extends('backend.layouts.app')
|
||||
@section('title', 'Student List')
|
||||
|
||||
@push('styles')
|
||||
|
||||
@ -2,6 +2,7 @@
|
||||
|
||||
use Illuminate\Http\Request;
|
||||
use Illuminate\Support\Facades\Route;
|
||||
use App\Http\Controllers\Api\HomeController as homectrl;
|
||||
|
||||
/*
|
||||
|--------------------------------------------------------------------------
|
||||
@ -17,3 +18,5 @@
|
||||
Route::middleware('auth:sanctum')->get('/user', function (Request $request) {
|
||||
return $request->user();
|
||||
});
|
||||
|
||||
Route::get('/',[homectrl::class,'index']);
|
||||
Chargement…
Référencer dans un nouveau ticket
Block a user