diff --git a/app/Http/Controllers/API/v1/Nominee/UpdateController.php b/app/Http/Controllers/API/v1/Nominee/UpdateController.php index 82a0c4e..63186bd 100644 --- a/app/Http/Controllers/API/v1/Nominee/UpdateController.php +++ b/app/Http/Controllers/API/v1/Nominee/UpdateController.php @@ -50,8 +50,8 @@ class UpdateController extends Controller $nominee->no_anggota = $request->no_anggota; $nominee->position_id = $request->position_id; $nominee->partylist_id = $request->partylist_id; - $nominee->motto = $request->motto; - $nominee->description = $request->description; + $nominee->education = $request->education; + $nominee->experience = $request->experience; if ($request->hasFile('photo')) { $imageData = file_get_contents($request->file('photo')); diff --git a/app/Nominee.php b/app/Nominee.php index fdc1cd0..304b10c 100644 --- a/app/Nominee.php +++ b/app/Nominee.php @@ -14,8 +14,8 @@ class Nominee extends Model 'position_id', 'partylist_id', 'election_id', - 'description', - 'motto', + 'experience', + 'education', 'photo', ]; public $timestamp = false; diff --git a/database/migrations/2024_03_31_111517_rename_education_in_nominee_table.php b/database/migrations/2024_03_31_111517_rename_education_in_nominee_table.php new file mode 100644 index 0000000..f1fc679 --- /dev/null +++ b/database/migrations/2024_03_31_111517_rename_education_in_nominee_table.php @@ -0,0 +1,32 @@ +renameColumn('motto', 'education'); + }); + } + + /** + * Reverse the migrations. + * + * @return void + */ + public function down() + { + Schema::table('nominee', function (Blueprint $table) { + $table->renameColumn('motto', 'education'); + }); + } +} diff --git a/database/migrations/2024_03_31_112252_rename_experience_in_nominee_table.php b/database/migrations/2024_03_31_112252_rename_experience_in_nominee_table.php new file mode 100644 index 0000000..8ef4e5c --- /dev/null +++ b/database/migrations/2024_03_31_112252_rename_experience_in_nominee_table.php @@ -0,0 +1,32 @@ +renameColumn('description', 'experience'); + }); + } + + /** + * Reverse the migrations. + * + * @return void + */ + public function down() + { + Schema::table('nominee', function (Blueprint $table) { + $table->renameColumn('description', 'experience'); + }); + } +} diff --git a/resources/assets/img/MyKoPKB-logo.jpeg b/resources/assets/img/MyKoPKB-logo.jpeg new file mode 100644 index 0000000..e097835 Binary files /dev/null and b/resources/assets/img/MyKoPKB-logo.jpeg differ diff --git a/resources/assets/js/components/admin/index.vue b/resources/assets/js/components/admin/index.vue index a0ccc03..6d837ae 100644 --- a/resources/assets/js/components/admin/index.vue +++ b/resources/assets/js/components/admin/index.vue @@ -9,7 +9,7 @@ - Voting System + MyKoPKB