Cette révision appartient à :
Ibrahim Khalil Shakil 2023-11-26 22:49:04 +06:00
Parent b3675f2888
révision ac63da709e
34 fichiers modifiés avec 1193 ajouts et 33 suppressions

Voir le fichier

@ -0,0 +1,66 @@
<?php
namespace App\Http\Controllers;
use App\Models\Answer;
use App\Http\Controllers\Controller;
use Illuminate\Http\Request;
class AnswerController extends Controller
{
/**
* Display a listing of the resource.
*/
public function index()
{
//
}
/**
* Show the form for creating a new resource.
*/
public function create()
{
//
}
/**
* Store a newly created resource in storage.
*/
public function store(Request $request)
{
//
}
/**
* Display the specified resource.
*/
public function show(Answer $answer)
{
//
}
/**
* Show the form for editing the specified resource.
*/
public function edit(Answer $answer)
{
//
}
/**
* Update the specified resource in storage.
*/
public function update(Request $request, Answer $answer)
{
//
}
/**
* Remove the specified resource from storage.
*/
public function destroy(Answer $answer)
{
//
}
}

Voir le fichier

@ -0,0 +1,66 @@
<?php
namespace App\Http\Controllers;
use App\Models\Discussion;
use App\Http\Controllers\Controller;
use Illuminate\Http\Request;
class DiscussionController extends Controller
{
/**
* Display a listing of the resource.
*/
public function index()
{
//
}
/**
* Show the form for creating a new resource.
*/
public function create()
{
//
}
/**
* Store a newly created resource in storage.
*/
public function store(Request $request)
{
//
}
/**
* Display the specified resource.
*/
public function show(Discussion $discussion)
{
//
}
/**
* Show the form for editing the specified resource.
*/
public function edit(Discussion $discussion)
{
//
}
/**
* Update the specified resource in storage.
*/
public function update(Request $request, Discussion $discussion)
{
//
}
/**
* Remove the specified resource from storage.
*/
public function destroy(Discussion $discussion)
{
//
}
}

Voir le fichier

@ -0,0 +1,66 @@
<?php
namespace App\Http\Controllers;
use App\Models\Enrollment;
use App\Http\Controllers\Controller;
use Illuminate\Http\Request;
class EnrollmentController extends Controller
{
/**
* Display a listing of the resource.
*/
public function index()
{
//
}
/**
* Show the form for creating a new resource.
*/
public function create()
{
//
}
/**
* Store a newly created resource in storage.
*/
public function store(Request $request)
{
//
}
/**
* Display the specified resource.
*/
public function show(Enrollment $enrollment)
{
//
}
/**
* Show the form for editing the specified resource.
*/
public function edit(Enrollment $enrollment)
{
//
}
/**
* Update the specified resource in storage.
*/
public function update(Request $request, Enrollment $enrollment)
{
//
}
/**
* Remove the specified resource from storage.
*/
public function destroy(Enrollment $enrollment)
{
//
}
}

Voir le fichier

@ -0,0 +1,66 @@
<?php
namespace App\Http\Controllers;
use App\Models\Material;
use App\Http\Controllers\Controller;
use Illuminate\Http\Request;
class MaterialController extends Controller
{
/**
* Display a listing of the resource.
*/
public function index()
{
//
}
/**
* Show the form for creating a new resource.
*/
public function create()
{
//
}
/**
* Store a newly created resource in storage.
*/
public function store(Request $request)
{
//
}
/**
* Display the specified resource.
*/
public function show(Material $material)
{
//
}
/**
* Show the form for editing the specified resource.
*/
public function edit(Material $material)
{
//
}
/**
* Update the specified resource in storage.
*/
public function update(Request $request, Material $material)
{
//
}
/**
* Remove the specified resource from storage.
*/
public function destroy(Material $material)
{
//
}
}

Voir le fichier

@ -0,0 +1,66 @@
<?php
namespace App\Http\Controllers;
use App\Models\Message;
use App\Http\Controllers\Controller;
use Illuminate\Http\Request;
class MessageController extends Controller
{
/**
* Display a listing of the resource.
*/
public function index()
{
//
}
/**
* Show the form for creating a new resource.
*/
public function create()
{
//
}
/**
* Store a newly created resource in storage.
*/
public function store(Request $request)
{
//
}
/**
* Display the specified resource.
*/
public function show(Message $message)
{
//
}
/**
* Show the form for editing the specified resource.
*/
public function edit(Message $message)
{
//
}
/**
* Update the specified resource in storage.
*/
public function update(Request $request, Message $message)
{
//
}
/**
* Remove the specified resource from storage.
*/
public function destroy(Message $message)
{
//
}
}

