diff --git a/Modules/Admin/app/Http/Controllers/AppreciationController.php b/Modules/Admin/app/Http/Controllers/AppreciationController.php
new file mode 100644
index 0000000..e300b18
--- /dev/null
+++ b/Modules/Admin/app/Http/Controllers/AppreciationController.php
@@ -0,0 +1,85 @@
+appreciationRepository = $appreciationRepository;
+ }
+ /**
+ * Display a listing of the resource.
+ */
+ public function index()
+ {
+ $data['title'] = "Appreciation Lists";
+ $data['appreciationLists'] = $this->appreciationRepository->findAll();
+ return view('admin::appreciations.index', $data);
+ }
+
+ /**
+ * Show the form for creating a new resource.
+ */
+ public function create()
+ {
+ $data['title'] = "Create Appreciation";
+ $data['editable'] = false;
+ return view('admin::appreciations.create', $data);
+ }
+
+ /**
+ * Store a newly created resource in storage.
+ */
+ public function store(Request $request): RedirectResponse
+ {
+ $this->appreciationRepository->create($request->all());
+ toastr()->success('Appreciation Created Successfully.');
+ return redirect()->route('appreciation.index');
+ }
+
+ /**
+ * Show the specified resource.
+ */
+ public function show($id)
+ {
+ return view('admin::appreciations.show');
+ }
+
+ /**
+ * Show the form for editing the specified resource.
+ */
+ public function edit($id)
+ {
+ $data['title'] = "Edit Appreciation";
+ $data['editable'] = true;
+ $data['appreciation'] = $this->appreciationRepository->getAppreciationById($id);
+ return view('admin::appreciations.edit', $data);
+ }
+
+ /**
+ * Update the specified resource in storage.
+ */
+ public function update(Request $request, $id): RedirectResponse
+ {
+ $this->appreciationRepository->update($id, $request->all());
+ toastr()->success('Appreciation Updated Successfully.');
+ return redirect()->route('appreciation.index');
+ }
+
+ /**
+ * Remove the specified resource from storage.
+ */
+ public function destroy($id)
+ {
+ //
+ }
+}
diff --git a/Modules/Admin/app/Http/Controllers/DepartmentsController.php b/Modules/Admin/app/Http/Controllers/DepartmentsController.php
index f1caca3..b30308b 100644
--- a/Modules/Admin/app/Http/Controllers/DepartmentsController.php
+++ b/Modules/Admin/app/Http/Controllers/DepartmentsController.php
@@ -22,7 +22,7 @@ class DepartmentsController extends Controller
$data = Departments::where('status', '<>', -1)->orderBy('display_order')->get();
- return view("admin.departments.index", compact('data'));
+ return view("admin::departments.index", compact('data'));
}
public function create(Request $request)
@@ -30,7 +30,7 @@ class DepartmentsController extends Controller
$TableData = Departments::where('status', '<>', -1)->orderBy('display_order')->get();
$editable = false;
- return view("admin.departments.edit", compact('TableData', 'editable'));
+ return view("admin::departments.edit", compact('TableData', 'editable'));
}
public function store(Request $request)
@@ -107,7 +107,7 @@ class DepartmentsController extends Controller
$data = Departments::findOrFail($id);
- return view("admin.departments.show", compact('data'));
+ return view("admin::departments.show", compact('data'));
}
@@ -117,7 +117,7 @@ class DepartmentsController extends Controller
$TableData = Departments::where('status', '<>', -1)->orderBy('display_order')->get();
$data = Departments::findOrFail($id);
$editable = true;
- return view("admin.departments.edit", compact('data', 'TableData', 'editable'));
+ return view("admin::departments.edit", compact('data', 'TableData', 'editable'));
}
diff --git a/Modules/Admin/app/Http/Controllers/PromotionDemotionController.php b/Modules/Admin/app/Http/Controllers/PromotionDemotionController.php
new file mode 100644
index 0000000..cd9686c
--- /dev/null
+++ b/Modules/Admin/app/Http/Controllers/PromotionDemotionController.php
@@ -0,0 +1,87 @@
+promotionDemotionRepository = $promotionDemotionRepository;
+ }
+ /**
+ * Display a listing of the resource.
+ */
+
+ public function index()
+ {
+ $data['title'] = "Promotion/ Demotion Lists";
+ $data['promotionDemotionLists'] = $this->promotionDemotionRepository->findAll();
+ return view('admin::promotiondemotions.index', $data);
+ }
+
+ /**
+ * Show the form for creating a new resource.
+ */
+ public function create()
+ {
+ $data['editable'] = false;
+ $data['title'] = "Create Promotion/ Demotion";
+ return view('admin::promotiondemotions.create', $data);
+ }
+
+ /**
+ * Store a newly created resource in storage.
+ */
+ public function store(Request $request): RedirectResponse
+ {
+ $this->promotionDemotionRepository->create($request->all());
+ toastr()->success('Promotion/ Demotion Created Successfully');
+ return redirect()->route('promotionDemotion.index');
+ }
+
+ /**
+ * Show the specified resource.
+ */
+ public function show($id)
+ {
+ return view('admin::promotiondemotions.show');
+ }
+
+ /**
+ * Show the form for editing the specified resource.
+ */
+ public function edit($id)
+ {
+ $data['editable'] = false;
+ $data['title'] = "Edit Promotion/ Demotion";
+ $data['promotionDemotion'] = $this->promotionDemotionRepository->getPromotionDemotionById($id);
+ return view('admin::promotiondemotions.edit', $data);
+ }
+
+ /**
+ * Update the specified resource in storage.
+ */
+ public function update(Request $request, $id): RedirectResponse
+ {
+ $this->promotionDemotionRepository->update($id, $request->all());
+ toastr()->success('Promotion/ Demotion Updated Successfully');
+ return redirect()->route('promotionDemotion.index');
+ }
+
+ /**
+ * Remove the specified resource from storage.
+ */
+ public function destroy($id)
+ {
+ $this->promotionDemotionRepository->delete($id);
+ toastr()->success('Promotion/ Demotion Deleted Successfully');
+ return redirect()->route('promotionDemotion.index');
+ }
+}
diff --git a/Modules/Admin/app/Http/Controllers/ResignationController.php b/Modules/Admin/app/Http/Controllers/ResignationController.php
new file mode 100644
index 0000000..ced589b
--- /dev/null
+++ b/Modules/Admin/app/Http/Controllers/ResignationController.php
@@ -0,0 +1,83 @@
+resignationRepository = $resignationRepository;
+ }
+ /**
+ * Display a listing of the resource.
+ */
+ public function index()
+ {
+ $data['title'] = 'Resignation List';
+ $data['resignationLists'] = $this->resignationRepository->findAll();
+ return view('admin::resignations.index', $data);
+ }
+
+ /**
+ * Show the form for creating a new resource.
+ */
+ public function create()
+ {
+ $data['title'] = 'Create Resignation';
+ $data['editable'] = false;
+ return view('admin::resignations.create', $data);
+ }
+
+ /**
+ * Store a newly created resource in storage.
+ */
+ public function store(Request $request): RedirectResponse
+ {
+ $this->resignationRepository->create($request->all());
+ return redirect()->route('resignation.index');
+ }
+
+ /**
+ * Show the specified resource.
+ */
+ public function show($id)
+ {
+ return view('admin::resignations.show');
+ }
+
+ /**
+ * Show the form for editing the specified resource.
+ */
+ public function edit($id)
+ {
+ $data['title'] = 'Edit Resignation';
+ $data['editable'] = true;
+ $data['resignation'] = $this->resignationRepository->getResignationById($id);
+ return view('admin::resignations.edit', $data);
+ }
+
+ /**
+ * Update the specified resource in storage.
+ */
+ public function update(Request $request, $id): RedirectResponse
+ {
+ $this->resignationRepository->update($id, $request->all());
+ return redirect()->route('resignation.index');
+ }
+
+ /**
+ * Remove the specified resource from storage.
+ */
+ public function destroy($id)
+ {
+ //
+ }
+}
diff --git a/Modules/Admin/app/Models/Appreciation.php b/Modules/Admin/app/Models/Appreciation.php
new file mode 100644
index 0000000..23d2fae
--- /dev/null
+++ b/Modules/Admin/app/Models/Appreciation.php
@@ -0,0 +1,30 @@
+update($newDetails);
+ }
+
+}
diff --git a/Modules/Admin/app/Repositories/PromotionDemotionInterface.php b/Modules/Admin/app/Repositories/PromotionDemotionInterface.php
new file mode 100644
index 0000000..e6781f6
--- /dev/null
+++ b/Modules/Admin/app/Repositories/PromotionDemotionInterface.php
@@ -0,0 +1,12 @@
+update($newDetails);
+ }
+
+}
diff --git a/Modules/Admin/app/Repositories/ResignationInterface.php b/Modules/Admin/app/Repositories/ResignationInterface.php
new file mode 100644
index 0000000..1e806e8
--- /dev/null
+++ b/Modules/Admin/app/Repositories/ResignationInterface.php
@@ -0,0 +1,12 @@
+update($newDetails);
+ }
+
+}
diff --git a/Modules/Admin/database/migrations/2024_04_14_080050_create_promotion_demotions_table.php b/Modules/Admin/database/migrations/2024_04_14_080050_create_promotion_demotions_table.php
new file mode 100644
index 0000000..4b535ae
--- /dev/null
+++ b/Modules/Admin/database/migrations/2024_04_14_080050_create_promotion_demotions_table.php
@@ -0,0 +1,38 @@
+tinyInteger('promotion_demotion_id')->unsigned()->autoIncrement();
+ $table->string('title')->nullable();
+ $table->string('alias')->nullable();
+ $table->unsignedBigInteger('employee_id')->nullable();
+ $table->unsignedBigInteger('old_designation_id')->nullable();
+ $table->unsignedBigInteger('new_designation_id')->nullable();
+ $table->unsignedBigInteger('type')->nullable();
+ $table->unsignedBigInteger('status')->nullable();
+ $table->date('date')->nullable();
+ $table->mediumText('description')->nullable();
+ $table->mediumText('remarks')->nullable();
+ $table->unsignedBigInteger('createdBy')->nullable();
+ $table->unsignedBigInteger('updatedBy')->nullable();
+ $table->timestamps();
+ });
+ }
+
+ /**
+ * Reverse the migrations.
+ */
+ public function down(): void
+ {
+ Schema::dropIfExists('tbl_promotion_demotions');
+ }
+};
diff --git a/Modules/Admin/database/migrations/2024_04_14_105508_create_appreciations_table.php b/Modules/Admin/database/migrations/2024_04_14_105508_create_appreciations_table.php
new file mode 100644
index 0000000..b1420df
--- /dev/null
+++ b/Modules/Admin/database/migrations/2024_04_14_105508_create_appreciations_table.php
@@ -0,0 +1,37 @@
+tinyInteger('appreciation_id')->unsigned()->autoIncrement();
+ $table->string('title')->nullable();
+ $table->string('alias')->nullable();
+ $table->string('type')->nullable();
+ $table->unsignedBigInteger('employee_id')->nullable();
+ $table->unsignedBigInteger('appreciated_by')->nullable();
+ $table->date('appreciated_date')->nullable();
+ $table->unsignedBigInteger('status')->nullable();
+ $table->mediumText('description')->nullable();
+ $table->mediumText('remarks')->nullable();
+ $table->unsignedBigInteger('createdBy')->nullable();
+ $table->unsignedBigInteger('updatedBy')->nullable();
+ $table->timestamps();
+ });
+ }
+
+ /**
+ * Reverse the migrations.
+ */
+ public function down(): void
+ {
+ Schema::dropIfExists('tbl_appreciations');
+ }
+};
diff --git a/Modules/Admin/database/migrations/2024_04_14_115955_create_resignations_table.php b/Modules/Admin/database/migrations/2024_04_14_115955_create_resignations_table.php
new file mode 100644
index 0000000..468722c
--- /dev/null
+++ b/Modules/Admin/database/migrations/2024_04_14_115955_create_resignations_table.php
@@ -0,0 +1,35 @@
+tinyInteger('resignation_id')->unsigned()->autoIncrement();
+ $table->unsignedBigInteger('employee_id')->nullable();
+ $table->date('resignation_date')->nullable();
+ $table->date('approved_date')->nullable();
+ $table->unsignedBigInteger('approved_by')->nullable();
+ $table->mediumText('description')->nullable();
+ $table->mediumText('remarks')->nullable();
+ $table->unsignedBigInteger('status')->nullable();
+ $table->unsignedBigInteger('createdBy')->nullable();
+ $table->unsignedBigInteger('updatedBy')->nullable();
+ $table->timestamps();
+ });
+ }
+
+ /**
+ * Reverse the migrations.
+ */
+ public function down(): void
+ {
+ Schema::dropIfExists('tbl_resignations');
+ }
+};
diff --git a/Modules/Admin/resources/views/appreciations/create.blade.php b/Modules/Admin/resources/views/appreciations/create.blade.php
new file mode 100644
index 0000000..d4fea08
--- /dev/null
+++ b/Modules/Admin/resources/views/appreciations/create.blade.php
@@ -0,0 +1,23 @@
+@extends('layouts.app')
+@section('content')
+
+
+
+
+ @include('layouts.partials.breadcrumb', ['title' => $title])
+
+
+
+
+
+
+ {{ html()->form('POST')->route('appreciation.store')->class(['needs-validation'])->attributes(['novalidate'])->open() }}
+
+ @include('admin::partials.appreciations.action')
+
+ {{ html()->form()->close() }}
+
+
+
+
+ @endsection
diff --git a/Modules/Admin/resources/views/appreciations/edit.blade.php b/Modules/Admin/resources/views/appreciations/edit.blade.php
new file mode 100644
index 0000000..e46e4eb
--- /dev/null
+++ b/Modules/Admin/resources/views/appreciations/edit.blade.php
@@ -0,0 +1,23 @@
+@extends('layouts.app')
+@section('content')
+
+
+
+
+ @include('layouts.partials.breadcrumb', ['title' => $title])
+
+
+
+
+
+
+ {{ html()->modelForm($appreciation, 'PUT')->route('appreciation.update', $appreciation->appreciation_id)->class(['needs-validation'])->attributes(['novalidate'])->open() }}
+
+ @include('admin::partials.appreciations.action')
+
+ {{ html()->form()->close() }}
+
+
+
+
+ @endsection
diff --git a/Modules/Admin/resources/views/appreciations/index.blade.php b/Modules/Admin/resources/views/appreciations/index.blade.php
new file mode 100644
index 0000000..dcb04d1
--- /dev/null
+++ b/Modules/Admin/resources/views/appreciations/index.blade.php
@@ -0,0 +1,75 @@
+@extends('layouts.app')
+@section('content')
+
+
+
+
+ @include('layouts.partials.breadcrumb', ['title' => $title])
+
+
+
+
+
+
+@endsection
diff --git a/Modules/Admin/resources/views/appreciations/show.blade.php b/Modules/Admin/resources/views/appreciations/show.blade.php
new file mode 100644
index 0000000..9ed0171
--- /dev/null
+++ b/Modules/Admin/resources/views/appreciations/show.blade.php
@@ -0,0 +1,48 @@
+@extends('layouts.app')
+@section('content')
+
+
+
+
+ @include('layouts.partials.breadcrumb', ['title' => $title])
+
+
+
+
+
+
+
+
Title : {{ $data->title }}
+
Alias : {{ $data->alias }}
+
Status : {{ $data->status == 1 ? 'Active' : 'Inactive' }}
+
+
Remarks : {{ $data->remarks }}
+
Display Order : {{ $data->display_order }}
+
Createdby : {{ $data->createdby }}
+
Updatedby : {{ $data->updatedby }}
+
Job Description : {{ $data->job_description }}
+
Departments Id : {{ $data->departments_id }}
+
+
+
Created On : {{ $data->created_at }}
+
Created By : {{ $data->createdBy }}
+
+
+
Updated On : {{ $data->updated_at }}
+
Updated By : {{ $data->updatedBy }}
+
+
+
+
+
+
+
+
+@endSection
diff --git a/Modules/Admin/resources/views/cities/show.blade.php b/Modules/Admin/resources/views/cities/show.blade.php
index daa489e..180f50c 100644
--- a/Modules/Admin/resources/views/cities/show.blade.php
+++ b/Modules/Admin/resources/views/cities/show.blade.php
@@ -1,15 +1,14 @@
@extends('layouts.app')
@section('content')
-