From 0a50b7c28a696fcb8bda48950575b39f7c5084db Mon Sep 17 00:00:00 2001 From: gerchek Date: Thu, 1 Dec 2022 11:53:23 +0500 Subject: [PATCH] added TypeAccountReplenishment --- .../models/TypeAccountReplenishment.php | 2 +- .../typeaccountreplenishment/fields.yaml | 14 +++++++++++ ...ash_contact_type_account_replenishment.php | 23 +++++++++++++++++++ ...h_contact_type_account_replenishment_2.php | 23 +++++++++++++++++++ plugins/atash/contact/updates/version.yaml | 6 +++++ plugins/vdomah/jwtauth/routes.php | 6 ++--- 6 files changed, 70 insertions(+), 4 deletions(-) create mode 100644 plugins/atash/contact/updates/builder_table_update_atash_contact_type_account_replenishment.php create mode 100644 plugins/atash/contact/updates/builder_table_update_atash_contact_type_account_replenishment_2.php diff --git a/plugins/atash/contact/models/TypeAccountReplenishment.php b/plugins/atash/contact/models/TypeAccountReplenishment.php index feb1162..cdfcda1 100644 --- a/plugins/atash/contact/models/TypeAccountReplenishment.php +++ b/plugins/atash/contact/models/TypeAccountReplenishment.php @@ -23,5 +23,5 @@ class TypeAccountReplenishment extends Model public $implement = ['RainLab.Translate.Behaviors.TranslatableModel']; - public $translatable = ['type']; + public $translatable = ['type','requirements_documents','information']; } diff --git a/plugins/atash/contact/models/typeaccountreplenishment/fields.yaml b/plugins/atash/contact/models/typeaccountreplenishment/fields.yaml index c8208bf..b5ebdd3 100644 --- a/plugins/atash/contact/models/typeaccountreplenishment/fields.yaml +++ b/plugins/atash/contact/models/typeaccountreplenishment/fields.yaml @@ -3,3 +3,17 @@ fields: label: 'Вид пополнения счета' span: auto type: text +tabs: + fields: + requirements_documents: + label: 'Требования и документы' + size: giant + span: auto + type: richeditor + tab: 'Требования и документы' + information: + label: Информация + size: giant + span: auto + type: richeditor + tab: 'Требования и документы' diff --git a/plugins/atash/contact/updates/builder_table_update_atash_contact_type_account_replenishment.php b/plugins/atash/contact/updates/builder_table_update_atash_contact_type_account_replenishment.php new file mode 100644 index 0000000..52a0791 --- /dev/null +++ b/plugins/atash/contact/updates/builder_table_update_atash_contact_type_account_replenishment.php @@ -0,0 +1,23 @@ +text('requirements_documents')->nullable(); + }); + } + + public function down() + { + Schema::table('atash_contact_type_account_replenishment', function($table) + { + $table->dropColumn('requirements_documents'); + }); + } +} diff --git a/plugins/atash/contact/updates/builder_table_update_atash_contact_type_account_replenishment_2.php b/plugins/atash/contact/updates/builder_table_update_atash_contact_type_account_replenishment_2.php new file mode 100644 index 0000000..53e82bc --- /dev/null +++ b/plugins/atash/contact/updates/builder_table_update_atash_contact_type_account_replenishment_2.php @@ -0,0 +1,23 @@ +text('information')->nullable(); + }); + } + + public function down() + { + Schema::table('atash_contact_type_account_replenishment', function($table) + { + $table->dropColumn('information'); + }); + } +} diff --git a/plugins/atash/contact/updates/version.yaml b/plugins/atash/contact/updates/version.yaml index cb3927c..ea08fe1 100644 --- a/plugins/atash/contact/updates/version.yaml +++ b/plugins/atash/contact/updates/version.yaml @@ -132,3 +132,9 @@ 1.0.45: - 'Updated table atash_contact_account_replenishment' - builder_table_update_atash_contact_account_replenishment_2.php +1.0.46: + - 'Updated table atash_contact_type_account_replenishment' + - builder_table_update_atash_contact_type_account_replenishment.php +1.0.47: + - 'Updated table atash_contact_type_account_replenishment' + - builder_table_update_atash_contact_type_account_replenishment_2.php diff --git a/plugins/vdomah/jwtauth/routes.php b/plugins/vdomah/jwtauth/routes.php index f80c84f..1d1f716 100644 --- a/plugins/vdomah/jwtauth/routes.php +++ b/plugins/vdomah/jwtauth/routes.php @@ -231,7 +231,7 @@ Route::group(['prefix' => 'api'], function() { Route::get('me', function() { $me = \JWTAuth::parseToken()->authenticate() - ->only(['account_replenishment','online_card','online_credit','message','email','surname','name','middle_name','date_birth','passport','place_passport','address_residence','mobile_phone','home_phone','username','is_activated']); + ->only(['account_replenishment','online_card','online_credit','email','surname','name','middle_name','date_birth','passport','place_passport','address_residence','mobile_phone','home_phone','username','is_activated']); return Response::json(compact('me')); @@ -360,7 +360,7 @@ Route::group(['prefix' => 'api'], function() { { Mail::send('vdomah.jwtauth::mail.message', $vars, function($message) { - $message->to('gerchekgerchek1@gmail.com', 'Admin Person'); + $message->to('bank_kart@halkbank.gov.tm', 'Admin Person'); $message->subject('Plastik kartlar'); }); @@ -370,7 +370,7 @@ Route::group(['prefix' => 'api'], function() { { Mail::send('vdomah.jwtauth::mail.message', $vars, function($message) { - $message->to('gerchekgerchek1@gmail.com', 'Admin Person'); + $message->to('karzonline@halkbank.gov.tm', 'Admin Person'); $message->subject('Plastik kartlar DALLER'); });