Voir le fichier

@ -0,0 +1,66 @@
<?php
namespace App\Http\Controllers;
use App\Models\Payment;
use App\Http\Controllers\Controller;
use Illuminate\Http\Request;
class PaymentController extends Controller
{
/**
* Display a listing of the resource.
*/
public function index()
{
//
}
/**
* Show the form for creating a new resource.
*/
public function create()
{
//
}
/**
* Store a newly created resource in storage.
*/
public function store(Request $request)
{
//
}
/**
* Display the specified resource.
*/
public function show(Payment $payment)
{
//
}
/**
* Show the form for editing the specified resource.
*/
public function edit(Payment $payment)
{
//
}
/**
* Update the specified resource in storage.
*/
public function update(Request $request, Payment $payment)
{
//
}
/**
* Remove the specified resource from storage.
*/
public function destroy(Payment $payment)
{
//
}
}

Voir le fichier

@ -0,0 +1,66 @@
<?php
namespace App\Http\Controllers;
use App\Models\Progress;
use App\Http\Controllers\Controller;
use Illuminate\Http\Request;
class ProgressController extends Controller
{
/**
* Display a listing of the resource.
*/
public function index()
{
//
}
/**
* Show the form for creating a new resource.
*/
public function create()
{
//
}
/**
* Store a newly created resource in storage.
*/
public function store(Request $request)
{
//
}
/**
* Display the specified resource.
*/
public function show(Progress $progress)
{
//
}
/**
* Show the form for editing the specified resource.
*/
public function edit(Progress $progress)
{
//
}
/**
* Update the specified resource in storage.
*/
public function update(Request $request, Progress $progress)
{
//
}
/**
* Remove the specified resource from storage.
*/
public function destroy(Progress $progress)
{
//
}
}

Voir le fichier

@ -0,0 +1,66 @@
<?php
namespace App\Http\Controllers;
use App\Models\Question;
use App\Http\Controllers\Controller;
use Illuminate\Http\Request;
class QuestionController extends Controller
{
/**
* Display a listing of the resource.
*/
public function index()
{
//
}
/**
* Show the form for creating a new resource.
*/
public function create()
{
//
}
/**
* Store a newly created resource in storage.
*/
public function store(Request $request)
{
//
}
/**
* Display the specified resource.
*/
public function show(Question $question)
{
//
}
/**
* Show the form for editing the specified resource.
*/
public function edit(Question $question)
{
//
}
/**
* Update the specified resource in storage.
*/
public function update(Request $request, Question $question)
{
//
}
/**
* Remove the specified resource from storage.
*/
public function destroy(Question $question)
{
//
}
}

Voir le fichier

@ -0,0 +1,66 @@
<?php
namespace App\Http\Controllers;
use App\Models\Quiz;
use App\Http\Controllers\Controller;
use Illuminate\Http\Request;
class QuizController extends Controller
{
/**
* Display a listing of the resource.
*/
public function index()
{
//
}
/**
* Show the form for creating a new resource.
*/
public function create()
{
//
}
/**
* Store a newly created resource in storage.
*/
public function store(Request $request)
{
//
}
/**
* Display the specified resource.
*/
public function show(Quiz $quiz)
{
//
}
/**
* Show the form for editing the specified resource.
*/
public function edit(Quiz $quiz)
{
//
}
/**
* Update the specified resource in storage.
*/
public function update(Request $request, Quiz $quiz)
{
//
}
/**
* Remove the specified resource from storage.
*/
public function destroy(Quiz $quiz)
{
//
}
}

Voir le fichier

@ -0,0 +1,66 @@
<?php
namespace App\Http\Controllers;
use App\Models\Review;
use App\Http\Controllers\Controller;
use Illuminate\Http\Request;
class ReviewController extends Controller
{
/**
* Display a listing of the resource.
*/
public function index()
{
//
}
/**
* Show the form for creating a new resource.
*/
public function create()
{
//
}
/**
* Store a newly created resource in storage.
*/
public function store(Request $request)
{
//
}
/**
* Display the specified resource.
*/
public function show(Review $review)
{
//
}
/**
* Show the form for editing the specified resource.
*/
public function edit(Review $review)
{
//
}
/**
* Update the specified resource in storage.
*/
public function update(Request $request, Review $review)
{
//
}
/**
* Remove the specified resource from storage.
*/
public function destroy(Review $review)
{
//
}
}

