added instructor authentication
Cette révision appartient à :
Parent
2ac936f7be
révision
7d06333c1f
@ -4,6 +4,7 @@
|
||||
|
||||
use App\Http\Controllers\Controller;
|
||||
use App\Models\Instructor;
|
||||
use App\Models\User;
|
||||
use Illuminate\Http\Request;
|
||||
use App\Http\Requests\Backend\Instructors\AddNewRequest;
|
||||
use App\Http\Requests\Backend\Instructors\UpdateRequest;
|
||||
@ -11,6 +12,7 @@
|
||||
use Illuminate\Support\Facades\Hash;
|
||||
use Exception;
|
||||
use File;
|
||||
use DB;
|
||||
|
||||
class InstructorController extends Controller
|
||||
{
|
||||
@ -38,6 +40,7 @@ public function create()
|
||||
public function store(AddNewRequest $request)
|
||||
{
|
||||
try {
|
||||
DB::beginTransaction();
|
||||
$instructor = new Instructor;
|
||||
$instructor->name_en = $request->fullName_en;
|
||||
$instructor->name_bn = $request->fullName_bn;
|
||||
@ -49,7 +52,7 @@ public function store(AddNewRequest $request)
|
||||
$instructor->designation = $request->designation;
|
||||
$instructor->title = $request->title;
|
||||
$instructor->status = $request->status;
|
||||
$instructor->password = Hash::make($request->fullName_bn);
|
||||
$instructor->password = Hash::make($request->password);
|
||||
$instructor->language = 'en';
|
||||
$instructor->access_block = $request->access_block;
|
||||
|
||||
@ -58,12 +61,29 @@ public function store(AddNewRequest $request)
|
||||
$request->image->move(public_path('uploads/instructors'), $imageName);
|
||||
$instructor->image = $imageName;
|
||||
}
|
||||
if ($instructor->save())
|
||||
return redirect()->route('instructor.index')->with('success', 'Data Saved');
|
||||
else
|
||||
if ($instructor->save()) {
|
||||
$user = new User;
|
||||
$user->instructor_id = $instructor->id;
|
||||
$user->name_en = $request->fullName_en;
|
||||
$user->email = $request->emailAddress;
|
||||
$user->contact_en = $request->contactNumber_en;
|
||||
$user->role_id = $request->roleId;
|
||||
$user->status = $request->status;
|
||||
$user->password = Hash::make($request->password);
|
||||
if ($request->hasFile('image')) {
|
||||
$imageName = rand(111, 999) . time() . '.' . $request->image->extension();
|
||||
$request->image->move(public_path('uploads/users'), $imageName);
|
||||
$user->image = $imageName;
|
||||
}
|
||||
if ($user->save()) {
|
||||
DB::commit();
|
||||
$this->notice::success('Successfully saved');
|
||||
return redirect()->route('instructor.index');
|
||||
}
|
||||
} else
|
||||
return redirect()->back()->withInput()->with('error', 'Please try again');
|
||||
} catch (Exception $e) {
|
||||
// dd($e);
|
||||
dd($e);
|
||||
return redirect()->back()->withInput()->with('error', 'Please try again');
|
||||
}
|
||||
}
|
||||
@ -110,7 +130,7 @@ public function update(UpdateRequest $request, $id)
|
||||
$instructor->designation = $request->designation;
|
||||
$instructor->title = $request->title;
|
||||
$instructor->status = $request->status;
|
||||
$instructor->password = Hash::make($request->fullName_bn);
|
||||
$instructor->password = Hash::make($request->password);
|
||||
$instructor->language = 'en';
|
||||
$instructor->access_block = $request->access_block;
|
||||
|
||||
@ -119,10 +139,27 @@ public function update(UpdateRequest $request, $id)
|
||||
$request->image->move(public_path('uploads/instructors'), $imageName);
|
||||
$instructor->image = $imageName;
|
||||
}
|
||||
if ($instructor->save())
|
||||
return redirect()->route('instructor.index')->with('success', 'Data Saved');
|
||||
else
|
||||
return redirect()->back()->withInput()->with('error', 'Please try again');
|
||||
if ($instructor->save()) {
|
||||
$user = User::where('instructor_id', $instructor->id)->first();
|
||||
$user->instructor_id = $instructor->id;
|
||||
$user->name_en = $request->fullName_en;
|
||||
$user->email = $request->emailAddress;
|
||||
$user->contact_en = $request->contactNumber_en;
|
||||
$user->role_id = $request->roleId;
|
||||
$user->status = $request->status;
|
||||
$user->password = Hash::make($request->password);
|
||||
if ($request->hasFile('image')) {
|
||||
$imageName = rand(111, 999) . time() . '.' . $request->image->extension();
|
||||
$request->image->move(public_path('uploads/users'), $imageName);
|
||||
$user->image = $imageName;
|
||||
}
|
||||
if ($user->save()) {
|
||||
DB::commit();
|
||||
$this->notice::success('Successfully saved');
|
||||
return redirect()->route('instructor.index');
|
||||
}
|
||||
}
|
||||
return redirect()->back()->withInput()->with('error', 'Please try again');
|
||||
} catch (Exception $e) {
|
||||
dd($e);
|
||||
return redirect()->back()->withInput()->with('error', 'Please try again');
|
||||
|
||||
@ -76,7 +76,8 @@ public function setSession($user)
|
||||
'role' => encryptor('encrypt', $user->role->name),
|
||||
'roleIdentitiy' => encryptor('encrypt', $user->role->identity),
|
||||
'language' => encryptor('encrypt', $user->language),
|
||||
'image' => $user->image ?? 'No Image Found'
|
||||
'image' => $user->image ?? 'No Image Found',
|
||||
'image' => $user?->instructor->image ?? 'No Image Found',
|
||||
]
|
||||
);
|
||||
}
|
||||
|
||||
@ -4,6 +4,7 @@
|
||||
|
||||
use App\Http\Controllers\Controller;
|
||||
use Illuminate\Http\Request;
|
||||
use App\Models\User;
|
||||
|
||||
class DashboardController extends Controller
|
||||
{
|
||||
@ -13,5 +14,9 @@ public function index()
|
||||
return view('backend.adminDashboard');
|
||||
else
|
||||
return view('backend.dashboard');
|
||||
|
||||
// $user = User::get();
|
||||
// if($user->role = 'instructor')
|
||||
// return view('backend.instructorDashboard');
|
||||
}
|
||||
}
|
||||
|
||||
@ -14,6 +14,11 @@ public function role()
|
||||
return $this->belongsTo(Role::class);
|
||||
}
|
||||
|
||||
public function users()
|
||||
{
|
||||
return $this->hasMany(User::class);
|
||||
}
|
||||
|
||||
public function courses(){
|
||||
return $this->hasMany(Course::class);
|
||||
}
|
||||
|
||||
@ -36,6 +36,11 @@ public function role()
|
||||
return $this->belongsTo(Role::class);
|
||||
}
|
||||
|
||||
public function instructors()
|
||||
{
|
||||
$this->belongsTo(Instructor::class);
|
||||
}
|
||||
|
||||
public function discussion()
|
||||
{
|
||||
return $this->hasMany(Discussion::class);
|
||||
|
||||
@ -19,7 +19,7 @@ public function up(): void
|
||||
$table->string('contact_en')->unique();
|
||||
$table->string('contact_bn')->unique()->nullable();
|
||||
$table->unsignedBigInteger('role_id')->index();
|
||||
$table->foreign('role_id')->references('id')->on('roles')->onDelete('cascade');
|
||||
$table->unsignedBigInteger('instructor_id')->index();
|
||||
$table->string('password');
|
||||
$table->string('language')->default('en');
|
||||
$table->string('image')->nullable();
|
||||
@ -28,6 +28,9 @@ public function up(): void
|
||||
$table->rememberToken();
|
||||
$table->timestamps();
|
||||
$table->softDeletes();
|
||||
|
||||
$table->foreign('role_id')->references('id')->on('roles')->onDelete('cascade');
|
||||
$table->foreign('instructor_id')->references('id')->on('instructors')->onDelete('cascade');
|
||||
});
|
||||
}
|
||||
|
||||
|
||||
@ -3,7 +3,7 @@
|
||||
-- https://www.phpmyadmin.net/
|
||||
--
|
||||
-- Host: 127.0.0.1
|
||||
-- Generation Time: Dec 30, 2023 at 08:03 AM
|
||||
-- Generation Time: Jan 01, 2024 at 09:11 AM
|
||||
-- Server version: 10.4.27-MariaDB
|
||||
-- PHP Version: 8.2.0
|
||||
|
||||
@ -245,11 +245,11 @@ CREATE TABLE `instructors` (
|
||||
--
|
||||
|
||||
INSERT INTO `instructors` (`id`, `name_en`, `name_bn`, `contact_en`, `contact_bn`, `email`, `role_id`, `bio`, `title`, `designation`, `image`, `status`, `password`, `language`, `access_block`, `remember_token`, `created_at`, `updated_at`, `deleted_at`) VALUES
|
||||
(1, 'Burhan Uddin Fuad', NULL, '01828543453', NULL, 'fuad@gmail.com', 3, 'Fuad is a highly skilled Full Stack Web Developer with over 10 years of experience. He specializes in front-end and back-end development, bringing a wealth of knowledge in modern web technologies. John is passionate about teaching and enjoys sharing his expertise with aspiring developers.', 'Experienced Full Stack Web Developer passionate about teaching modern web technologies.', 'Senior Instructor', '7651701794492.jpg', 1, '$2y$12$jxbne9KxH0/pS/pz5cW0BunNSQCDZ1ZQwwSICcMd1o7rAENnvmm9a', 'en', NULL, NULL, '2023-11-25 21:35:23', '2023-12-05 10:41:32', NULL),
|
||||
(2, 'Thouhidul Islam', NULL, '801300029', NULL, 'thouhid@gmail.com', 3, 'Thouhid is an Animation Expert and Video/Graphics Instructor known for her innovative approach to storytelling through animation. With a background in both 2D and 3D animation, Emily guides students through the world of visual storytelling, helping them unleash their creative potential.', '2D Animation and Short Video Ads Specialist', 'Animation Expert', '4991701794515.jpg', 1, '$2y$12$MhpBKoItHmA.fdUH3Bzi1.YJz/7iW4x1WFO2Gwrr7OiqgHtsIdTJK', 'en', NULL, NULL, '2023-11-26 00:18:45', '2023-12-05 10:41:55', NULL),
|
||||
(3, 'Raihan Sazzad', NULL, '3218974218', NULL, 'raihan@gmail.com', 3, 'Raihan is an Animation Expert and Video/Graphics Instructor known for her innovative approach to storytelling through animation. With a background in both 2D and 3D animation, Emily guides students through the world of visual storytelling, helping them unleash their creative potential.', 'Professional Designer Who Loves to Design', 'UI UX Designer', '1381701794537.jpg', 1, '$2y$12$q7C.EXCusmXExPbVEOHeIuWBKi4DYD3XtmeaC1WBLPBSWCwbFxR3W', 'en', NULL, NULL, '2023-12-04 23:25:20', '2023-12-05 10:42:17', NULL),
|
||||
(4, 'Joshim Uddin', NULL, '675664644', NULL, 'joshim@gmail.com', 3, 'Joshim a passionate and results-oriented Digital Marketer with a knack for navigating the ever-evolving landscape of online promotion. With a strategic mindset, he specialize in crafting data-driven marketing campaigns that elevate brand visibility and engagement.', 'Expert in SMM and Lead Generation', 'Digital Marketer', '1461701794588.jpg', 1, '$2y$12$4sVDlcM9ozR94nm5/jBrH.HOrcMgFAX3qvhu8iMUA1ZZQ.ejAiuJK', 'en', NULL, NULL, '2023-12-04 23:27:57', '2023-12-05 10:43:08', NULL),
|
||||
(5, 'Asadullah Galib', NULL, '345353452', NULL, 'galib@gmail.com', 3, 'Galib is an experienced Full Stack Web Developer known for her expertise in building scalable and robust web applications. With a background in both front-end and back-end development, Jane is dedicated to helping students master the skills needed for success in the ever-evolving field of web development.', 'Full Stack Web Developer', 'Lead Instructor', '6641701794615.jpg', 1, '$2y$12$hcJLA2OijnGqL/CuvBu.peWesluepYJDwbdR1/Dl1RnHdbaPKkEq2', 'en', NULL, NULL, '2023-12-05 10:18:26', '2023-12-05 10:43:35', NULL);
|
||||
(1, 'Burhan Uddin Fuad', NULL, '01828543453423', NULL, 'fuad@gmail.com', 3, 'Fuad is a highly skilled Full Stack Web Developer with over 10 years of experience. He specializes in front-end and back-end development, bringing a wealth of knowledge in modern web technologies. John is passionate about teaching and enjoys sharing his expertise with aspiring developers.', 'Experienced Full Stack Web Developer passionate about teaching modern web technologies.', 'Senior Instructor', '7651701794492.jpg', 1, '$2y$12$.U02Y2tp8sspnCmsqXuSZeffY6NSwYAAh.yTcuHNE.nqwslA38Yg6', 'en', NULL, NULL, '2023-11-25 21:35:23', '2024-01-01 01:57:37', NULL),
|
||||
(2, 'Thouhidul Islam', NULL, '8013000291', NULL, 'thouhid@gmail.com', 3, 'Thouhid is an Animation Expert and Video/Graphics Instructor known for her innovative approach to storytelling through animation. With a background in both 2D and 3D animation, Emily guides students through the world of visual storytelling, helping them unleash their creative potential.', '2D Animation and Short Video Ads Specialist', 'Animation Expert', '4991701794515.jpg', 1, '$2y$12$MjQtXT3mxNYqC3BzY8m.euZNzfqlN3M6tjK0snin8Gha8d7vIyoKW', 'en', NULL, NULL, '2023-11-26 00:18:45', '2024-01-01 00:34:52', NULL),
|
||||
(3, 'Raihan Sazzad', NULL, '32189742181', NULL, 'raihan@gmail.com', 3, 'Raihan is an Animation Expert and Video/Graphics Instructor known for her innovative approach to storytelling through animation. With a background in both 2D and 3D animation, Emily guides students through the world of visual storytelling, helping them unleash their creative potential.', 'Professional Designer Who Loves to Design', 'UI UX Designer', '1381701794537.jpg', 1, '$2y$12$NMwYz1.MG6cY5mMncshiku/nxNmKVDp9QylEaCAUlFrNTfh7DxAiq', 'en', NULL, NULL, '2023-12-04 23:25:20', '2024-01-01 00:35:00', NULL),
|
||||
(4, 'Joshim Uddin', NULL, '67566464423', NULL, 'joshim@gmail.com', 3, 'Joshim a passionate and results-oriented Digital Marketer with a knack for navigating the ever-evolving landscape of online promotion. With a strategic mindset, he specialize in crafting data-driven marketing campaigns that elevate brand visibility and engagement.', 'Expert in SMM and Lead Generation', 'Digital Marketer', '1461701794588.jpg', 1, '$2y$12$UgjyjRPmqHjCYLcbWKWYH.I1sQhi.Mve4iFZgHTAILNPj7Ccd7kpS', 'en', NULL, NULL, '2023-12-04 23:27:57', '2024-01-01 00:35:16', NULL),
|
||||
(5, 'Asadullah Galib', NULL, '345353452211', NULL, 'galib@gmail.com', 3, 'Galib is an experienced Full Stack Web Developer known for her expertise in building scalable and robust web applications. With a background in both front-end and back-end development, Jane is dedicated to helping students master the skills needed for success in the ever-evolving field of web development.', 'Full Stack Web Developer', 'Lead Instructor', '6641701794615.jpg', 1, '$2y$12$fDR4aXXRkpbLUxPiHfqhr.miwYdUNYosiYeJ1ihNglRl8AwZjElYS', 'en', NULL, NULL, '2023-12-05 10:18:26', '2024-01-01 00:35:25', NULL);
|
||||
|
||||
-- --------------------------------------------------------
|
||||
|
||||
@ -800,6 +800,7 @@ CREATE TABLE `users` (
|
||||
`contact_en` varchar(255) NOT NULL,
|
||||
`contact_bn` varchar(255) DEFAULT NULL,
|
||||
`role_id` bigint(20) UNSIGNED NOT NULL,
|
||||
`instructor_id` bigint(20) UNSIGNED NOT NULL,
|
||||
`password` varchar(255) NOT NULL,
|
||||
`language` varchar(255) NOT NULL DEFAULT 'en',
|
||||
`image` varchar(255) DEFAULT NULL,
|
||||
@ -815,10 +816,14 @@ CREATE TABLE `users` (
|
||||
-- Dumping data for table `users`
|
||||
--
|
||||
|
||||
INSERT INTO `users` (`id`, `name_en`, `name_bn`, `email`, `contact_en`, `contact_bn`, `role_id`, `password`, `language`, `image`, `full_access`, `status`, `remember_token`, `created_at`, `updated_at`, `deleted_at`) VALUES
|
||||
(10, 'Ibrahim Khalil', NULL, 'admin@gmail.com', '01867655403', NULL, 1, '$2y$12$LdTowbF2MhpiaZLjn8Y/2ecrcjWqcT5VU26aM3J2bv5uN6AeiepaC', 'en', '6161700367047.png', 1, 1, NULL, '2023-11-18 22:01:49', '2023-11-19 01:44:41', NULL),
|
||||
(11, 'Burhan Uddin Fuad', NULL, 'burhan@gmail.com', '0987654321', NULL, 2, '$2y$12$NQlx2gYeStmVCjXEQwsmoejK93e.0Gy59jDLtHPodEM6gYjLc6K7.', 'en', '9231700380051.jpg', 0, 1, NULL, '2023-11-19 01:47:31', '2023-12-06 00:01:45', '2023-12-06 00:01:45'),
|
||||
(12, 'Ahtesanul Haque Kaiser', NULL, 'kaiser@gmail.com', '0124367894', NULL, 2, '$2y$12$EeSCwBeClyyF7kxJ0cK2KOFmH7aw.ZwjiY96Q/3.cmRrZuLvlb2hm', 'en', '2051701842581.jpg', 0, 1, NULL, '2023-11-19 01:55:47', '2023-12-06 00:03:01', NULL);
|
||||
INSERT INTO `users` (`id`, `name_en`, `name_bn`, `email`, `contact_en`, `contact_bn`, `role_id`, `instructor_id`, `password`, `language`, `image`, `full_access`, `status`, `remember_token`, `created_at`, `updated_at`, `deleted_at`) VALUES
|
||||
(10, 'Ibrahim Khalil', NULL, 'admin@gmail.com', '01867655403', NULL, 1, 0, '$2y$12$LdTowbF2MhpiaZLjn8Y/2ecrcjWqcT5VU26aM3J2bv5uN6AeiepaC', 'en', '6161700367047.png', 1, 1, NULL, '2023-11-18 22:01:49', '2023-11-19 01:44:41', NULL),
|
||||
(16, 'aaaaaaa', NULL, 'i@gmail.com', '1234', NULL, 3, 8, '$2y$12$tq3gova/BR2yQtBCdBAxXe6yi9f2F.PPvaRkfZdRThwpOXP.QVF5a', 'en', NULL, 0, 1, NULL, '2024-01-01 00:30:49', '2024-01-01 00:30:49', NULL),
|
||||
(17, 'Burhan Uddin Fuad', NULL, 'fuad@gmail.com', '01828543453423', NULL, 3, 1, '$2y$12$NRXQh6moawk9dqRiD5EVnealrdFUKRIDtQh9gVq3gFGVxXwgD5SaK', 'en', NULL, 0, 1, NULL, '2024-01-01 00:34:43', '2024-01-01 01:57:37', NULL),
|
||||
(18, 'Thouhidul Islam', NULL, 'thouhid@gmail.com', '8013000291', NULL, 3, 2, '$2y$12$mVIdsWtj1.T1UOIQYZOAEOYfBQCPon2X.OjowbkmcJiMemqjaDmre', 'en', NULL, 0, 1, NULL, '2024-01-01 00:34:52', '2024-01-01 00:34:52', NULL),
|
||||
(19, 'Raihan Sazzad', NULL, 'raihan@gmail.com', '32189742181', NULL, 3, 3, '$2y$12$ISCmGljkkC.AkqCY/jY4.u1ye1UWXspkVPB6tLbQthxDAMnScGjMi', 'en', NULL, 0, 1, NULL, '2024-01-01 00:35:01', '2024-01-01 00:35:01', NULL),
|
||||
(20, 'Joshim Uddin', NULL, 'joshim@gmail.com', '67566464423', NULL, 3, 4, '$2y$12$V56J2lP0I6.BEapztk7LGuWjESpGIY6HOSasdxz.FvnC3lle3c5Ru', 'en', NULL, 0, 1, NULL, '2024-01-01 00:35:16', '2024-01-01 00:35:16', NULL),
|
||||
(21, 'Asadullah Galib', NULL, 'galib@gmail.com', '345353452211', NULL, 3, 5, '$2y$12$O60jETh3ipHopktF5JxPDeE7eW85n1g1QV1bzqwQYLaKzOGgHKtDa', 'en', NULL, 0, 1, NULL, '2024-01-01 00:35:25', '2024-01-01 00:35:25', NULL);
|
||||
|
||||
-- --------------------------------------------------------
|
||||
|
||||
@ -1082,7 +1087,7 @@ ALTER TABLE `enrollments`
|
||||
-- AUTO_INCREMENT for table `instructors`
|
||||
--
|
||||
ALTER TABLE `instructors`
|
||||
MODIFY `id` bigint(20) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=6;
|
||||
MODIFY `id` bigint(20) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=9;
|
||||
|
||||
--
|
||||
-- AUTO_INCREMENT for table `lessons`
|
||||
@ -1178,7 +1183,7 @@ ALTER TABLE `subscriptions`
|
||||
-- AUTO_INCREMENT for table `users`
|
||||
--
|
||||
ALTER TABLE `users`
|
||||
MODIFY `id` bigint(20) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=14;
|
||||
MODIFY `id` bigint(20) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=23;
|
||||
|
||||
--
|
||||
-- AUTO_INCREMENT for table `watchlists`
|
||||
|
||||
Fichier binaire non affiché.
|
Avant Largeur: | Hauteur: | Taille: 70 KiB |
550
resources/views/backend/instructorDashboard.blade.php
Fichier normal
550
resources/views/backend/instructorDashboard.blade.php
Fichier normal
@ -0,0 +1,550 @@
|
||||
@extends('backend.layouts.appInstructor')
|
||||
@section('title', 'Instructor Dashboard')
|
||||
|
||||
@push('styles')
|
||||
<link rel="stylesheet" href="{{asset('public/vendor/jqvmap/css/jqvmap.min.css')}}">
|
||||
<link rel="stylesheet" href="{{asset('public/vendor/chartist/css/chartist.min.css')}}">
|
||||
<link rel="stylesheet" href="{{asset('public/css/skin-2.css')}}">
|
||||
@endpush
|
||||
|
||||
@section('content')
|
||||
|
||||
<div class="content-body">
|
||||
<!-- row -->
|
||||
<div class="container-fluid">
|
||||
<div class="row">
|
||||
<div class="col-xl-3 col-xxl-3 col-sm-6">
|
||||
<div class="widget-stat card bg-primary overflow-hidden">
|
||||
<div class="card-header">
|
||||
<h3 class="card-title text-white">Total Students</h3>
|
||||
<h5 class="text-white mb-0"><i class="fa fa-caret-up"></i> 422</h5>
|
||||
</div>
|
||||
<div class="card-body text-center mt-3">
|
||||
<div class="ico-sparkline">
|
||||
<div id="sparkline12"></div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="col-xl-3 col-xxl-3 col-sm-6">
|
||||
<div class="widget-stat card bg-success overflow-hidden">
|
||||
<div class="card-header">
|
||||
<h3 class="card-title text-white">New Students</h3>
|
||||
<h5 class="text-white mb-0"><i class="fa fa-caret-up"></i> 357</h5>
|
||||
</div>
|
||||
<div class="card-body text-center mt-4 p-0">
|
||||
<div class="ico-sparkline">
|
||||
<div id="spark-bar-2"></div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="col-xl-3 col-xxl-3 col-sm-6">
|
||||
<div class="widget-stat card bg-secondary overflow-hidden">
|
||||
<div class="card-header pb-3">
|
||||
<h3 class="card-title text-white">Total Course</h3>
|
||||
<h5 class="text-white mb-0"><i class="fa fa-caret-up"></i> 547</h5>
|
||||
</div>
|
||||
<div class="card-body p-0 mt-2">
|
||||
<div class="px-4"><span class="bar1"
|
||||
data-peity='{ "fill": ["rgb(0, 0, 128)", "rgb(7, 135, 234)"]}'>6,2,8,4,-3,8,1,-3,6,-5,9,2,-8,1,4,8,9,8,2,1</span>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="col-xl-3 col-xxl-3 col-sm-6">
|
||||
<div class="widget-stat card bg-danger overflow-hidden">
|
||||
<div class="card-header pb-3">
|
||||
<h3 class="card-title text-white">Fees Collection</h3>
|
||||
<h5 class="text-white mb-0"><i class="fa fa-caret-up"></i> 3280$</h5>
|
||||
</div>
|
||||
<div class="card-body p-0 mt-1">
|
||||
<span class="peity-line-2" data-width="100%">7,6,8,7,3,8,3,3,6,5,9,2,8</span>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="col-xl-6 col-xxl-6 col-sm-6">
|
||||
<div class="card">
|
||||
<div class="card-header">
|
||||
<h3 class="card-title">Income/Expense Report</h3>
|
||||
</div>
|
||||
<div class="card-body">
|
||||
<canvas id="barChart_2"></canvas>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="col-xl-6 col-xxl-6 col-sm-6">
|
||||
<div class="card">
|
||||
<div class="card-header">
|
||||
<h3 class="card-title">Income/Expense Report</h3>
|
||||
</div>
|
||||
<div class="card-body">
|
||||
<canvas id="areaChart_1"></canvas>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="col-xl-8 col-xxl-8 col-lg-8 col-md-12 col-sm-12">
|
||||
<div class="card">
|
||||
<div class="card-header">
|
||||
<h5 class="card-title">Assign Task</h5>
|
||||
</div>
|
||||
<div class="card-body">
|
||||
<div class="table-responsive">
|
||||
<table class="table header-border table-hover verticle-middle">
|
||||
<thead>
|
||||
<tr>
|
||||
<th scope="col">#</th>
|
||||
<th scope="col">Task</th>
|
||||
<th scope="col">Assigned Professors</th>
|
||||
<th scope="col">Status</th>
|
||||
<th scope="col">Progress</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
<tr>
|
||||
<th>1</th>
|
||||
<td>Working Design report</td>
|
||||
<td>Herman Beck</td>
|
||||
<td><span class="badge badge-rounded badge-primary">DONE</span></td>
|
||||
<td>
|
||||
<div class="progress">
|
||||
<div class="progress-bar" style="width: 70%;" role="progressbar">
|
||||
<span class="sr-only">70% Complete</span>
|
||||
</div>
|
||||
</div>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th>2</th>
|
||||
<td>Fees Collection report</td>
|
||||
<td>Emma Watson</td>
|
||||
<td><span class="badge badge-rounded badge-warning">Panding</span></td>
|
||||
<td>
|
||||
<div class="progress">
|
||||
<div class="progress-bar bg-warning" style="width: 70%;"
|
||||
role="progressbar">
|
||||
<span class="sr-only">70% Complete</span>
|
||||
</div>
|
||||
</div>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th>3</th>
|
||||
<td>Management report</td>
|
||||
<td>Mary Adams</td>
|
||||
<td><span class="badge badge-rounded badge-warning">Panding</span></td>
|
||||
<td>
|
||||
<div class="progress">
|
||||
<div class="progress-bar bg-warning" style="width: 70%;"
|
||||
role="progressbar">
|
||||
<span class="sr-only">70% Complete</span>
|
||||
</div>
|
||||
</div>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th>4</th>
|
||||
<td>Library book status</td>
|
||||
<td>Caleb Richards</td>
|
||||
<td><span class="badge badge-rounded badge-danger">Suspended</span></td>
|
||||
<td>
|
||||
<div class="progress">
|
||||
<div class="progress-bar bg-danger" style="width: 70%;"
|
||||
role="progressbar">
|
||||
<span class="sr-only">70% Complete</span>
|
||||
</div>
|
||||
</div>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th>5</th>
|
||||
<td>Placement status</td>
|
||||
<td>June Lane</td>
|
||||
<td><span class="badge badge-rounded badge-warning">Panding</span></td>
|
||||
<td>
|
||||
<div class="progress">
|
||||
<div class="progress-bar bg-warning" style="width: 70%;"
|
||||
role="progressbar">
|
||||
<span class="sr-only">70% Complete</span>
|
||||
</div>
|
||||
</div>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th>6</th>
|
||||
<td>Working Design report</td>
|
||||
<td>Herman Beck</td>
|
||||
<td><span class="badge badge-rounded badge-primary">DONE</span></td>
|
||||
<td>
|
||||
<div class="progress">
|
||||
<div class="progress-bar" style="width: 70%;" role="progressbar">
|
||||
<span class="sr-only">70% Complete</span>
|
||||
</div>
|
||||
</div>
|
||||
</td>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="col-xl-4 col-xxl-4 col-lg-4 col-md-12 col-sm-12">
|
||||
<div class="card">
|
||||
<div class="card-header">
|
||||
<h4 class="card-title">Notifications</h4>
|
||||
</div>
|
||||
<div class="card-body">
|
||||
<div class="widget-todo dz-scroll" style="height:370px;" id="DZ_W_Notifications">
|
||||
<ul class="timeline">
|
||||
<li>
|
||||
<div class="timeline-badge primary"></div>
|
||||
<a class="timeline-panel text-muted mb-3 d-flex align-items-center"
|
||||
href="javascript:void(0);">
|
||||
<img class="rounded-circle" alt="image" width="50"
|
||||
src="{{asset('public/images/profile/education/pic1.jpg')}}">
|
||||
<div class="col">
|
||||
<h5 class="mb-1">Dr sultads Send you Photo</h5>
|
||||
<small class="d-block">29 July 2020 - 02:26 PM</small>
|
||||
</div>
|
||||
</a>
|
||||
</li>
|
||||
<li>
|
||||
<div class="timeline-badge warning"></div>
|
||||
<a class="timeline-panel text-muted mb-3 d-flex align-items-center"
|
||||
href="javascript:void(0);">
|
||||
<img class="rounded-circle" alt="image" width="50"
|
||||
src="{{asset('public/images/profile/education/pic2.jpg')}}">
|
||||
<div class="col">
|
||||
<h5 class="mb-1">Resport created successfully</h5>
|
||||
<small class="d-block">29 July 2020 - 02:26 PM</small>
|
||||
</div>
|
||||
</a>
|
||||
</li>
|
||||
<li>
|
||||
<div class="timeline-badge danger"></div>
|
||||
<a class="timeline-panel text-muted mb-3 d-flex align-items-center"
|
||||
href="javascript:void(0);">
|
||||
<img class="rounded-circle" alt="image" width="50"
|
||||
src="{{asset('public/images/profile/education/pic3.jpg')}}">
|
||||
<div class="col">
|
||||
<h5 class="mb-1">Reminder : Treatment Time!</h5>
|
||||
<small class="d-block">29 July 2020 - 02:26 PM</small>
|
||||
</div>
|
||||
</a>
|
||||
</li>
|
||||
<li>
|
||||
<div class="timeline-badge success"></div>
|
||||
<a class="timeline-panel text-muted mb-3 d-flex align-items-center"
|
||||
href="javascript:void(0);">
|
||||
<img class="rounded-circle" alt="image" width="50"
|
||||
src="{{asset('public/images/profile/education/pic4.jpg')}}">
|
||||
<div class="col">
|
||||
<h5 class="mb-1">Dr sultads Send you Photo</h5>
|
||||
<small class="d-block">29 July 2020 - 02:26 PM</small>
|
||||
</div>
|
||||
</a>
|
||||
</li>
|
||||
<li>
|
||||
<div class="timeline-badge warning"></div>
|
||||
<a class="timeline-panel text-muted mb-3 d-flex align-items-center"
|
||||
href="javascript:void(0);">
|
||||
<img class="rounded-circle" alt="image" width="50"
|
||||
src="{{asset('public/images/profile/education/pic5.jpg')}}">
|
||||
<div class="col">
|
||||
<h5 class="mb-1">Resport created successfully</h5>
|
||||
<small class="d-block">29 July 2020 - 02:26 PM</small>
|
||||
</div>
|
||||
</a>
|
||||
</li>
|
||||
<li>
|
||||
<div class="timeline-badge dark"></div>
|
||||
<a class="timeline-panel text-muted mb-3 d-flex align-items-center"
|
||||
href="javascript:void(0);">
|
||||
<img class="rounded-circle" alt="image" width="50"
|
||||
src="{{asset('public/images/profile/education/pic6.jpg')}}">
|
||||
<div class="col">
|
||||
<h5 class="mb-1">Reminder : Treatment Time!</h5>
|
||||
<small class="d-block">29 July 2020 - 02:26 PM</small>
|
||||
</div>
|
||||
</a>
|
||||
</li>
|
||||
<li>
|
||||
<div class="timeline-badge info"></div>
|
||||
<a class="timeline-panel text-muted mb-3 d-flex align-items-center"
|
||||
href="javascript:void(0);">
|
||||
<img class="rounded-circle" alt="image" width="50"
|
||||
src="{{asset('public/images/profile/education/pic7.jpg')}}">
|
||||
<div class="col">
|
||||
<h5 class="mb-1">Dr sultads Send you Photo</h5>
|
||||
<small class="d-block">29 July 2020 - 02:26 PM</small>
|
||||
</div>
|
||||
</a>
|
||||
</li>
|
||||
<li>
|
||||
<div class="timeline-badge danger"></div>
|
||||
<a class="timeline-panel text-muted mb-3 d-flex align-items-center"
|
||||
href="javascript:void(0);">
|
||||
<img class="rounded-circle" alt="image" width="50"
|
||||
src="{{asset('public/images/profile/education/pic8.jpg')}}">
|
||||
<div class="col">
|
||||
<h5 class="mb-1">Resport created successfully</h5>
|
||||
<small class="d-block">29 July 2020 - 02:26 PM</small>
|
||||
</div>
|
||||
</a>
|
||||
</li>
|
||||
<li>
|
||||
<div class="timeline-badge success"></div>
|
||||
<a class="timeline-panel text-muted mb-3 d-flex align-items-center"
|
||||
href="javascript:void(0);">
|
||||
<img class="rounded-circle" alt="image" width="50"
|
||||
src="{{asset('public/images/profile/education/pic9.jpg')}}">
|
||||
<div class="col">
|
||||
<h5 class="mb-1">Reminder : Treatment Time!</h5>
|
||||
<small class="d-block">29 July 2020 - 02:26 PM</small>
|
||||
</div>
|
||||
</a>
|
||||
</li>
|
||||
<li>
|
||||
<div class="timeline-badge warning"></div>
|
||||
<a class="timeline-panel text-muted d-flex align-items-center"
|
||||
href="javascript:void(0);">
|
||||
<img class="rounded-circle" alt="image" width="50"
|
||||
src="{{asset('public/images/profile/education/pic10.jpg')}}">
|
||||
<div class="col">
|
||||
<h5 class="mb-1">Dr sultads Send you Photo</h5>
|
||||
<small class="d-block">29 July 2020 - 02:26 PM</small>
|
||||
</div>
|
||||
</a>
|
||||
</li>
|
||||
</ul>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="col-lg-12">
|
||||
<div class="card">
|
||||
<div class="card-header">
|
||||
<h4 class="card-title">New Student List </h4>
|
||||
</div>
|
||||
<div class="card-body">
|
||||
<div class="table-responsive">
|
||||
<table class="table table-sm mb-0 table-striped">
|
||||
<thead>
|
||||
<tr>
|
||||
<th class="px-5 py-3">Name</th>
|
||||
<th class="py-3">Assigned Professor</th>
|
||||
<th class="py-3">Branch</th>
|
||||
<th class="py-3">Status</th>
|
||||
<th class="py-3">Date Of Admit</th>
|
||||
<th class="py-3">Edit</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody id="customers">
|
||||
<tr class="btn-reveal-trigger">
|
||||
<td class="p-3">
|
||||
<a href="javascript:void(0);">
|
||||
<div class="media d-flex align-items-center">
|
||||
<div class="avatar avatar-xl mr-2">
|
||||
<img class="rounded-circle img-fluid"
|
||||
src="{{asset('public/images/avatar/5.png')}}" width="30"
|
||||
alt="">
|
||||
</div>
|
||||
<div class="media-body">
|
||||
<h5 class="mb-0 fs--1">Ricky Antony</h5>
|
||||
</div>
|
||||
</div>
|
||||
</a>
|
||||
</td>
|
||||
<td class="py-2">Herman Beck</td>
|
||||
<td class="py-2">Mechanical</td>
|
||||
<td><span class="badge badge-rounded badge-primary">DONE</span></td>
|
||||
<td class="py-2">30/03/2018</td>
|
||||
<td>
|
||||
<a href="edit-student.html" class="btn btn-sm btn-primary"><i
|
||||
class="la la-pencil"></i></a>
|
||||
<a href="javascript:void(0);" class="btn btn-sm btn-danger"><i
|
||||
class="la la-trash-o"></i></a>
|
||||
</td>
|
||||
</tr>
|
||||
<tr class="btn-reveal-trigger">
|
||||
<td class="p-3">
|
||||
<a href="javascript:void(0);">
|
||||
<div class="media d-flex align-items-center">
|
||||
<div class="avatar avatar-xl mr-2">
|
||||
<img class="rounded-circle img-fluid"
|
||||
src="{{asset('public/images/avatar/1.png')}}" alt=""
|
||||
width="30">
|
||||
</div>
|
||||
<div class="media-body">
|
||||
<h5 class="mb-0 fs--1">Emma Watson</h5>
|
||||
</div>
|
||||
</div>
|
||||
</a>
|
||||
</td>
|
||||
<td class="py-2">Emma Watson</td>
|
||||
<td class="py-2">Computer</td>
|
||||
<td><span class="badge badge-rounded badge-warning">Panding</span></td>
|
||||
<td class="py-2">11/07/2017</td>
|
||||
<td>
|
||||
<a href="edit-student.html" class="btn btn-sm btn-primary"><i
|
||||
class="la la-pencil"></i></a>
|
||||
<a href="javascript:void(0);" class="btn btn-sm btn-danger"><i
|
||||
class="la la-trash-o"></i></a>
|
||||
</td>
|
||||
</tr>
|
||||
<tr class="btn-reveal-trigger">
|
||||
<td class="p-3">
|
||||
<a href="javascript:void(0);">
|
||||
<div class="media d-flex align-items-center">
|
||||
<div class="avatar avatar-xl mr-2">
|
||||
<img class="rounded-circle img-fluid"
|
||||
src="{{asset('public/images/avatar/5.png')}}" width="30"
|
||||
alt="">
|
||||
</div>
|
||||
<div class="media-body">
|
||||
<h5 class="mb-0 fs--1">Rowen Atkinson</h5>
|
||||
</div>
|
||||
</div>
|
||||
</a>
|
||||
</td>
|
||||
<td class="py-2">Mary Adams</td>
|
||||
<td class="py-2">Mechanical</td>
|
||||
<td><span class="badge badge-rounded badge-primary">DONE</span></td>
|
||||
<td class="py-2">05/04/2016</td>
|
||||
<td>
|
||||
<a href="edit-student.html" class="btn btn-sm btn-primary"><i
|
||||
class="la la-pencil"></i></a>
|
||||
<a href="javascript:void(0);" class="btn btn-sm btn-danger"><i
|
||||
class="la la-trash-o"></i></a>
|
||||
</td>
|
||||
</tr>
|
||||
<tr class="btn-reveal-trigger">
|
||||
<td class="p-3">
|
||||
<a href="javascript:void(0);">
|
||||
<div class="media d-flex align-items-center">
|
||||
<div class="avatar avatar-xl mr-2">
|
||||
<img class="rounded-circle img-fluid"
|
||||
src="{{asset('public/images/avatar/1.png')}}" alt=""
|
||||
width="30">
|
||||
</div>
|
||||
<div class="media-body">
|
||||
<h5 class="mb-0 fs--1">Antony Hopkins</h5>
|
||||
</div>
|
||||
</div>
|
||||
</a>
|
||||
</td>
|
||||
<td class="py-2">Caleb Richards </td>
|
||||
<td class="py-2">Computer </td>
|
||||
<td><span class="badge badge-rounded badge-danger">Suspended</span></td>
|
||||
<td class="py-2">05/04/2018</td>
|
||||
<td>
|
||||
<a href="edit-student.html" class="btn btn-sm btn-primary"><i
|
||||
class="la la-pencil"></i></a>
|
||||
<a href="javascript:void(0);" class="btn btn-sm btn-danger"><i
|
||||
class="la la-trash-o"></i></a>
|
||||
</td>
|
||||
</tr>
|
||||
<tr class="btn-reveal-trigger">
|
||||
<td class="p-3">
|
||||
<a href="javascript:void(0);">
|
||||
<div class="media d-flex align-items-center">
|
||||
<div class="avatar avatar-xl mr-2">
|
||||
<img class="rounded-circle img-fluid"
|
||||
src="{{asset('public/images/avatar/1.png')}}" alt=""
|
||||
width="30">
|
||||
</div>
|
||||
<div class="media-body">
|
||||
<h5 class="mb-0 fs--1">Jennifer Schramm</h5>
|
||||
</div>
|
||||
</div>
|
||||
</a>
|
||||
</td>
|
||||
<td class="py-2">June Lane</td>
|
||||
<td class="py-2">Fees Collection</td>
|
||||
<td><span class="badge badge-rounded badge-warning">Panding</span></td>
|
||||
<td class="py-2">17/03/2016</td>
|
||||
<td>
|
||||
<a href="edit-student.html" class="btn btn-sm btn-primary"><i
|
||||
class="la la-pencil"></i></a>
|
||||
<a href="javascript:void(0);" class="btn btn-sm btn-danger"><i
|
||||
class="la la-trash-o"></i></a>
|
||||
</td>
|
||||
</tr>
|
||||
<tr class="btn-reveal-trigger">
|
||||
<td class="p-3">
|
||||
<a href="javascript:void(0);">
|
||||
<div class="media d-flex align-items-center">
|
||||
<div class="avatar avatar-xl mr-2">
|
||||
<img class="rounded-circle img-fluid"
|
||||
src="{{asset('public/images/avatar/5.png')}}" width="30"
|
||||
alt="">
|
||||
</div>
|
||||
<div class="media-body">
|
||||
<h5 class="mb-0 fs--1">Raymond Mims</h5>
|
||||
</div>
|
||||
</div>
|
||||
</a>
|
||||
</td>
|
||||
<td class="py-2">Herman Beck</td>
|
||||
<td class="py-2">Computer</td>
|
||||
<td><span class="badge badge-rounded badge-danger">Suspended</span></td>
|
||||
<td class="py-2">12/07/2014</td>
|
||||
<td>
|
||||
<a href="edit-student.html" class="btn btn-sm btn-primary"><i
|
||||
class="la la-pencil"></i></a>
|
||||
<a href="javascript:void(0);" class="btn btn-sm btn-danger"><i
|
||||
class="la la-trash-o"></i></a>
|
||||
</td>
|
||||
</tr>
|
||||
<tr class="btn-reveal-trigger">
|
||||
<td class="p-3">
|
||||
<a href="javascript:void(0);">
|
||||
<div class="media d-flex align-items-center">
|
||||
<div class="avatar avatar-xl mr-2">
|
||||
<img class="rounded-circle img-fluid"
|
||||
src="{{asset('public/images/avatar/1.png')}}" alt=""
|
||||
width="30">
|
||||
</div>
|
||||
<div class="media-body">
|
||||
<h5 class="mb-0 fs--1">Michael Jenkins</h5>
|
||||
</div>
|
||||
</div>
|
||||
</a>
|
||||
</td>
|
||||
<td class="py-2">Jennifer Schramm</td>
|
||||
<td class="py-2">Mechanical</td>
|
||||
<td><span class="badge badge-rounded badge-warning">Panding</span></td>
|
||||
<td class="py-2">15/06/2014</td>
|
||||
<td>
|
||||
<a href="edit-student.html" class="btn btn-sm btn-primary"><i
|
||||
class="la la-pencil"></i></a>
|
||||
<a href="javascript:void(0);" class="btn btn-sm btn-danger"><i
|
||||
class="la la-trash-o"></i></a>
|
||||
</td>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
@endsection
|
||||
|
||||
@push('scripts')
|
||||
<!-- Chart ChartJS plugin files -->
|
||||
<script src="{{asset('public/vendor/chart.js/Chart.bundle.min.js')}}"></script>
|
||||
|
||||
<!-- Chart piety plugin files -->
|
||||
<script src="{{asset('public/vendor/peity/jquery.peity.min.js')}}"></script>
|
||||
|
||||
<!-- Chart sparkline plugin files -->
|
||||
<script src="{{asset('public/vendor/jquery-sparkline/jquery.sparkline.min.js')}}"></script>
|
||||
|
||||
<!-- Demo scripts -->
|
||||
<script src="{{asset('public/js/dashboard/dashboard-3.js')}}"></script>
|
||||
@endpush
|
||||
354
resources/views/backend/layouts/appInstructor.blade.php
Fichier normal
354
resources/views/backend/layouts/appInstructor.blade.php
Fichier normal
@ -0,0 +1,354 @@
|
||||
<!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">Admin 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 class="" href="{{route('role.index')}}" aria-expanded="false">
|
||||
<i class="las la-cog"></i>
|
||||
<span class="nav-text">Permissions</span>
|
||||
</a>
|
||||
</li>
|
||||
<li><a class="has-arrow" href="javascript:void()" aria-expanded="false">
|
||||
<i class="la la-universal-access"></i>
|
||||
<span class="nav-text">Roles</span>
|
||||
</a>
|
||||
<ul aria-expanded="false">
|
||||
<li><a href="{{route('user.index')}}"><i class="la la-users"></i>Users</a></li>
|
||||
<li><a href="{{route('instructor.index')}}"><i
|
||||
class="las la-chalkboard-teacher"></i>Instructors</a>
|
||||
</li>
|
||||
<li><a href="{{route('student.index')}}"><i class="las la-book-reader"></i>Students</a></li>
|
||||
</ul>
|
||||
</li>
|
||||
<li><a class="has-arrow" href="javascript:void()" aria-expanded="false">
|
||||
<i class="las la-school"></i>
|
||||
<span class="nav-text">Courses</span>
|
||||
</a>
|
||||
<ul aria-expanded="false">
|
||||
<li><a href="{{route('courseCategory.index')}}"><i class="la la-list"></i>Course
|
||||
Category</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>Lessons</a></li>
|
||||
<li><a href="{{route('material.index')}}"><i class="las la-atom"></i></i>Materials</a></li>
|
||||
</ul>
|
||||
</li>
|
||||
<li><a class="has-arrow" href="javascript:void()" aria-expanded="false">
|
||||
<i class="las la-tasks"></i>
|
||||
<span class="nav-text">Quizzes</span>
|
||||
</a>
|
||||
<ul aria-expanded="false">
|
||||
<li><a href="{{route('quiz.index')}}"><i class="las la-icons"></i>All Quizzes</a></li>
|
||||
<li><a href="{{route('question.index')}}"><i
|
||||
class="las la-question-circle"></i>Questions</a></li>
|
||||
{{-- <li><a href="{{route('option.index')}}"><i class="las la-stream"></i>Options</a></li>
|
||||
<li><a href="{{route('answer.index')}}"><i class="las la-font"></i>Answers</a></li> --}}
|
||||
</ul>
|
||||
</li>
|
||||
<li><a class="has-arrow" href="javascript:void()" aria-expanded="false">
|
||||
<i class="las la-star-half-alt"></i>
|
||||
<span class="nav-text">Reviews</span>
|
||||
</a>
|
||||
<ul aria-expanded="false">
|
||||
<li><a href="{{route('review.index')}}"><i class="las la-wave-square"></i>All Review</a>
|
||||
</li>
|
||||
<li><a href="{{route('review.index')}}"><i class="las la-star"></i>Ratings</a></li>
|
||||
</ul>
|
||||
</li>
|
||||
<li><a class="has-arrow" href="javascript:void()" aria-expanded="false">
|
||||
<i class="las la-comment"></i>
|
||||
<span class="nav-text">Forum</span>
|
||||
</a>
|
||||
<ul aria-expanded="false">
|
||||
<li><a href="{{route('discussion.index')}}"><i class="las la-comment-alt"></i>Discussion</a>
|
||||
</li>
|
||||
<li><a href="{{route('message.index')}}"><i class="las la-envelope"></i>Messages</a></li>
|
||||
</ul>
|
||||
</li>
|
||||
<li><a class="has-arrow" href="javascript:void()" aria-expanded="false">
|
||||
<i class="las la-money-check"></i>
|
||||
<span class="nav-text">Payments</span>
|
||||
</a>
|
||||
<ul aria-expanded="false">
|
||||
<li><a href="javascript:void()"><i class="las la-money-bill"></i>Course Fees</a></li>
|
||||
<li><a href="javascript:void()"><i class="lab la-gg-circle"></i>Subscription Fees</a></li>
|
||||
<li><a href="{{route('coupon.index')}}"><i class="las la-tags"></i>Coupons</a></li>
|
||||
</ul>
|
||||
</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>
|
||||
Chargement…
Référencer dans un nouveau ticket
Block a user