u 20nov2023
@ -33,7 +33,7 @@ public function signUpStore(SignUpRequest $request)
|
|||||||
else
|
else
|
||||||
return redirect('login')->with('danger', 'Please Try Again');
|
return redirect('login')->with('danger', 'Please Try Again');
|
||||||
} catch (Exception $e) {
|
} catch (Exception $e) {
|
||||||
dd($e);
|
// dd($e);
|
||||||
return redirect('login')->with('danger', 'Please Try Again');
|
return redirect('login')->with('danger', 'Please Try Again');
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@ -56,7 +56,7 @@ public function signInCheck(SignInRequest $request)
|
|||||||
} else
|
} else
|
||||||
return redirect()->route('login')->with('error', 'Username or Password is wrong!');
|
return redirect()->route('login')->with('error', 'Username or Password is wrong!');
|
||||||
} catch (Exception $e) {
|
} catch (Exception $e) {
|
||||||
dd($e);
|
// dd($e);
|
||||||
return redirect()->route('login')->with('error', 'Username or Password is wrong!');
|
return redirect()->route('login')->with('error', 'Username or Password is wrong!');
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@ -66,8 +66,8 @@ public function setSession($user)
|
|||||||
return request()->session()->put(
|
return request()->session()->put(
|
||||||
[
|
[
|
||||||
'userId' => encryptor('encrypt', $user->id),
|
'userId' => encryptor('encrypt', $user->id),
|
||||||
'userName' => encryptor('encrypt', $user->name),
|
'userName' => encryptor('encrypt', $user->name_en),
|
||||||
'userId' => encryptor('encrypt', $user->id),
|
'emailAddress' => encryptor('encrypt', $user->email),
|
||||||
'role_id'=> encryptor('encrypt',$user->role_id),
|
'role_id'=> encryptor('encrypt',$user->role_id),
|
||||||
'accessType'=> encryptor('encrypt',$user->full_access),
|
'accessType'=> encryptor('encrypt',$user->full_access),
|
||||||
'role' => encryptor('encrypt', $user->role->type),
|
'role' => encryptor('encrypt', $user->role->type),
|
||||||
@ -83,4 +83,9 @@ public function signOut()
|
|||||||
request()->session()->flush();
|
request()->session()->flush();
|
||||||
return redirect('login')->with('danger', 'Succesfully Logged Out');
|
return redirect('login')->with('danger', 'Succesfully Logged Out');
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public function show(User $data)
|
||||||
|
{
|
||||||
|
return view('backend.user.profile', compact('data'));
|
||||||
|
}
|
||||||
}
|
}
|
||||||
@ -10,6 +10,7 @@
|
|||||||
use App\Http\Requests\Backend\User\UpdateRequest;
|
use App\Http\Requests\Backend\User\UpdateRequest;
|
||||||
use Exception;
|
use Exception;
|
||||||
use Illuminate\Support\Facades\Hash;
|
use Illuminate\Support\Facades\Hash;
|
||||||
|
use File;
|
||||||
|
|
||||||
class UserController extends Controller
|
class UserController extends Controller
|
||||||
{
|
{
|
||||||
@ -120,8 +121,16 @@ public function update(UpdateRequest $request, $id)
|
|||||||
/**
|
/**
|
||||||
* Remove the specified resource from storage.
|
* Remove the specified resource from storage.
|
||||||
*/
|
*/
|
||||||
public function destroy(string $id)
|
public function destroy($id)
|
||||||
{
|
{
|
||||||
//
|
$data=User::findOrFail(encryptor('decrypt',$id));
|
||||||
|
$image_path=public_path('uploads/users/').$data->image;
|
||||||
|
|
||||||
|
if($data->delete()){
|
||||||
|
if(File::exists($image_path))
|
||||||
|
File::delete($image_path);
|
||||||
|
|
||||||
|
return redirect()->back();
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
112
app/Http/Controllers/CourseCategoryController.php
Fichier normal
@ -0,0 +1,112 @@
|
|||||||
|
<?php
|
||||||
|
|
||||||
|
namespace App\Http\Controllers;
|
||||||
|
|
||||||
|
use App\Models\CourseCategory;
|
||||||
|
use Illuminate\Http\Request;
|
||||||
|
use App\Http\Requests\Backend\CourseCategory\AddNewRequest;
|
||||||
|
use Exception;
|
||||||
|
use File;
|
||||||
|
|
||||||
|
class CourseCategoryController extends Controller
|
||||||
|
{
|
||||||
|
/**
|
||||||
|
* Display a listing of the resource.
|
||||||
|
*/
|
||||||
|
public function index()
|
||||||
|
{
|
||||||
|
$data = CourseCategory::paginate(10);
|
||||||
|
return view('courseCategory.index', compact('data'));
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Show the form for creating a new resource.
|
||||||
|
*/
|
||||||
|
public function create()
|
||||||
|
{
|
||||||
|
return view('courseCategory.create');
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Store a newly created resource in storage.
|
||||||
|
*/
|
||||||
|
public function store(AddNewRequest $request)
|
||||||
|
{
|
||||||
|
try {
|
||||||
|
$data = new CourseCategory;
|
||||||
|
$data->category_name = $request->category_name;
|
||||||
|
$data->category_status = $request->category_status;
|
||||||
|
|
||||||
|
if ($request->hasFile('category_image')) {
|
||||||
|
$imageName = rand(111, 999) . time() . '.' . $request->category_image->extension();
|
||||||
|
$request->category_image->move(public_path('uploads/courseCategories'), $imageName);
|
||||||
|
$data->category_image = $imageName;
|
||||||
|
}
|
||||||
|
if ($data->save())
|
||||||
|
return redirect()->route('courseCategory.index')->with('success', 'Data Saved');
|
||||||
|
else
|
||||||
|
return redirect()->back()->withInput()->with('error', 'Please try again');
|
||||||
|
} catch (Exception $e) {
|
||||||
|
// dd($e);
|
||||||
|
return redirect()->back()->withInput()->with('error', 'Please try again');
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Display the specified resource.
|
||||||
|
*/
|
||||||
|
public function show(CourseCategory $courseCategory)
|
||||||
|
{
|
||||||
|
//
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Show the form for editing the specified resource.
|
||||||
|
*/
|
||||||
|
public function edit($id)
|
||||||
|
{
|
||||||
|
$data = CourseCategory::findOrFail($id);
|
||||||
|
return view('courseCategory.edit', compact('data'));
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Update the specified resource in storage.
|
||||||
|
*/
|
||||||
|
public function update(Request $request, $id)
|
||||||
|
{
|
||||||
|
try {
|
||||||
|
$data = CourseCategory::findOrFail($id);
|
||||||
|
$data->category_name = $request->category_name;
|
||||||
|
$data->category_status = $request->category_status;
|
||||||
|
|
||||||
|
if ($request->hasFile('category_image')) {
|
||||||
|
$imageName = rand(111, 999) . time() . '.' . $request->category_image->extension();
|
||||||
|
$request->category_image->move(public_path('uploads/courseCategories'), $imageName);
|
||||||
|
$data->category_image = $imageName;
|
||||||
|
}
|
||||||
|
if ($data->save())
|
||||||
|
return redirect()->route('courseCategory.index')->with('success', 'Data Saved');
|
||||||
|
else
|
||||||
|
return redirect()->back()->withInput()->with('error', 'Please try again');
|
||||||
|
} catch (Exception $e) {
|
||||||
|
// dd($e);
|
||||||
|
return redirect()->back()->withInput()->with('error', 'Please try again');
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Remove the specified resource from storage.
|
||||||
|
*/
|
||||||
|
public function destroy($id)
|
||||||
|
{
|
||||||
|
$data = CourseCategory::findOrFail($id);
|
||||||
|
$image_path = public_path('uploads/courseCategories/') . $data->category_image;
|
||||||
|
|
||||||
|
if ($data->delete()) {
|
||||||
|
if (File::exists($image_path))
|
||||||
|
File::delete($image_path);
|
||||||
|
|
||||||
|
return redirect()->back();
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
@ -22,7 +22,7 @@ public function handle(Request $request, Closure $next): Response
|
|||||||
} else {
|
} else {
|
||||||
$user = User::find(currentUserId());
|
$user = User::find(currentUserId());
|
||||||
if (!$user) {
|
if (!$user) {
|
||||||
return redirecty()->route('logOut');
|
return redirect()->route('logOut');
|
||||||
} else if ($user->full_access == "1") {
|
} else if ($user->full_access == "1") {
|
||||||
return $next($request);
|
return $next($request);
|
||||||
} else {
|
} else {
|
||||||
|
|||||||
28
app/Http/Requests/Backend/CourseCategory/AddNewRequest.php
Fichier normal
@ -0,0 +1,28 @@
|
|||||||
|
<?php
|
||||||
|
|
||||||
|
namespace App\Http\Requests\Backend\CourseCategory;
|
||||||
|
|
||||||
|
use Illuminate\Foundation\Http\FormRequest;
|
||||||
|
|
||||||
|
class AddNewRequest extends FormRequest
|
||||||
|
{
|
||||||
|
/**
|
||||||
|
* Determine if the user is authorized to make this request.
|
||||||
|
*/
|
||||||
|
public function authorize(): bool
|
||||||
|
{
|
||||||
|
return true;
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Get the validation rules that apply to the request.
|
||||||
|
*
|
||||||
|
* @return array<string, \Illuminate\Contracts\Validation\ValidationRule|array<mixed>|string>
|
||||||
|
*/
|
||||||
|
public function rules(): array
|
||||||
|
{
|
||||||
|
return [
|
||||||
|
'category_name'=>'required|max:255'
|
||||||
|
];
|
||||||
|
}
|
||||||
|
}
|
||||||
28
app/Http/Requests/Backend/CourseCategory/UpdateRequest.php
Fichier normal
@ -0,0 +1,28 @@
|
|||||||
|
<?php
|
||||||
|
|
||||||
|
namespace App\Http\Requests\Backend\CourseCategory;
|
||||||
|
|
||||||
|
use Illuminate\Foundation\Http\FormRequest;
|
||||||
|
|
||||||
|
class UpdateRequest extends FormRequest
|
||||||
|
{
|
||||||
|
/**
|
||||||
|
* Determine if the user is authorized to make this request.
|
||||||
|
*/
|
||||||
|
public function authorize(): bool
|
||||||
|
{
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Get the validation rules that apply to the request.
|
||||||
|
*
|
||||||
|
* @return array<string, \Illuminate\Contracts\Validation\ValidationRule|array<mixed>|string>
|
||||||
|
*/
|
||||||
|
public function rules(): array
|
||||||
|
{
|
||||||
|
return [
|
||||||
|
//
|
||||||
|
];
|
||||||
|
}
|
||||||
|
}
|
||||||
@ -30,3 +30,4 @@ public function rules(): array
|
|||||||
];
|
];
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
11
app/Models/CourseCategory.php
Fichier normal
@ -0,0 +1,11 @@
|
|||||||
|
<?php
|
||||||
|
|
||||||
|
namespace App\Models;
|
||||||
|
|
||||||
|
use Illuminate\Database\Eloquent\Factories\HasFactory;
|
||||||
|
use Illuminate\Database\Eloquent\Model;
|
||||||
|
|
||||||
|
class CourseCategory extends Model
|
||||||
|
{
|
||||||
|
use HasFactory;
|
||||||
|
}
|
||||||
31
database/migrations/2023_11_19_053448_create_course_categories_table.php
Fichier normal
@ -0,0 +1,31 @@
|
|||||||
|
<?php
|
||||||
|
|
||||||
|
use Illuminate\Database\Migrations\Migration;
|
||||||
|
use Illuminate\Database\Schema\Blueprint;
|
||||||
|
use Illuminate\Support\Facades\Schema;
|
||||||
|
|
||||||
|
return new class extends Migration
|
||||||
|
{
|
||||||
|
/**
|
||||||
|
* Run the migrations.
|
||||||
|
*/
|
||||||
|
public function up(): void
|
||||||
|
{
|
||||||
|
Schema::create('course_categories', function (Blueprint $table) {
|
||||||
|
$table->id();
|
||||||
|
$table->string('category_name',255);
|
||||||
|
$table->boolean('category_status')->default(1)->comment('1=>active 2=>inactive');
|
||||||
|
$table->string('category_image')->nullable();
|
||||||
|
$table->timestamps();
|
||||||
|
$table->softDeletes();
|
||||||
|
});
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Reverse the migrations.
|
||||||
|
*/
|
||||||
|
public function down(): void
|
||||||
|
{
|
||||||
|
Schema::dropIfExists('course_categories');
|
||||||
|
}
|
||||||
|
};
|
||||||
BIN
public/uploads/courseCategories/2561700453472.jpg
Fichier normal
|
Après Largeur: | Hauteur: | Taille: 148 KiB |
BIN
public/uploads/courseCategories/2951700375064.jpg
Fichier normal
|
Après Largeur: | Hauteur: | Taille: 135 KiB |
BIN
public/uploads/courseCategories/3871700453037.jpg
Fichier normal
|
Après Largeur: | Hauteur: | Taille: 145 KiB |
BIN
public/uploads/courseCategories/5771700378684.jpg
Fichier normal
|
Après Largeur: | Hauteur: | Taille: 166 KiB |
BIN
public/uploads/courseCategories/6171700375048.jpg
Fichier normal
|
Après Largeur: | Hauteur: | Taille: 135 KiB |
BIN
public/uploads/courseCategories/9051700450448.jpg
Fichier normal
|
Après Largeur: | Hauteur: | Taille: 175 KiB |
BIN
public/uploads/courseCategories/9341700378633.jpg
Fichier normal
|
Après Largeur: | Hauteur: | Taille: 146 KiB |
BIN
public/uploads/courseCategories/9871700452877.jpg
Fichier normal
|
Après Largeur: | Hauteur: | Taille: 145 KiB |
|
Avant Largeur: | Hauteur: | Taille: 255 KiB |
|
Avant Largeur: | Hauteur: | Taille: 18 KiB |
|
Avant Largeur: | Hauteur: | Taille: 204 KiB |
|
Avant Largeur: | Hauteur: | Taille: 255 KiB |
|
Avant Largeur: | Hauteur: | Taille: 204 KiB |
BIN
public/uploads/users/4251700380547.jpg
Fichier normal
|
Après Largeur: | Hauteur: | Taille: 22 KiB |
|
Avant Largeur: | Hauteur: | Taille: 255 KiB |
BIN
public/uploads/users/6161700367047.png
Fichier normal
|
Après Largeur: | Hauteur: | Taille: 71 KiB |
|
Avant Largeur: | Hauteur: | Taille: 255 KiB |
|
Avant Largeur: | Hauteur: | Taille: 255 KiB |
BIN
public/uploads/users/9231700380051.jpg
Fichier normal
|
Après Largeur: | Hauteur: | Taille: 18 KiB |
@ -1,15 +1,23 @@
|
|||||||
@extends('backend.layouts.app')
|
@extends('backend.layouts.app')
|
||||||
@section('title', 'Admin Dashboard')
|
@section('title', 'Admin Dashboard')
|
||||||
|
|
||||||
|
@push('styles')
|
||||||
|
<!-- Favicon icon -->
|
||||||
|
<link rel="icon" type="image/png" sizes="16x16" href="{{asset('public/images/favicon.png')}}">
|
||||||
|
<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/vendor/bootstrap-select/dist/css/bootstrap-select.min.css')}}">
|
||||||
|
<link rel="stylesheet" href="{{asset('public/css/style.css')}}">
|
||||||
|
<link rel="stylesheet" href="{{asset('public/css/skin-2.css')}}">
|
||||||
|
@endpush
|
||||||
|
|
||||||
@section('content')
|
@section('content')
|
||||||
<div id="main-wrapper">
|
<!--**********************************
|
||||||
<!--**********************************
|
|
||||||
Content body start
|
Content body start
|
||||||
***********************************-->
|
***********************************-->
|
||||||
<div class="content-body">
|
<div class="content-body">
|
||||||
<!-- row -->
|
<!-- row -->
|
||||||
<div class="container-fluid">
|
<div class="container-fluid">
|
||||||
|
|
||||||
<div class="row">
|
<div class="row">
|
||||||
<div class="col-xl-3 col-xxl-3 col-sm-6">
|
<div class="col-xl-3 col-xxl-3 col-sm-6">
|
||||||
<div class="widget-stat card bg-primary overflow-hidden">
|
<div class="widget-stat card bg-primary overflow-hidden">
|
||||||
@ -529,10 +537,37 @@ class="la la-trash-o"></i></a>
|
|||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
|
||||||
</div>
|
</div>
|
||||||
<!--**********************************
|
<!--**********************************
|
||||||
Content body end
|
Content body end
|
||||||
***********************************-->
|
***********************************-->
|
||||||
|
|
||||||
@endsection
|
@endsection
|
||||||
|
|
||||||
|
@push('scripts')
|
||||||
|
<!--**********************************
|
||||||
|
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>
|
||||||
|
|
||||||
|
<!-- 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>
|
||||||
|
|
||||||
|
<!-- 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>
|
||||||
|
@endpush
|
||||||
@ -8,7 +8,6 @@
|
|||||||
<div class="content-body">
|
<div class="content-body">
|
||||||
<!-- row -->
|
<!-- row -->
|
||||||
<div class="container-fluid">
|
<div class="container-fluid">
|
||||||
|
|
||||||
<div class="row">
|
<div class="row">
|
||||||
<div class="col-xl-3 col-xxl-3 col-sm-6">
|
<div class="col-xl-3 col-xxl-3 col-sm-6">
|
||||||
<div class="widget-stat card bg-primary overflow-hidden">
|
<div class="widget-stat card bg-primary overflow-hidden">
|
||||||
|
|||||||
@ -7,13 +7,6 @@
|
|||||||
<meta http-equiv="X-UA-Compatible" content="IE=edge">
|
<meta http-equiv="X-UA-Compatible" content="IE=edge">
|
||||||
<meta name="viewport" content="width=device-width,initial-scale=1">
|
<meta name="viewport" content="width=device-width,initial-scale=1">
|
||||||
<title>{{ENV('APP_NAME')}} | @yield('title')</title>
|
<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/jqvmap/css/jqvmap.min.css')}}">
|
|
||||||
<link rel="stylesheet" href="{{asset('public/vendor/chartist/css/chartist.min.css')}}">
|
|
||||||
<link rel="stylesheet" href="{{asset('public/vendor/bootstrap-select/dist/css/bootstrap-select.min.css')}}">
|
|
||||||
<link rel="stylesheet" href="{{asset('public/css/style.css')}}">
|
|
||||||
<link rel="stylesheet" href="{{asset('public/css/skin-2.css')}}">
|
|
||||||
|
|
||||||
@stack('styles')
|
@stack('styles')
|
||||||
|
|
||||||
@ -31,7 +24,7 @@
|
|||||||
Nav header start
|
Nav header start
|
||||||
***********************************-->
|
***********************************-->
|
||||||
<div class="nav-header">
|
<div class="nav-header">
|
||||||
<a href="index.html" class="brand-logo">
|
<a href="{{route('home')}}" class="brand-logo">
|
||||||
<img class="logo-abbr" src="{{asset('public/images/logo-white.png')}}" alt="">
|
<img class="logo-abbr" src="{{asset('public/images/logo-white.png')}}" alt="">
|
||||||
<img class="logo-compact" src="{{asset('public/images/logo-text-white.png')}}" alt="">
|
<img class="logo-compact" src="{{asset('public/images/logo-text-white.png')}}" alt="">
|
||||||
<span class="fw-bold fs-3"> eLEARNING </span>
|
<span class="fw-bold fs-3"> eLEARNING </span>
|
||||||
@ -139,10 +132,10 @@ class="ti-arrow-right"></i></a>
|
|||||||
</li>
|
</li>
|
||||||
<li class="nav-item dropdown header-profile">
|
<li class="nav-item dropdown header-profile">
|
||||||
<a class="nav-link" href="#" role="button" data-toggle="dropdown">
|
<a class="nav-link" href="#" role="button" data-toggle="dropdown">
|
||||||
<img src="{{asset('public/images/profile/education/pic1.jpg')}}" width="20" alt="">
|
<img src="{{asset('public/uploads/users/'.request()->session()->get('image'))}}" width="20" alt="">
|
||||||
</a>
|
</a>
|
||||||
<div class="dropdown-menu dropdown-menu-right">
|
<div class="dropdown-menu dropdown-menu-right">
|
||||||
<a href="app-profile.html" class="dropdown-item ai-icon">
|
<a href="{{route('userProfile')}}" class="dropdown-item ai-icon">
|
||||||
<svg id="icon-user1" xmlns="http://www.w3.org/2000/svg" width="18" height="18"
|
<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"
|
viewbox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2"
|
||||||
stroke-linecap="round" stroke-linejoin="round" class="feather feather-user">
|
stroke-linecap="round" stroke-linejoin="round" class="feather feather-user">
|
||||||
@ -239,6 +232,17 @@ class="feather feather-log-out">
|
|||||||
<li><a href="about-student.html">About Students</a></li>
|
<li><a href="about-student.html">About Students</a></li>
|
||||||
</ul>
|
</ul>
|
||||||
</li>
|
</li>
|
||||||
|
<li><a class="has-arrow" href="javascript:void()" aria-expanded="false">
|
||||||
|
<i class="la la-laptop"></i>
|
||||||
|
<span class="nav-text">Course Category</span>
|
||||||
|
</a>
|
||||||
|
<ul aria-expanded="false">
|
||||||
|
<li><a href="{{route('courseCategory.index')}}">All Categories</a></li>
|
||||||
|
<li><a href="{{route('courseCategory.create')}}">Add Categories</a></li>
|
||||||
|
<li><a href="{{route('courseCategory.index')}}">Edit Categories</a></li>
|
||||||
|
<li><a href="{{route('courseCategory.index')}}">About Categories</a></li>
|
||||||
|
</ul>
|
||||||
|
</li>
|
||||||
<li><a class="has-arrow" href="javascript:void()" aria-expanded="false">
|
<li><a class="has-arrow" href="javascript:void()" aria-expanded="false">
|
||||||
<i class="la la-graduation-cap"></i>
|
<i class="la la-graduation-cap"></i>
|
||||||
<span class="nav-text">Courses</span>
|
<span class="nav-text">Courses</span>
|
||||||
@ -468,30 +472,25 @@ class="feather feather-log-out">
|
|||||||
Scripts
|
Scripts
|
||||||
***********************************-->
|
***********************************-->
|
||||||
<!-- Required vendors -->
|
<!-- 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>
|
|
||||||
|
|
||||||
@stack('scripts')
|
@stack('scripts')
|
||||||
|
{{-- TOASTER --}}
|
||||||
<!-- Chart ChartJS plugin files -->
|
<script src="https://cdnjs.cloudflare.com/ajax/libs/toastr.js/latest/toastr.min.js"></script>
|
||||||
<script src="{{asset('public/vendor/chart.js/Chart.bundle.min.js')}}"></script>
|
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/toastr.js/latest/toastr.css" />
|
||||||
|
<script>
|
||||||
<!-- Chart piety plugin files -->
|
@if(Session::has('success'))
|
||||||
<script src="{{asset('public/vendor/peity/jquery.peity.min.js')}}"></script>
|
toastr.success("{{ Session::get('success') }}");
|
||||||
|
@endif
|
||||||
<!-- Chart sparkline plugin files -->
|
@if(Session::has('info'))
|
||||||
<script src="{{asset('public/vendor/jquery-sparkline/jquery.sparkline.min.js')}}"></script>
|
toastr.info("{{ Session::get('info') }}");
|
||||||
|
@endif
|
||||||
<!-- Demo scripts -->
|
@if(Session::has('warning'))
|
||||||
<script src="{{asset('public/js/dashboard/dashboard-3.js')}}"></script>
|
toastr.warning("{{ Session::get('warning') }}");
|
||||||
|
@endif
|
||||||
<!-- Svganimation scripts -->
|
@if(Session::has('error'))
|
||||||
<script src="{{asset('public/vendor/svganimation/vivus.min.js')}}"></script>
|
toastr.error("{{ Session::get('error') }}");
|
||||||
<script src="{{asset('public/vendor/svganimation/svg.animation.js')}}"></script>
|
@endif
|
||||||
<script src="{{asset('js/styleSwitcher.js')}}"></script>
|
</script>
|
||||||
|
|
||||||
</body>
|
</body>
|
||||||
|
|
||||||
</html>
|
</html>
|
||||||
@ -1,6 +1,17 @@
|
|||||||
@extends('backend.layouts.app')
|
@extends('backend.layouts.app')
|
||||||
@section('title', 'Add User')
|
@section('title', 'Add User')
|
||||||
|
|
||||||
|
@push('styles')
|
||||||
|
<!-- 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')}}">
|
||||||
|
|
||||||
|
<!-- Pick date -->
|
||||||
|
<link rel="stylesheet" href="{{asset('public/vendor/pickadate/themes/default.css')}}">
|
||||||
|
<link rel="stylesheet" href="{{asset('public/vendor/pickadate/themes/default.date.css')}}">
|
||||||
|
@endpush
|
||||||
|
|
||||||
@section('content')
|
@section('content')
|
||||||
|
|
||||||
<!--**********************************
|
<!--**********************************
|
||||||
@ -149,3 +160,27 @@
|
|||||||
***********************************-->
|
***********************************-->
|
||||||
|
|
||||||
@endsection
|
@endsection
|
||||||
|
|
||||||
|
@push('scripts')
|
||||||
|
<!--**********************************
|
||||||
|
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>
|
||||||
|
|
||||||
|
<!-- pickdate -->
|
||||||
|
<script src="{{asset('public/vendor/pickadate/picker.js')}}"></script>
|
||||||
|
<script src="{{asset('public/vendor/pickadate/picker.time.js')}}"></script>
|
||||||
|
<script src="{{asset('public/vendor/pickadate/picker.date.js')}}"></script>
|
||||||
|
|
||||||
|
<!-- Pickdate -->
|
||||||
|
<script src="{{asset('public/js/plugins-init/pickadate-init.js')}}"></script>
|
||||||
|
@endpush
|
||||||
@ -1,6 +1,19 @@
|
|||||||
@extends('backend.layouts.app')
|
@extends('backend.layouts.app')
|
||||||
@section('title', 'Edit User')
|
@section('title', 'Edit User')
|
||||||
|
|
||||||
|
@push('styles')
|
||||||
|
<!-- 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')}}">
|
||||||
|
|
||||||
|
<!-- Pick date -->
|
||||||
|
<link rel="stylesheet" href="{{asset('public/vendor/pickadate/themes/default.css')}}">
|
||||||
|
<link rel="stylesheet" href="{{asset('public/vendor/pickadate/themes/default.date.css')}}">
|
||||||
|
@endpush
|
||||||
|
|
||||||
|
@section('content')
|
||||||
|
|
||||||
@section('content')
|
@section('content')
|
||||||
|
|
||||||
<!--**********************************
|
<!--**********************************
|
||||||
@ -154,3 +167,27 @@
|
|||||||
***********************************-->
|
***********************************-->
|
||||||
|
|
||||||
@endsection
|
@endsection
|
||||||
|
|
||||||
|
@push('scripts')
|
||||||
|
<!--**********************************
|
||||||
|
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>
|
||||||
|
|
||||||
|
<!-- pickdate -->
|
||||||
|
<script src="{{asset('public/vendor/pickadate/picker.js')}}"></script>
|
||||||
|
<script src="{{asset('public/vendor/pickadate/picker.time.js')}}"></script>
|
||||||
|
<script src="{{asset('public/vendor/pickadate/picker.date.js')}}"></script>
|
||||||
|
|
||||||
|
<!-- Pickdate -->
|
||||||
|
<script src="{{asset('public/js/plugins-init/pickadate-init.js')}}"></script>
|
||||||
|
@endpush
|
||||||
@ -2,10 +2,14 @@
|
|||||||
@section('title', 'User List')
|
@section('title', 'User List')
|
||||||
|
|
||||||
@push('styles')
|
@push('styles')
|
||||||
|
<!-- 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')}}">
|
||||||
<!-- Datatable -->
|
<!-- Datatable -->
|
||||||
<link href="{{asset('public/vendor/datatables/css/jquery.dataTables.min.css')}}" rel="stylesheet">
|
<link href="{{asset('public/vendor/datatables/css/jquery.dataTables.min.css')}}" rel="stylesheet">
|
||||||
<link rel="{{asset('public/stylesheet" href="css/style.css')}}">
|
<link rel="stylesheet" href="{{asset('public/css/style.css')}}">
|
||||||
@endpush
|
@endpush
|
||||||
|
|
||||||
@section('content')
|
@section('content')
|
||||||
|
|
||||||
<!--**********************************
|
<!--**********************************
|
||||||
@ -75,8 +79,14 @@ class="nav-link btn-primary mr-1 show active">List View</a></li>
|
|||||||
<td>
|
<td>
|
||||||
<a href="{{route('user.edit', encryptor('encrypt',$d->id))}}"
|
<a href="{{route('user.edit', encryptor('encrypt',$d->id))}}"
|
||||||
class="btn btn-sm btn-primary"><i class="la la-pencil"></i></a>
|
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
|
<a href="javascript:void(0);" class="btn btn-sm btn-danger" onclick="$('#form{{$d->id}}').submit()"><i
|
||||||
class="la la-trash-o"></i></a>
|
class="la la-trash-o"></i></a>
|
||||||
|
<form id="form{{$d->id}}"
|
||||||
|
action="{{route('user.destroy', encryptor('encrypt',$d->id))}}"
|
||||||
|
method="post">
|
||||||
|
@csrf
|
||||||
|
@method('DELETE')
|
||||||
|
</form>
|
||||||
</td>
|
</td>
|
||||||
</tr>
|
</tr>
|
||||||
@empty
|
@empty
|
||||||
@ -166,7 +176,21 @@ class="la la-trash-o"></i></a>
|
|||||||
@endsection
|
@endsection
|
||||||
|
|
||||||
@push('scripts')
|
@push('scripts')
|
||||||
|
<!--**********************************
|
||||||
|
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>
|
||||||
|
|
||||||
<!-- Datatable -->
|
<!-- Datatable -->
|
||||||
<script src="{{asset('public/vendor/datatables/js/jquery.dataTables.min.js')}}"></script>
|
<script src="{{asset('public/vendor/datatables/js/jquery.dataTables.min.js')}}"></script>
|
||||||
<script src="{{asset('public/js/plugins-init/datatables.init.js')}}"></script>
|
<script src="{{asset('public/js/plugins-init/datatables.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>
|
||||||
@endpush
|
@endpush
|
||||||
413
resources/views/backend/user/profile.blade.php
Fichier normal
@ -0,0 +1,413 @@
|
|||||||
|
@extends('backend.layouts.app')
|
||||||
|
@section('title', 'User List')
|
||||||
|
|
||||||
|
|
||||||
|
@section('content')
|
||||||
|
|
||||||
|
<!--**********************************
|
||||||
|
Content body start
|
||||||
|
***********************************-->
|
||||||
|
<div class="content-body">
|
||||||
|
<div class="container-fluid">
|
||||||
|
<div class="row page-titles mx-0">
|
||||||
|
<div class="col-sm-6 p-md-0">
|
||||||
|
<div class="welcome-text">
|
||||||
|
<h4>Hi, welcome back!</h4>
|
||||||
|
<p class="mb-0">Your business dashboard template</p>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
<div class="col-sm-6 p-md-0 justify-content-sm-end mt-2 mt-sm-0 d-flex">
|
||||||
|
<ol class="breadcrumb">
|
||||||
|
<li class="breadcrumb-item"><a href="javascript:void(0)">App</a></li>
|
||||||
|
<li class="breadcrumb-item active"><a href="javascript:void(0)">Profile</a></li>
|
||||||
|
</ol>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
<!-- row -->
|
||||||
|
<div class="row">
|
||||||
|
<div class="col-lg-12">
|
||||||
|
<div class="profile">
|
||||||
|
<div class="profile-head">
|
||||||
|
<div class="photo-content">
|
||||||
|
<div class="cover-photo"></div>
|
||||||
|
|
||||||
|
</div>
|
||||||
|
<div class="profile-info">
|
||||||
|
|
||||||
|
<div class="row">
|
||||||
|
<div class="col-sm-3">
|
||||||
|
<div class="profile-photo">
|
||||||
|
<img src="{{asset('public/uploads/users/'.request()->session()->get('image'))}}" class="img-fluid rounded-circle" alt="">
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
<div class="col-sm-9 col-12">
|
||||||
|
<div class="row">
|
||||||
|
<div class="col-xl-4 col-sm-6 border-right-1">
|
||||||
|
<div class="profile-name">
|
||||||
|
<h4 class="text-primary mb-0">{{ encryptor('decrypt', request()->session()->get('userName')) }}</h4>
|
||||||
|
<p>{{ encryptor('decrypt', request()->session()->get('role')) }}</p>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
<div class="col-xl-4 col-sm-6 border-right-1">
|
||||||
|
<div class="profile-email">
|
||||||
|
<h4 class="text-muted mb-0">{{ encryptor('decrypt', request()->session()->get('emailAddress')) }}</h4>
|
||||||
|
<p>Email</p>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
<!-- <div class="col-xl-4 col-sm-4 prf-col">
|
||||||
|
<div class="profile-call">
|
||||||
|
<h4 class="text-muted">(+1) 321-837-1030</h4>
|
||||||
|
<p>Phone No.</p>
|
||||||
|
</div>
|
||||||
|
</div> -->
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
<div class="row">
|
||||||
|
<div class="col-lg-4">
|
||||||
|
<div class="card">
|
||||||
|
<div class="card-body">
|
||||||
|
<div class="profile-statistics">
|
||||||
|
<div class="text-center mt-4 border-bottom-1 pb-3">
|
||||||
|
<div class="row">
|
||||||
|
<div class="col">
|
||||||
|
<h3 class="m-b-0">150</h3><span>Follower</span>
|
||||||
|
</div>
|
||||||
|
<div class="col">
|
||||||
|
<h3 class="m-b-0">140</h3><span>Place Stay</span>
|
||||||
|
</div>
|
||||||
|
<div class="col">
|
||||||
|
<h3 class="m-b-0">45</h3><span>Reviews</span>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
<div class="mt-4">
|
||||||
|
<a href="javascript:void()" class="btn btn-primary px-5 mr-3 mb-4">Follow</a>
|
||||||
|
<a href="javascript:void()" class="btn btn-dark px-3 mb-4">Send Message</a>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
<div class="profile-blog pt-3 border-bottom-1 pb-1">
|
||||||
|
<h5 class="text-primary d-inline">Today Highlights</h5><a href="javascript:void()"
|
||||||
|
class="pull-right f-s-16">More</a>
|
||||||
|
<img src="{{asset('public/images/profile/1.jpg')}}" alt="" class="img-fluid mt-4 mb-4 w-100">
|
||||||
|
<h4>Darwin Creative Agency Theme</h4>
|
||||||
|
<p>A small river named Duden flows by their place and supplies it with the necessary
|
||||||
|
regelialia. It is a paradisematic country, in which roasted parts of sentences fly into
|
||||||
|
your mouth.</p>
|
||||||
|
</div>
|
||||||
|
<div class="profile-interest mt-4 pb-2 border-bottom-1">
|
||||||
|
<h5 class="text-primary d-inline">Interest</h5>
|
||||||
|
<div class="row mt-4">
|
||||||
|
<div class="col-lg-4 col-xl-4 col-sm-4 col-6 int-col">
|
||||||
|
<a href="javascript:void()" class="interest-cat">
|
||||||
|
<img src="{{asset('public/images/profile/2.jpg')}}" alt="" class="img-fluid">
|
||||||
|
<p>Shopping Mall</p>
|
||||||
|
</a>
|
||||||
|
</div>
|
||||||
|
<div class="col-lg-4 col-xl-4 col-sm-4 col-6 int-col">
|
||||||
|
<a href="javascript:void()" class="interest-cat">
|
||||||
|
<img src="{{asset('public/images/profile/3.jpg')}}" alt="" class="img-fluid">
|
||||||
|
<p>Photography</p>
|
||||||
|
</a>
|
||||||
|
</div>
|
||||||
|
<div class="col-lg-4 col-xl-4 col-sm-4 col-6 int-col">
|
||||||
|
<a href="javascript:void()" class="interest-cat">
|
||||||
|
<img src="{{asset('public/images/profile/4.jpg')}}" alt="" class="img-fluid">
|
||||||
|
<p>Art & Gallery</p>
|
||||||
|
</a>
|
||||||
|
</div>
|
||||||
|
<div class="col-lg-4 col-xl-4 col-sm-4 col-6 int-col">
|
||||||
|
<a href="javascript:void()" class="interest-cat">
|
||||||
|
<img src="{{asset('public/images/profile/2.jpg')}}" alt="" class="img-fluid">
|
||||||
|
<p>Visiting Place</p>
|
||||||
|
</a>
|
||||||
|
</div>
|
||||||
|
<div class="col-lg-4 col-xl-4 col-sm-4 col-6 int-col">
|
||||||
|
<a href="javascript:void()" class="interest-cat">
|
||||||
|
<img src="{{asset('public/images/profile/3.jpg')}}" alt="" class="img-fluid">
|
||||||
|
<p>Shopping</p>
|
||||||
|
</a>
|
||||||
|
</div>
|
||||||
|
<div class="col-lg-4 col-xl-4 col-sm-4 col-6 int-col">
|
||||||
|
<a href="javascript:void()" class="interest-cat">
|
||||||
|
<img src="{{asset('public/images/profile/4.jpg')}}" alt="" class="img-fluid">
|
||||||
|
<p>Biking</p>
|
||||||
|
</a>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
<div class="profile-news mt-4 pb-3">
|
||||||
|
<h5 class="text-primary d-inline">Our Latest News</h5>
|
||||||
|
<div class="media pt-3 pb-3">
|
||||||
|
<img src="{{asset('public/images/profile/5.jpg')}}" alt="image" class="mr-3">
|
||||||
|
<div class="media-body">
|
||||||
|
<h5 class="m-b-5">John Tomas</h5>
|
||||||
|
<p>I shared this on my fb wall a few months back, and I thought I'd share it here
|
||||||
|
again because it's such a great read</p>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
<div class="media pt-3 pb-3">
|
||||||
|
<img src="{{asset('public/images/profile/6.jpg')}}" alt="image" class="mr-3">
|
||||||
|
<div class="media-body">
|
||||||
|
<h5 class="m-b-5">John Tomas</h5>
|
||||||
|
<p>I shared this on my fb wall a few months back, and I thought I'd share it here
|
||||||
|
again because it's such a great read</p>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
<div class="media pt-3 pb-3">
|
||||||
|
<img src="{{asset('public/images/profile/7.jpg')}}" alt="image" class="mr-3">
|
||||||
|
<div class="media-body">
|
||||||
|
<h5 class="m-b-5">John Tomas</h5>
|
||||||
|
<p>I shared this on my fb wall a few months back, and I thought I'd share it here
|
||||||
|
again because it's such a great read</p>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
<div class="col-lg-8">
|
||||||
|
<div class="card">
|
||||||
|
<div class="card-body">
|
||||||
|
<div class="profile-tab">
|
||||||
|
<div class="custom-tab-1">
|
||||||
|
<ul class="nav nav-tabs">
|
||||||
|
<li class="nav-item"><a href="#my-posts" data-toggle="tab"
|
||||||
|
class="nav-link active show">Posts</a>
|
||||||
|
</li>
|
||||||
|
<li class="nav-item"><a href="#about-me" data-toggle="tab" class="nav-link">About
|
||||||
|
Me</a>
|
||||||
|
</li>
|
||||||
|
<li class="nav-item"><a href="#profile-settings" data-toggle="tab"
|
||||||
|
class="nav-link">Setting</a>
|
||||||
|
</li>
|
||||||
|
</ul>
|
||||||
|
<div class="tab-content">
|
||||||
|
<div id="my-posts" class="tab-pane fade active show">
|
||||||
|
<div class="my-post-content pt-3">
|
||||||
|
<div class="post-input">
|
||||||
|
<textarea name="textarea" id="textarea" cols="30" rows="5"
|
||||||
|
class="form-control bg-transparent"
|
||||||
|
placeholder="Please type what you want...."></textarea> <a
|
||||||
|
href="javascript:void()"><i class="ti-clip"></i> </a>
|
||||||
|
<a href="javascript:void()"><i class="ti-camera"></i> </a><a
|
||||||
|
href="javascript:void()" class="btn btn-primary">Post</a>
|
||||||
|
</div>
|
||||||
|
<div class="profile-uoloaded-post border-bottom-1 pb-5">
|
||||||
|
<img src="{{asset('public/images/profile/8.jpg')}}" alt="" class="img-fluid">
|
||||||
|
<a class="post-title" href="javascript:void()">
|
||||||
|
<h4>Collection of textile samples lay spread</h4>
|
||||||
|
</a>
|
||||||
|
<p>A wonderful serenity has take possession of my entire soul like these
|
||||||
|
sweet morning of spare which enjoy whole heart.A wonderful serenity
|
||||||
|
has take possession of my entire soul like these sweet morning
|
||||||
|
of spare which enjoy whole heart.</p>
|
||||||
|
<button class="btn btn-primary mr-3"><span class="mr-3"><i
|
||||||
|
class="fa fa-heart"></i></span>Like</button>
|
||||||
|
<button class="btn btn-secondary"><span class="mr-3"><i
|
||||||
|
class="fa fa-reply"></i></span>Reply</button>
|
||||||
|
</div>
|
||||||
|
<div class="profile-uoloaded-post border-bottom-1 pb-5">
|
||||||
|
<img src="{{asset('public/images/profile/9.jpg')}}" alt="" class="img-fluid">
|
||||||
|
<a class="post-title" href="javascript:void()">
|
||||||
|
<h4>Collection of textile samples lay spread</h4>
|
||||||
|
</a>
|
||||||
|
<p>A wonderful serenity has take possession of my entire soul like these
|
||||||
|
sweet morning of spare which enjoy whole heart.A wonderful serenity
|
||||||
|
has take possession of my entire soul like these sweet morning
|
||||||
|
of spare which enjoy whole heart.</p>
|
||||||
|
<button class="btn btn-primary mr-3"><span class="mr-3"><i
|
||||||
|
class="fa fa-heart"></i></span>Like</button>
|
||||||
|
<button class="btn btn-secondary"><span class="mr-3"><i
|
||||||
|
class="fa fa-reply"></i></span>Reply</button>
|
||||||
|
</div>
|
||||||
|
<div class="profile-uoloaded-post pb-5">
|
||||||
|
<img src="{{asset('public/images/profile/8.jpg')}}" alt="" class="img-fluid">
|
||||||
|
<a class="post-title" href="javascript:void()">
|
||||||
|
<h4>Collection of textile samples lay spread</h4>
|
||||||
|
</a>
|
||||||
|
<p>A wonderful serenity has take possession of my entire soul like these
|
||||||
|
sweet morning of spare which enjoy whole heart.A wonderful serenity
|
||||||
|
has take possession of my entire soul like these sweet morning
|
||||||
|
of spare which enjoy whole heart.</p>
|
||||||
|
<button class="btn btn-primary mr-3"><span class="mr-3"><i
|
||||||
|
class="fa fa-heart"></i></span>Like</button>
|
||||||
|
<button class="btn btn-secondary"><span class="mr-3"><i
|
||||||
|
class="fa fa-reply"></i></span>Reply</button>
|
||||||
|
</div>
|
||||||
|
<div class="text-center mb-2"><a href="javascript:void()"
|
||||||
|
class="btn btn-primary">Load More</a>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
<div id="about-me" class="tab-pane fade">
|
||||||
|
<div class="profile-about-me">
|
||||||
|
<div class="pt-4 border-bottom-1 pb-4">
|
||||||
|
<h4 class="text-primary">About Me</h4>
|
||||||
|
<p>A wonderful serenity has taken possession of my entire soul, like
|
||||||
|
these sweet mornings of spring which I enjoy with my whole heart. I
|
||||||
|
am alone, and feel the charm of existence was created for the
|
||||||
|
bliss of souls like mine.I am so happy, my dear friend, so absorbed
|
||||||
|
in the exquisite sense of mere tranquil existence, that I neglect my
|
||||||
|
talents.</p>
|
||||||
|
<p>A collection of textile samples lay spread out on the table - Samsa
|
||||||
|
was a travelling salesman - and above it there hung a picture that
|
||||||
|
he had recently cut out of an illustrated magazine and housed
|
||||||
|
in a nice, gilded frame.</p>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
<div class="profile-skills pt-2 border-bottom-1 pb-2">
|
||||||
|
<h4 class="text-primary mb-4">Skills</h4>
|
||||||
|
<a href="javascript:void()"
|
||||||
|
class="btn btn-outline-dark btn-rounded px-4 my-3 my-sm-0 mr-2 mb-1 m-b-10">Admin</a>
|
||||||
|
<a href="javascript:void()"
|
||||||
|
class="btn btn-outline-dark btn-rounded px-4 my-3 my-sm-0 mr-2 mb-1 m-b-10">Dashboard</a>
|
||||||
|
<a href="javascript:void()"
|
||||||
|
class="btn btn-outline-dark btn-rounded px-4 my-3 my-sm-0 mr-2 mb-1 m-b-10">Photoshop</a>
|
||||||
|
<a href="javascript:void()"
|
||||||
|
class="btn btn-outline-dark btn-rounded px-4 my-3 my-sm-0 mr-2 mb-1 m-b-10">Bootstrap</a>
|
||||||
|
<a href="javascript:void()"
|
||||||
|
class="btn btn-outline-dark btn-rounded px-4 my-3 my-sm-0 mr-2 mb-1 m-b-10">Responsive</a>
|
||||||
|
<a href="javascript:void()"
|
||||||
|
class="btn btn-outline-dark btn-rounded px-4 my-3 my-sm-0 mr-2 mb-1 m-b-10">Crypto</a>
|
||||||
|
</div>
|
||||||
|
<div class="profile-lang pt-5 border-bottom-1 pb-5">
|
||||||
|
<h4 class="text-primary mb-4">Language</h4><a href="javascript:void()"
|
||||||
|
class="text-muted pr-3 f-s-16"><i class="flag-icon flag-icon-us"></i>
|
||||||
|
English</a> <a href="javascript:void()"
|
||||||
|
class="text-muted pr-3 f-s-16"><i class="flag-icon flag-icon-fr"></i>
|
||||||
|
French</a>
|
||||||
|
<a href="javascript:void()" class="text-muted pr-3 f-s-16"><i
|
||||||
|
class="flag-icon flag-icon-bd"></i> Bangla</a>
|
||||||
|
</div>
|
||||||
|
<div class="profile-personal-info">
|
||||||
|
<h4 class="text-primary mb-4">Personal Information</h4>
|
||||||
|
<div class="row mb-4">
|
||||||
|
<div class="col-3">
|
||||||
|
<h5 class="f-w-500">Name <span class="pull-right">:</span>
|
||||||
|
</h5>
|
||||||
|
</div>
|
||||||
|
<div class="col-9"><span>Mitchell C.Shay</span>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
<div class="row mb-4">
|
||||||
|
<div class="col-3">
|
||||||
|
<h5 class="f-w-500">Email <span class="pull-right">:</span>
|
||||||
|
</h5>
|
||||||
|
</div>
|
||||||
|
<div class="col-9"><span>example@examplel.com</span>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
<div class="row mb-4">
|
||||||
|
<div class="col-3">
|
||||||
|
<h5 class="f-w-500">Availability <span class="pull-right">:</span>
|
||||||
|
</h5>
|
||||||
|
</div>
|
||||||
|
<div class="col-9"><span>Full Time (Free Lancer)</span>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
<div class="row mb-4">
|
||||||
|
<div class="col-3">
|
||||||
|
<h5 class="f-w-500">Age <span class="pull-right">:</span>
|
||||||
|
</h5>
|
||||||
|
</div>
|
||||||
|
<div class="col-9"><span>27</span>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
<div class="row mb-4">
|
||||||
|
<div class="col-3">
|
||||||
|
<h5 class="f-w-500">Location <span class="pull-right">:</span></h5>
|
||||||
|
</div>
|
||||||
|
<div class="col-9"><span>Rosemont Avenue Melbourne,
|
||||||
|
Florida</span>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
<div class="row mb-4">
|
||||||
|
<div class="col-3">
|
||||||
|
<h5 class="f-w-500">Year Experience <span
|
||||||
|
class="pull-right">:</span></h5>
|
||||||
|
</div>
|
||||||
|
<div class="col-9"><span>07 Year Experiences</span>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
<div id="profile-settings" class="tab-pane fade">
|
||||||
|
<div class="pt-3">
|
||||||
|
<div class="settings-form">
|
||||||
|
<h4 class="text-primary">Account Setting</h4>
|
||||||
|
<form>
|
||||||
|
<div class="form-row">
|
||||||
|
<div class="form-group col-md-6">
|
||||||
|
<label>Email</label>
|
||||||
|
<input type="email" placeholder="Email"
|
||||||
|
class="form-control">
|
||||||
|
</div>
|
||||||
|
<div class="form-group col-md-6">
|
||||||
|
<label>Password</label>
|
||||||
|
<input type="password" placeholder="Password"
|
||||||
|
class="form-control">
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
<div class="form-group">
|
||||||
|
<label>Address</label>
|
||||||
|
<input type="text" placeholder="1234 Main St"
|
||||||
|
class="form-control">
|
||||||
|
</div>
|
||||||
|
<div class="form-group">
|
||||||
|
<label>Address 2</label>
|
||||||
|
<input type="text" placeholder="Apartment, studio, or floor"
|
||||||
|
class="form-control">
|
||||||
|
</div>
|
||||||
|
<div class="form-row">
|
||||||
|
<div class="form-group col-md-6">
|
||||||
|
<label>City</label>
|
||||||
|
<input type="text" class="form-control">
|
||||||
|
</div>
|
||||||
|
<div class="form-group col-md-4">
|
||||||
|
<label>State</label>
|
||||||
|
<select class="form-control" id="inputState">
|
||||||
|
<option selected="">Choose...</option>
|
||||||
|
<option>Option 1</option>
|
||||||
|
<option>Option 2</option>
|
||||||
|
<option>Option 3</option>
|
||||||
|
</select>
|
||||||
|
</div>
|
||||||
|
<div class="form-group col-md-2">
|
||||||
|
<label>Zip</label>
|
||||||
|
<input type="text" class="form-control">
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
<div class="form-group">
|
||||||
|
<div class="custom-control custom-checkbox">
|
||||||
|
<input type="checkbox" class="custom-control-input"
|
||||||
|
id="gridCheck">
|
||||||
|
<label class="custom-control-label" for="gridCheck"> Check
|
||||||
|
me out</label>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
<button class="btn btn-primary" type="submit">Sign
|
||||||
|
in</button>
|
||||||
|
</form>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
<!--**********************************
|
||||||
|
Content body end
|
||||||
|
***********************************-->
|
||||||
|
|
||||||
|
@endsection
|
||||||
118
resources/views/courseCategory/create.blade.php
Fichier normal
@ -0,0 +1,118 @@
|
|||||||
|
@extends('backend.layouts.app')
|
||||||
|
@section('title', 'Add Category')
|
||||||
|
|
||||||
|
@push('styles')
|
||||||
|
<!-- 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')}}">
|
||||||
|
|
||||||
|
<!-- Pick date -->
|
||||||
|
<link rel="stylesheet" href="{{asset('public/vendor/pickadate/themes/default.css')}}">
|
||||||
|
<link rel="stylesheet" href="{{asset('public/vendor/pickadate/themes/default.date.css')}}">
|
||||||
|
@endpush
|
||||||
|
|
||||||
|
@section('content')
|
||||||
|
|
||||||
|
<!--**********************************
|
||||||
|
Content body start
|
||||||
|
***********************************-->
|
||||||
|
<div class="content-body">
|
||||||
|
<!-- row -->
|
||||||
|
<div class="container-fluid">
|
||||||
|
|
||||||
|
<div class="row page-titles mx-0">
|
||||||
|
<div class="col-sm-6 p-md-0">
|
||||||
|
<div class="welcome-text">
|
||||||
|
<h4>Add Category</h4>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
<div class="col-sm-6 p-md-0 justify-content-sm-end mt-2 mt-sm-0 d-flex">
|
||||||
|
<ol class="breadcrumb">
|
||||||
|
<li class="breadcrumb-item"><a href="{{route('dashboard')}}">Home</a></li>
|
||||||
|
<li class="breadcrumb-item active"><a href="{{route('courseCategory.index')}}">Categories</a></li>
|
||||||
|
<li class="breadcrumb-item active"><a href="{{route('courseCategory.create')}}">Add Category</a>
|
||||||
|
</li>
|
||||||
|
</ol>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<div class="row">
|
||||||
|
<div class="col-xl-12 col-xxl-12 col-sm-12">
|
||||||
|
<div class="card">
|
||||||
|
<div class="card-header">
|
||||||
|
<h5 class="card-title">Category Info</h5>
|
||||||
|
</div>
|
||||||
|
<div class="card-body">
|
||||||
|
<form action="{{route('courseCategory.store')}}" method="post" enctype="multipart/form-data">
|
||||||
|
@csrf
|
||||||
|
<div class="row">
|
||||||
|
<div class="col-lg-6 col-md-6 col-sm-12">
|
||||||
|
<div class="form-group">
|
||||||
|
<label class="form-label">Category Name</label>
|
||||||
|
<input type="text" class="form-control" name="category_name"
|
||||||
|
value="{{old('category_name')}}">
|
||||||
|
</div>
|
||||||
|
@if($errors->has('category_name'))
|
||||||
|
<span class="text-danger"> {{ $errors->first('category_name') }}</span>
|
||||||
|
@endif
|
||||||
|
</div>
|
||||||
|
<div class="col-lg-6 col-md-6 col-sm-12">
|
||||||
|
<div class="form-group">
|
||||||
|
<label class="form-label">Status</label>
|
||||||
|
<select class="form-control" name="category_status">
|
||||||
|
<option value="1" @if(old('category_status')==1) selected @endif>Active
|
||||||
|
</option>
|
||||||
|
<option value="0" @if(old('category_status')==0) selected @endif>Inactive
|
||||||
|
</option>
|
||||||
|
</select>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
<div class="col-lg-12 col-md-12 col-sm-12">
|
||||||
|
<label class="form-label">Image</label>
|
||||||
|
<div class="form-group fallback w-100">
|
||||||
|
<input type="file" class="dropify" data-default-file="" name="category_image">
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
<div class="col-lg-12 col-md-12 col-sm-12">
|
||||||
|
<button type="submit" class="btn btn-primary">Submit</button>
|
||||||
|
<button type="submit" class="btn btn-light">Cencel</button>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</form>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
<!--**********************************
|
||||||
|
Content body end
|
||||||
|
***********************************-->
|
||||||
|
|
||||||
|
@endsection
|
||||||
|
|
||||||
|
@push('scripts')
|
||||||
|
<!--**********************************
|
||||||
|
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>
|
||||||
|
|
||||||
|
<!-- pickdate -->
|
||||||
|
<script src="{{asset('public/vendor/pickadate/picker.js')}}"></script>
|
||||||
|
<script src="{{asset('public/vendor/pickadate/picker.time.js')}}"></script>
|
||||||
|
<script src="{{asset('public/vendor/pickadate/picker.date.js')}}"></script>
|
||||||
|
|
||||||
|
<!-- Pickdate -->
|
||||||
|
<script src="{{asset('public/js/plugins-init/pickadate-init.js')}}"></script>
|
||||||
|
@endpush
|
||||||
121
resources/views/courseCategory/edit.blade.php
Fichier normal
@ -0,0 +1,121 @@
|
|||||||
|
@extends('backend.layouts.app')
|
||||||
|
@section('title', 'Edit Category')
|
||||||
|
|
||||||
|
@push('styles')
|
||||||
|
<!-- 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')}}">
|
||||||
|
|
||||||
|
<!-- Pick date -->
|
||||||
|
<link rel="stylesheet" href="{{asset('public/vendor/pickadate/themes/default.css')}}">
|
||||||
|
<link rel="stylesheet" href="{{asset('public/vendor/pickadate/themes/default.date.css')}}">
|
||||||
|
@endpush
|
||||||
|
|
||||||
|
@section('content')
|
||||||
|
|
||||||
|
<!--**********************************
|
||||||
|
Content body start
|
||||||
|
***********************************-->
|
||||||
|
<div class="content-body">
|
||||||
|
<!-- row -->
|
||||||
|
<div class="container-fluid">
|
||||||
|
|
||||||
|
<div class="row page-titles mx-0">
|
||||||
|
<div class="col-sm-6 p-md-0">
|
||||||
|
<div class="welcome-text">
|
||||||
|
<h4>Add Category</h4>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
<div class="col-sm-6 p-md-0 justify-content-sm-end mt-2 mt-sm-0 d-flex">
|
||||||
|
<ol class="breadcrumb">
|
||||||
|
<li class="breadcrumb-item"><a href="{{route('dashboard')}}">Home</a></li>
|
||||||
|
<li class="breadcrumb-item active"><a href="{{route('courseCategory.index')}}">Categories</a></li>
|
||||||
|
<li class="breadcrumb-item active"><a href="javascript:void(0);">Edit Category</a></li>
|
||||||
|
</ol>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<div class="row">
|
||||||
|
<div class="col-xl-12 col-xxl-12 col-sm-12">
|
||||||
|
<div class="card">
|
||||||
|
<div class="card-header">
|
||||||
|
<h5 class="card-title">Category Info</h5>
|
||||||
|
</div>
|
||||||
|
<div class="card-body">
|
||||||
|
<form action="{{ route('courseCategory.update', $data->id) }}" method="post"
|
||||||
|
enctype="multipart/form-data">
|
||||||
|
@csrf
|
||||||
|
@method('PATCH')
|
||||||
|
<div class="row">
|
||||||
|
<div class="col-lg-6 col-md-6 col-sm-12">
|
||||||
|
<div class="form-group">
|
||||||
|
<label class="form-label">Category Name</label>
|
||||||
|
<input type="text" class="form-control" name="category_name"
|
||||||
|
value="{{old('category_name', $data->category_name)}}">
|
||||||
|
</div>
|
||||||
|
@if($errors->has('category_name'))
|
||||||
|
<span class="text-danger"> {{ $errors->first('category_name') }}</span>
|
||||||
|
@endif
|
||||||
|
</div>
|
||||||
|
<div class="col-lg-6 col-md-6 col-sm-12">
|
||||||
|
<div class="form-group">
|
||||||
|
<label class="form-label">Status</label>
|
||||||
|
<select class="form-control" name="category_status">
|
||||||
|
<option value="1" @if(old('category_status', $data->category_status)==1)
|
||||||
|
selected
|
||||||
|
@endif>Active</option>
|
||||||
|
<option value="0" @if(old('category_status', $data->category_status)==0)
|
||||||
|
selected
|
||||||
|
@endif>Inactive</option>
|
||||||
|
</select>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
<div class="col-lg-12 col-md-12 col-sm-12">
|
||||||
|
<label class="form-label">Image</label>
|
||||||
|
<div class="form-group fallback w-100">
|
||||||
|
<input type="file" class="dropify" data-default-file="" name="category_image">
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
<div class="col-lg-12 col-md-12 col-sm-12">
|
||||||
|
<button type="submit" class="btn btn-primary">Submit</button>
|
||||||
|
<button type="submit" class="btn btn-light">Cencel</button>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</form>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
<!--**********************************
|
||||||
|
Content body end
|
||||||
|
***********************************-->
|
||||||
|
|
||||||
|
@endsection
|
||||||
|
|
||||||
|
@push('scripts')
|
||||||
|
<!--**********************************
|
||||||
|
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>
|
||||||
|
|
||||||
|
<!-- pickdate -->
|
||||||
|
<script src="{{asset('public/vendor/pickadate/picker.js')}}"></script>
|
||||||
|
<script src="{{asset('public/vendor/pickadate/picker.time.js')}}"></script>
|
||||||
|
<script src="{{asset('public/vendor/pickadate/picker.date.js')}}"></script>
|
||||||
|
|
||||||
|
<!-- Pickdate -->
|
||||||
|
<script src="{{asset('public/js/plugins-init/pickadate-init.js')}}"></script>
|
||||||
|
@endpush
|
||||||
190
resources/views/courseCategory/index.blade.php
Fichier normal
@ -0,0 +1,190 @@
|
|||||||
|
@extends('backend.layouts.app')
|
||||||
|
@section('title', 'Category List')
|
||||||
|
|
||||||
|
@push('styles')
|
||||||
|
<!-- 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')}}">
|
||||||
|
<!-- Datatable -->
|
||||||
|
<link href="{{asset('public/vendor/datatables/css/jquery.dataTables.min.css')}}" rel="stylesheet">
|
||||||
|
<link rel="stylesheet" href="{{asset('public/css/style.css')}}">
|
||||||
|
@endpush
|
||||||
|
|
||||||
|
@section('content')
|
||||||
|
|
||||||
|
<!--**********************************
|
||||||
|
Content body start
|
||||||
|
***********************************-->
|
||||||
|
<div class="content-body">
|
||||||
|
<!-- row -->
|
||||||
|
<div class="container-fluid">
|
||||||
|
|
||||||
|
<div class="row page-titles mx-0">
|
||||||
|
<div class="col-sm-6 p-md-0">
|
||||||
|
<div class="welcome-text">
|
||||||
|
<h4>Category List</h4>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
<div class="col-sm-6 p-md-0 justify-content-sm-end mt-2 mt-sm-0 d-flex">
|
||||||
|
<ol class="breadcrumb">
|
||||||
|
<li class="breadcrumb-item"><a href="{{route('dashboard')}}">Home</a></li>
|
||||||
|
<li class="breadcrumb-item active"><a href="{{route('courseCategory.index')}}">Categories</a></li>
|
||||||
|
<li class="breadcrumb-item active"><a href="{{route('courseCategory.index')}}">All Category</a></li>
|
||||||
|
</ol>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<div class="row">
|
||||||
|
<div class="col-lg-12">
|
||||||
|
<ul class="nav nav-pills mb-3">
|
||||||
|
<li class="nav-item"><a href="#list-view" data-toggle="tab"
|
||||||
|
class="nav-link btn-primary mr-1 show active">List View</a></li>
|
||||||
|
<li class="nav-item"><a href="#grid-view" data-toggle="tab" class="nav-link btn-primary">Grid
|
||||||
|
View</a></li>
|
||||||
|
</ul>
|
||||||
|
</div>
|
||||||
|
<div class="col-lg-12">
|
||||||
|
<div class="row tab-content">
|
||||||
|
<div id="list-view" class="tab-pane fade active show col-lg-12">
|
||||||
|
<div class="card">
|
||||||
|
<div class="card-header">
|
||||||
|
<h4 class="card-title">All Categories List </h4>
|
||||||
|
<a href="{{route('courseCategory.create')}}" class="btn btn-primary">+ Add new</a>
|
||||||
|
</div>
|
||||||
|
<div class="card-body">
|
||||||
|
<div class="table-responsive">
|
||||||
|
<table id="example3" class="display" style="min-width: 845px">
|
||||||
|
<thead>
|
||||||
|
<tr>
|
||||||
|
<th>{{__('#')}}</th>
|
||||||
|
<th>{{__('Category Name')}}</th>
|
||||||
|
<th>{{__('Status')}}</th>
|
||||||
|
<th>{{__('Category Image')}}</th>
|
||||||
|
<th>{{__('Action')}}</th>
|
||||||
|
</tr>
|
||||||
|
</thead>
|
||||||
|
<tbody>
|
||||||
|
@forelse ($data as $d)
|
||||||
|
<tr>
|
||||||
|
<td><strong>{{$d->id}}</strong></td>
|
||||||
|
<td><strong>{{$d->category_name}}</strong></td>
|
||||||
|
<td>
|
||||||
|
@if($d->category_status==1){{__('Active')}} @else{{__('Inactive')}} @endif
|
||||||
|
</td>
|
||||||
|
<td><img class="rounded" width="200" height="100"
|
||||||
|
src="{{asset('public/uploads/courseCategories/'.$d->category_image)}}"
|
||||||
|
alt=""></td>
|
||||||
|
<td>
|
||||||
|
<a href="{{route('courseCategory.edit', $d->id)}}"
|
||||||
|
class="btn btn-sm btn-primary"><i class="la la-pencil"></i></a>
|
||||||
|
<a href="javascript:void(0);" class="btn btn-sm btn-danger"
|
||||||
|
onclick="$('#form{{$d->id}}').submit()"><i
|
||||||
|
class="la la-trash-o"></i></a>
|
||||||
|
<form id="form{{$d->id}}"
|
||||||
|
action="{{route('courseCategory.destroy', $d->id)}}"
|
||||||
|
method="post">
|
||||||
|
@csrf
|
||||||
|
@method('DELETE')
|
||||||
|
</form>
|
||||||
|
</td>
|
||||||
|
</tr>
|
||||||
|
@empty
|
||||||
|
<tr>
|
||||||
|
<th colspan="7" class="text-center">No Category Found</th>
|
||||||
|
</tr>
|
||||||
|
@endforelse
|
||||||
|
</tbody>
|
||||||
|
</table>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
<div id="grid-view" class="tab-pane fade col-lg-12">
|
||||||
|
<div class="row">
|
||||||
|
@forelse ($data as $d)
|
||||||
|
<div class="col-lg-6 col-md-6 col-sm-6 col-12">
|
||||||
|
<div class="card card-profile">
|
||||||
|
<div class="card-header justify-content-end pb-0">
|
||||||
|
<div class="dropdown">
|
||||||
|
<button class="btn btn-link" type="button" data-toggle="dropdown">
|
||||||
|
<span class="dropdown-dots fs--1"></span>
|
||||||
|
</button>
|
||||||
|
<div class="dropdown-menu dropdown-menu-right border py-0">
|
||||||
|
<div class="py-2">
|
||||||
|
<a class="dropdown-item"
|
||||||
|
href="{{route('user.edit', encryptor('encrypt',$d->id))}}">Edit</a>
|
||||||
|
<a class="dropdown-item text-danger"
|
||||||
|
href="javascript:void(0);">Delete</a>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
<div class="card-body pt-2">
|
||||||
|
<div class="text-center">
|
||||||
|
<div class="profile-photo">
|
||||||
|
<img src="{{asset('public/uploads/courseCategories/'.$d->category_image)}}" class="w-100" alt="">
|
||||||
|
</div>
|
||||||
|
<h3 class="mt-4 mb-1">{{$d->category_name}}</h3>
|
||||||
|
<ul class="list-group mb-3 list-group-flush">
|
||||||
|
<li class="list-group-item px-0 d-flex justify-content-between">
|
||||||
|
<span>#Sl.</span><strong>{{$d->id}}</strong>
|
||||||
|
</li>
|
||||||
|
<li class="list-group-item px-0 d-flex justify-content-between">
|
||||||
|
<span class="mb-0">Status.
|
||||||
|
:</span><strong>@if($d->category_status==1){{__('Active')}} @else{{__('Inactive')}} @endif</strong>
|
||||||
|
</li>
|
||||||
|
<li class="list-group-item px-0 d-flex justify-content-between">
|
||||||
|
<span class="mb-0">Created At.
|
||||||
|
:</span><strong>{{$d->created_at}}</strong>
|
||||||
|
</li>
|
||||||
|
</ul>
|
||||||
|
<a class="btn btn-outline-primary btn-rounded mt-3 px-4"
|
||||||
|
href="about-student.html">Read More</a>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
@empty
|
||||||
|
<div class="col-lg-6 col-md-6 col-sm-6 col-12">
|
||||||
|
<div class="card card-profile">
|
||||||
|
<div class="card-body pt-2">
|
||||||
|
<div class="text-center">
|
||||||
|
<p class="mt-3 px-4">Category Not Found</p>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
@endforelse
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
<!--**********************************
|
||||||
|
Content body end
|
||||||
|
***********************************-->
|
||||||
|
|
||||||
|
@endsection
|
||||||
|
|
||||||
|
@push('scripts')
|
||||||
|
<!--**********************************
|
||||||
|
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>
|
||||||
|
|
||||||
|
<!-- Datatable -->
|
||||||
|
<script src="{{asset('public/vendor/datatables/js/jquery.dataTables.min.js')}}"></script>
|
||||||
|
<script src="{{asset('public/js/plugins-init/datatables.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>
|
||||||
|
@endpush
|
||||||
@ -67,7 +67,7 @@ class="show bg-white position-fixed translate-middle w-100 vh-100 top-50 start-5
|
|||||||
</div>
|
</div>
|
||||||
<a href="contact.html" class="nav-item nav-link">Contact</a>
|
<a href="contact.html" class="nav-item nav-link">Contact</a>
|
||||||
</div>
|
</div>
|
||||||
<a href="" class="btn btn-primary py-4 px-lg-5 d-none d-lg-block">Join Now<i
|
<a href="{{route('dashboard')}}" class="btn btn-primary py-4 px-lg-5 d-none d-lg-block">Join Now<i
|
||||||
class="fa fa-arrow-right ms-3"></i></a>
|
class="fa fa-arrow-right ms-3"></i></a>
|
||||||
</div>
|
</div>
|
||||||
</nav>
|
</nav>
|
||||||
|
|||||||
@ -4,6 +4,7 @@
|
|||||||
use App\Http\Controllers\Backend\AuthenticationController as auth;
|
use App\Http\Controllers\Backend\AuthenticationController as auth;
|
||||||
use App\Http\Controllers\Backend\UserController as user;
|
use App\Http\Controllers\Backend\UserController as user;
|
||||||
use App\Http\Controllers\Backend\DashboardController as dashboard;
|
use App\Http\Controllers\Backend\DashboardController as dashboard;
|
||||||
|
use App\Http\Controllers\CourseCategoryController as courseCategory;
|
||||||
|
|
||||||
/*
|
/*
|
||||||
|--------------------------------------------------------------------------
|
|--------------------------------------------------------------------------
|
||||||
@ -22,15 +23,22 @@
|
|||||||
Route::post('/login', [auth::class, 'signInCheck'])->name('login.check');
|
Route::post('/login', [auth::class, 'signInCheck'])->name('login.check');
|
||||||
Route::get('/logout', [auth::class, 'signOut'])->name('logOut');
|
Route::get('/logout', [auth::class, 'signOut'])->name('logOut');
|
||||||
|
|
||||||
|
Route::resource('/courseCategory', courseCategory::class);
|
||||||
|
|
||||||
|
|
||||||
Route::middleware(['checkrole'])->group(function () {
|
Route::middleware(['checkrole'])->group(function () {
|
||||||
Route::get('/dashboard', [dashboard::class, 'index'])->name('dashboard');
|
Route::get('/dashboard', [dashboard::class, 'index'])->name('dashboard');
|
||||||
Route::resource('/user', user::class);
|
Route::resource('/user', user::class);
|
||||||
|
Route::get('/userProfile', [auth::class, 'show'])->name('userProfile');
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|
||||||
Route::get('/', function () {
|
Route::get('/', function () {
|
||||||
return view('frontend.home');
|
return view('frontend.home');
|
||||||
});
|
});
|
||||||
|
Route::get('/home', function () {
|
||||||
|
return view('frontend.home');
|
||||||
|
})->name('home');
|
||||||
|
|
||||||
// Route::get('/dashboard', function () {
|
// Route::get('/dashboard', function () {
|
||||||
// return view('welcome');
|
// return view('welcome');
|
||||||
|
|||||||