Voir le fichier

@ -0,0 +1,66 @@
<?php
namespace App\Http\Controllers;
use App\Models\Subscription;
use App\Http\Controllers\Controller;
use Illuminate\Http\Request;
class SubscriptionController extends Controller
{
/**
* Display a listing of the resource.
*/
public function index()
{
//
}
/**
* Show the form for creating a new resource.
*/
public function create()
{
//
}
/**
* Store a newly created resource in storage.
*/
public function store(Request $request)
{
//
}
/**
* Display the specified resource.
*/
public function show(Subscription $subscription)
{
//
}
/**
* Show the form for editing the specified resource.
*/
public function edit(Subscription $subscription)
{
//
}
/**
* Update the specified resource in storage.
*/
public function update(Request $request, Subscription $subscription)
{
//
}
/**
* Remove the specified resource from storage.
*/
public function destroy(Subscription $subscription)
{
//
}
}

11
app/Models/Answer.php Fichier normal
Voir le fichier

@ -0,0 +1,11 @@
<?php
namespace App\Models;
use Illuminate\Database\Eloquent\Factories\HasFactory;
use Illuminate\Database\Eloquent\Model;
class Answer extends Model
{
use HasFactory;
}

11
app/Models/Discussion.php Fichier normal
Voir le fichier

@ -0,0 +1,11 @@
<?php
namespace App\Models;
use Illuminate\Database\Eloquent\Factories\HasFactory;
use Illuminate\Database\Eloquent\Model;
class Discussion extends Model
{
use HasFactory;
}

11
app/Models/Enrollment.php Fichier normal
Voir le fichier

@ -0,0 +1,11 @@
<?php
namespace App\Models;
use Illuminate\Database\Eloquent\Factories\HasFactory;
use Illuminate\Database\Eloquent\Model;
class Enrollment extends Model
{
use HasFactory;
}

11
app/Models/Material.php Fichier normal
Voir le fichier

@ -0,0 +1,11 @@
<?php
namespace App\Models;
use Illuminate\Database\Eloquent\Factories\HasFactory;
use Illuminate\Database\Eloquent\Model;
class Material extends Model
{
use HasFactory;
}

11
app/Models/Message.php Fichier normal
Voir le fichier

@ -0,0 +1,11 @@
<?php
namespace App\Models;
use Illuminate\Database\Eloquent\Factories\HasFactory;
use Illuminate\Database\Eloquent\Model;
class Message extends Model
{
use HasFactory;
}

11
app/Models/Payment.php Fichier normal
Voir le fichier

@ -0,0 +1,11 @@
<?php
namespace App\Models;
use Illuminate\Database\Eloquent\Factories\HasFactory;
use Illuminate\Database\Eloquent\Model;
class Payment extends Model
{
use HasFactory;
}

11
app/Models/Progress.php Fichier normal
Voir le fichier

@ -0,0 +1,11 @@
<?php
namespace App\Models;
use Illuminate\Database\Eloquent\Factories\HasFactory;
use Illuminate\Database\Eloquent\Model;
class Progress extends Model
{
use HasFactory;
}

11
app/Models/Question.php Fichier normal
Voir le fichier

@ -0,0 +1,11 @@
<?php
namespace App\Models;
use Illuminate\Database\Eloquent\Factories\HasFactory;
use Illuminate\Database\Eloquent\Model;
class Question extends Model
{
use HasFactory;
}

11
app/Models/Quiz.php Fichier normal
Voir le fichier

@ -0,0 +1,11 @@
<?php
namespace App\Models;
use Illuminate\Database\Eloquent\Factories\HasFactory;
use Illuminate\Database\Eloquent\Model;
class Quiz extends Model
{
use HasFactory;
}

11
app/Models/Review.php Fichier normal
Voir le fichier

@ -0,0 +1,11 @@
<?php
namespace App\Models;
use Illuminate\Database\Eloquent\Factories\HasFactory;
use Illuminate\Database\Eloquent\Model;
class Review extends Model
{
use HasFactory;
}

11
app/Models/Subscription.php Fichier normal
Voir le fichier

@ -0,0 +1,11 @@
<?php
namespace App\Models;
use Illuminate\Database\Eloquent\Factories\HasFactory;
use Illuminate\Database\Eloquent\Model;
class Subscription extends Model
{
use HasFactory;
}

