diff --git a/addons/default/visiosoft/advs-module/src/AdvsModuleSeeder.php b/addons/default/visiosoft/advs-module/src/AdvsModuleSeeder.php index c66b4ace5..c6ac433b9 100644 --- a/addons/default/visiosoft/advs-module/src/AdvsModuleSeeder.php +++ b/addons/default/visiosoft/advs-module/src/AdvsModuleSeeder.php @@ -1,12 +1,16 @@ call(AdvsModuleNotificationsTemplateSeeder::class); + $this->call(StatusSeeder::class); } } \ No newline at end of file diff --git a/addons/default/visiosoft/advs-module/src/Notifications/AdvsModuleNotificationsTemplateSeeder.php b/addons/default/visiosoft/advs-module/src/Notifications/AdvsModuleNotificationsTemplateSeeder.php new file mode 100644 index 000000000..7678bece1 --- /dev/null +++ b/addons/default/visiosoft/advs-module/src/Notifications/AdvsModuleNotificationsTemplateSeeder.php @@ -0,0 +1,86 @@ +findBySlug(Str::slug('Created Ad', '_'))) { + $template_repo->create([ + 'en' => [ + 'message' => '
Your post {name} has been created successfully.
', + 'name' => 'Created Ad', + 'greeting' => 'Hi', + 'subject' => 'Created Ad' + ], + 'stream' => 'advs', + 'slug' => Str::slug('Created Ad', '_') + ]); + } + + + if (!$template_repo->findBySlug(Str::slug('Approved Ad', '_'))) { + $template_repo->create([ + 'en' => [ + 'message' => 'Your ad for {name} has been approved.
', + 'name' => 'Approved Ad', + 'greeting' => 'Hi', + 'subject' => 'Approved Ad' + ], + 'stream' => 'advs', + 'slug' => Str::slug('Approved Ad', '_') + ]); + } + + + if (!$template_repo->findBySlug(Str::slug('Declined Ad', '_'))) { + $template_repo->create([ + 'en' => [ + 'message' => 'Your {name} ad was rejected because it does not comply with the posting rules.
', + 'name' => 'Declined Ad', + 'greeting' => 'Hi', + 'subject' => 'Declined Ad' + ], + 'stream' => 'advs', + 'slug' => Str::slug('Declined Ad', '_') + ]); + } + + + if (!$template_repo->findBySlug(Str::slug('Pending User Ad', '_'))) { + $template_repo->create([ + 'en' => [ + 'message' => 'You must confirm your {name} posting to be published.
', + 'name' => 'Pending User Ad', + 'greeting' => 'Hi', + 'subject' => 'Pending User Ad' + ], + 'stream' => 'advs', + 'slug' => Str::slug('Pending User Ad', '_') + ]); + } + + + if (!$template_repo->findBySlug(Str::slug('Pending Ad', '_'))) { + $template_repo->create([ + 'en' => [ + 'message' => 'Your {name} post is checked by our editors.
', + 'name' => 'Pending Ad', + 'greeting' => 'Hi', + 'subject' => 'Pending Ad' + ], + 'stream' => 'advs', + 'slug' => Str::slug('Pending Ad', '_') + ]); + } + + } + } +} \ No newline at end of file diff --git a/addons/default/visiosoft/profile-module/src/Notifications/ProfileModuleNotificationsTemplateSeeder.php b/addons/default/visiosoft/profile-module/src/Notifications/ProfileModuleNotificationsTemplateSeeder.php new file mode 100644 index 000000000..f32752845 --- /dev/null +++ b/addons/default/visiosoft/profile-module/src/Notifications/ProfileModuleNotificationsTemplateSeeder.php @@ -0,0 +1,187 @@ +findBySlug(Str::slug('Registered User', '_'))) { + $template_repo->create([ + 'en' => [ + 'message' => 'Your membership is activated.
Email:{email}
+
|
+
+
|
+
Your password has been changed
', + 'name' => 'Password Changed', + 'greeting' => 'Hi', + 'subject' => 'Password changed' + ], + 'stream' => 'users', + 'slug' => 'password_changed' + ]); + } + + } + } +} \ No newline at end of file diff --git a/addons/default/visiosoft/profile-module/src/ProfileModuleSeeder.php b/addons/default/visiosoft/profile-module/src/ProfileModuleSeeder.php index 5cf9c9fed..ed838d67f 100644 --- a/addons/default/visiosoft/profile-module/src/ProfileModuleSeeder.php +++ b/addons/default/visiosoft/profile-module/src/ProfileModuleSeeder.php @@ -2,12 +2,16 @@ use Anomaly\Streams\Platform\Database\Seeder\Seeder; use Visiosoft\ProfileModule\Education\EducationSeeder; +use Visiosoft\ProfileModule\Notifications\ProfileModuleNotificationsTemplateSeeder; use Visiosoft\ProfileModule\Seed\UsersFieldsSeeder; class ProfileModuleSeeder extends Seeder { public function run() { + //Notifications Template Seeder + $this->call(ProfileModuleNotificationsTemplateSeeder::class); + // Users Fields Seeder $this->call(UsersFieldsSeeder::class);