diff --git a/app/Http/Controllers/DiscordTestController.php b/app/Http/Controllers/DiscordTestController.php index de9d57ad..dd139559 100644 --- a/app/Http/Controllers/DiscordTestController.php +++ b/app/Http/Controllers/DiscordTestController.php @@ -36,4 +36,14 @@ public function Shanwick() 'data' => $result, ]); } + + public function SendEmbed() + { + //New Applicant in Instructor Channel + $discord = new DiscordClient(); + $discord->sendMessageWithEmbed('772787726009237524', 'Oceanic Training Cancelled!', +'Your training request with Gander Oceanic has been terminated. + +If you would like to begin training again, please re-apply via the Gander Website.'); + } } diff --git a/app/Http/Controllers/Training/InstructingController.php b/app/Http/Controllers/Training/InstructingController.php index 5efd8d7b..237b2578 100644 --- a/app/Http/Controllers/Training/InstructingController.php +++ b/app/Http/Controllers/Training/InstructingController.php @@ -459,7 +459,7 @@ public function certifyStudent($cid) // Remove Student Status & Set Controller as Active $student->user->removeRole('Student'); - $student->user->addRole('Certified Controller'); + $student->user->assignRole('Certified Controller'); $student->user->removeRole('Guest'); // Update Traing Lable diff --git a/resources/views/admin/training/instructing/students/student.blade.php b/resources/views/admin/training/instructing/students/student.blade.php index 7b0cc6be..16cc5d80 100644 --- a/resources/views/admin/training/instructing/students/student.blade.php +++ b/resources/views/admin/training/instructing/students/student.blade.php @@ -57,15 +57,15 @@