Voir le fichier

@ -0,0 +1,34 @@
<?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('enrollments', function (Blueprint $table) {
$table->id();
$table->unsignedBigInteger('student_id')->index();
$table->unsignedBigInteger('course_id')->index();
$table->timestamp('enrollment_date')->default(now());
$table->timestamps();
$table->softDeletes();
$table->foreign('student_id')->references('id')->on('students')->onDelete('cascade');
$table->foreign('course_id')->references('id')->on('courses')->onDelete('cascade');
});
}
/**
* Reverse the migrations.
*/
public function down(): void
{
Schema::dropIfExists('enrollments');
}
};

Voir le fichier

@ -0,0 +1,34 @@
<?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('materials', function (Blueprint $table) {
$table->id();
$table->unsignedBigInteger('course_id')->index();
$table->string('title', 255)->nullable(false);
$table->enum('type', ['video', 'document', 'quiz'])->nullable(false);
$table->text('content_url')->nullable();
$table->timestamps();
$table->softDeletes();
$table->foreign('course_id')->references('id')->on('courses')->onDelete('cascade');
});
}
/**
* Reverse the migrations.
*/
public function down(): void
{
Schema::dropIfExists('materials');
}
};

Voir le fichier

@ -0,0 +1,32 @@
<?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('quizzes', function (Blueprint $table) {
$table->id();
$table->unsignedBigInteger('course_id')->index();
$table->string('title', 255)->nullable(false);
$table->timestamps();
$table->softDeletes();
$table->foreign('course_id')->references('id')->on('courses')->onDelete('cascade');
});
}
/**
* Reverse the migrations.
*/
public function down(): void
{
Schema::dropIfExists('quizzes');
}
};

Voir le fichier

@ -0,0 +1,33 @@
<?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('questions', function (Blueprint $table) {
$table->id();
$table->unsignedBigInteger('quiz_id')->index();
$table->text('content')->nullable(false);
$table->enum('type', ['multiple_choice', 'true_false', 'short_answer'])->nullable(false);
$table->timestamps();
$table->softDeletes();
$table->foreign('quiz_id')->references('id')->on('quizzes')->onDelete('cascade');
});
}
/**
* Reverse the migrations.
*/
public function down(): void
{
Schema::dropIfExists('questions');
}
};

Voir le fichier

@ -0,0 +1,34 @@
<?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('answers', function (Blueprint $table) {
$table->id();
$table->unsignedBigInteger('student_id')->index();
$table->unsignedBigInteger('question_id')->index();
$table->text('answer')->nullable();
$table->timestamps();
$table->softDeletes();
$table->foreign('student_id')->references('id')->on('students')->onDelete('cascade');
$table->foreign('question_id')->references('id')->on('questions')->onDelete('cascade');
});
}
/**
* Reverse the migrations.
*/
public function down(): void
{
Schema::dropIfExists('answers');
}
};

Voir le fichier

@ -0,0 +1,27 @@
<?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('reviews', function (Blueprint $table) {
$table->id();
$table->timestamps();
});
}
/**
* Reverse the migrations.
*/
public function down(): void
{
Schema::dropIfExists('reviews');
}
};

Voir le fichier

@ -0,0 +1,27 @@
<?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('payments', function (Blueprint $table) {
$table->id();
$table->timestamps();
});
}
/**
* Reverse the migrations.
*/
public function down(): void
{
Schema::dropIfExists('payments');
}
};

Voir le fichier

@ -0,0 +1,27 @@
<?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('subscriptions', function (Blueprint $table) {
$table->id();
$table->timestamps();
});
}
/**
* Reverse the migrations.
*/
public function down(): void
{
Schema::dropIfExists('subscriptions');
}
};

Voir le fichier

@ -0,0 +1,27 @@
<?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('progress', function (Blueprint $table) {
$table->id();
$table->timestamps();
});
}
/**
* Reverse the migrations.
*/
public function down(): void
{
Schema::dropIfExists('progress');
}
};

Voir le fichier

@ -0,0 +1,27 @@
<?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('discussions', function (Blueprint $table) {
$table->id();
$table->timestamps();
});
}
/**
* Reverse the migrations.
*/
public function down(): void
{
Schema::dropIfExists('discussions');
}
};

Voir le fichier

@ -0,0 +1,27 @@
<?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('messages', function (Blueprint $table) {
$table->id();
$table->timestamps();
});
}
/**
* Reverse the migrations.
*/
public function down(): void
{
Schema::dropIfExists('messages');
}
};

Voir le fichier

@ -190,20 +190,10 @@ class="feather feather-log-out">
<div class="dlabnav-scroll">
<ul class="metismenu" id="menu">
<li class="nav-label first">Main Menu</li>
<li><a class="has-arrow" href="javascript:void()" aria-expanded="false">
<li><a class="ai-icon" href="{{route('dashboard')}}" aria-expanded="false">
<i class="la la-home"></i>
<span class="nav-text">Dashboard</span>
</a>
<ul aria-expanded="false">
<li><a href="{{route('dashboard')}}">Dashboard 1</a></li>
<li><a href="{{route('dashboard')}}">Dashboard 2</a></li>
<li><a href="{{route('dashboard')}}">Dashboard 3</a></li>
</ul>
</li>
<li><a class="ai-icon" href="event-management.html" aria-expanded="false">
<i class="la la-calendar"></i>
<span class="nav-text">Exam Management</span>
</a>
</li>
<li><a class="has-arrow" href="javascript:void()" aria-expanded="false">
<i class="la la-user-plus"></i>
@ -212,8 +202,15 @@ class="feather feather-log-out">
<ul aria-expanded="false">
<li><a href="{{route('user.index')}}">All User</a></li>
<li><a href="{{route('user.create')}}">Add User</a></li>
<li><a href="{{route('user.index')}}">Edit User</a></li>
<li><a href="{{route('user.index')}}">User Profile</a></li>
</ul>
</li>
<li><a class="has-arrow" href="javascript:void()" aria-expanded="false">
<i class="la la-user-md"></i>
<span class="nav-text">Roles</span>
</a>
<ul aria-expanded="false">
<li><a href="{{route('role.index')}}">All Role</a></li>
<li><a href="{{route('role.create')}}">Add Role</a></li>
</ul>
</li>
<li><a class="has-arrow" href="javascript:void()" aria-expanded="false">
@ -223,8 +220,6 @@ class="feather feather-log-out">
<ul aria-expanded="false">
<li><a href="{{route('instructor.index')}}">All Instructor</a></li>
<li><a href="{{route('instructor.create')}}">Add Instructor</a></li>
<li><a href="{{route('instructor.index')}}">Edit Instructor</a></li>
<li><a href="{{route('instructor.index')}}">Instructor Profile</a></li>
</ul>
</li>
<li><a class="has-arrow" href="javascript:void()" aria-expanded="false">
@ -234,40 +229,24 @@ class="feather feather-log-out">
<ul aria-expanded="false">
<li><a href="{{route('student.index')}}">All Students</a></li>
<li><a href="{{route('student.create')}}">Add Students</a></li>
<li><a href="{{route('student.index')}}">Edit Students</a></li>
<li><a href="{{route('student.index')}}">About Students</a></li>
</ul>
</li>
<li><a class="has-arrow" href="javascript:void()" aria-expanded="false">
<i class="la la-laptop"></i>
<i class="la la-list"></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">
<i class="la la-graduation-cap"></i>
<i class="la la-book"></i>
<span class="nav-text">Courses</span>
</a>
<ul aria-expanded="false">
<li><a href="{{route('course.index')}}">All Courses</a></li>
<li><a href="{{route('course.create')}}">Add Courses</a></li>
<li><a href="{{route('course.index')}}">Edit Courses</a></li>
<li><a href="{{route('course.index')}}">About Courses</a></li>
</ul>
</li>
<li><a class="has-arrow" href="javascript:void()" aria-expanded="false">
<i class="la la-book"></i>
<span class="nav-text">Roles</span>
</a>
<ul aria-expanded="false">
<li><a href="{{route('role.index')}}">All Role</a></li>
<li><a href="{{route('role.create')}}">Add Role</a></li>
<li><a href="{{route('role.index')}}">Edit Role</a></li>
</ul>
</li>
<li><a class="has-arrow" href="javascript:void()" aria-expanded="false">
@ -396,6 +375,11 @@ class="feather feather-log-out">
<i class="la la-desktop"></i>
<span class="nav-text">Widget</span>
</a></li>
<li><a class="ai-icon" href="javascript:void()" aria-expanded="false">
<i class="la la-calendar"></i>
<span class="nav-text">Exam Management</span>
</a>
</li>
<li class="nav-label">Forms</li>
<li><a class="has-arrow" href="javascript:void()" aria-expanded="false">
<i class="la la-file-text"></i>