translate accounts
This commit is contained in:
parent
d92677e662
commit
ee3fca501a
|
|
@ -29,7 +29,7 @@ public function setup()
|
|||
{
|
||||
CRUD::setModel(\App\Models\Account::class);
|
||||
CRUD::setRoute(config('backpack.base.route_prefix') . '/account');
|
||||
CRUD::setEntityNameStrings('account', trans('app.account.list_title'));
|
||||
CRUD::setEntityNameStrings(trans('app.account.title'), trans('app.account.list_title'));
|
||||
|
||||
$this->crud->addFilter([
|
||||
'name' => 'type',
|
||||
|
|
@ -51,15 +51,15 @@ public function setup()
|
|||
*/
|
||||
protected function setupListOperation()
|
||||
{
|
||||
CRUD::column('type');
|
||||
CRUD::addColumn(['name'=>'type', 'type'=>'text','label'=>'Type']);
|
||||
CRUD::addColumn([
|
||||
'name' => 'profile',
|
||||
'label' => trans('app.account.name'),
|
||||
'type' => 'profile_name'
|
||||
]);
|
||||
CRUD::column('legalization_number');
|
||||
CRUD::column('expires_at');
|
||||
CRUD::column('country');
|
||||
CRUD::addColumn(['name'=>'legalization_number', 'type'=>'text','label'=> trans('app.account.legalization_number')]);
|
||||
CRUD::addColumn(['name'=>'expires_at', 'type'=>'text','label'=> trans('app.account.expires_at')]);
|
||||
CRUD::addColumn(['name'=>'country', 'type'=>'text','label'=> trans('app.account.country')]);
|
||||
|
||||
$this->crud->addButtonFromModelFunction('line', 'preview_button', 'preview', 'beginning');
|
||||
$this->crud->addButtonFromModelFunction('line', 'export_button', 'export_account', 'beginning');
|
||||
|
|
|
|||
|
|
@ -27,18 +27,18 @@ public function setup()
|
|||
{
|
||||
CRUD::setModel(\App\Models\Application::class);
|
||||
CRUD::setRoute(config('backpack.base.route_prefix') . '/application');
|
||||
CRUD::setEntityNameStrings('application', 'applications');
|
||||
CRUD::setEntityNameStrings('application', trans('app.application.list_title'));
|
||||
|
||||
$this->crud->addFilter([
|
||||
'name' => 'state',
|
||||
'type' => 'dropdown',
|
||||
'label' => 'State'
|
||||
'label' => trans('app.application.state')
|
||||
], [
|
||||
'new' => 'new',
|
||||
'applied' => 'applied',
|
||||
'refine' => 'refine',
|
||||
'approved' => 'approved',
|
||||
'archived' => 'archived'
|
||||
'new' => trans('app.application.new'),
|
||||
'applied' => trans('app.application.applied'),
|
||||
'refine' => trans('app.application.refine'),
|
||||
'approved' => trans('app.application.approved'),
|
||||
'archive' => trans('app.application.archived')
|
||||
], function ($value) { // if the filter is active
|
||||
$this->crud->addClause('where', 'state', $value);
|
||||
});
|
||||
|
|
@ -46,7 +46,7 @@ public function setup()
|
|||
$this->crud->addFilter([
|
||||
'type' => 'date_range',
|
||||
'name' => 'from_to',
|
||||
'label' => 'Created at from-to'
|
||||
'label' => trans('app.application.date_filter'),
|
||||
],
|
||||
false,
|
||||
function ($value) { // if the filter is active, apply these constraints
|
||||
|
|
@ -69,10 +69,10 @@ protected function setupListOperation()
|
|||
[
|
||||
'name' => 'profile',
|
||||
'type' => 'account_profile_name',
|
||||
'label' => 'Account',
|
||||
'label' => trans('app.application.account'),
|
||||
],
|
||||
[ // SelectMultiple = n-n relationship (with pivot table)
|
||||
'label' => "Account type",
|
||||
'label' => trans('app.account.account_type'),
|
||||
'type' => 'select',
|
||||
'name' => 'account_type', // the method that defines the relationship in your Model
|
||||
'entity' => 'account', // the method that defines the relationship in your Model
|
||||
|
|
@ -80,7 +80,7 @@ protected function setupListOperation()
|
|||
'attribute' => 'type',
|
||||
],
|
||||
[ // SelectMultiple = n-n relationship (with pivot table)
|
||||
'label' => "Legalization number",
|
||||
'label' => trans('app.application.leg_number'),
|
||||
'type' => 'select',
|
||||
'name' => 'account_legnumber', // the method that defines the relationship in your Model
|
||||
'entity' => 'account', // the method that defines the relationship in your Model
|
||||
|
|
@ -88,7 +88,7 @@ protected function setupListOperation()
|
|||
'attribute' => 'legalization_number',
|
||||
],
|
||||
[ // SelectMultiple = n-n relationship (with pivot table)
|
||||
'label' => "Legalization number",
|
||||
'label' => trans('app.application.expires_at'),
|
||||
'type' => 'select',
|
||||
'name' => 'account_exp_date', // the method that defines the relationship in your Model
|
||||
'entity' => 'account', // the method that defines the relationship in your Model
|
||||
|
|
@ -97,11 +97,12 @@ protected function setupListOperation()
|
|||
],
|
||||
[
|
||||
'name' => 'state',
|
||||
'label' => 'State',
|
||||
'label' => trans('app.application.state'),
|
||||
'type' => 'badge',
|
||||
],
|
||||
[
|
||||
'name' => 'created_at',
|
||||
'label' => trans('app.application.created_at'),
|
||||
]
|
||||
]);
|
||||
|
||||
|
|
@ -120,7 +121,7 @@ protected function setupCreateOperation()
|
|||
CRUD::setValidation(ApplicationRequest::class);
|
||||
$this->crud->addFields([
|
||||
[ // SelectMultiple = n-n relationship (with pivot table)
|
||||
'label' => "Account",
|
||||
'label' => trans('app.application.account'),
|
||||
'type' => 'custom_select_account',
|
||||
'name' => 'account_id', // the method that defines the relationship in your Model
|
||||
'entity' => 'account', // the method that defines the relationship in your Model
|
||||
|
|
@ -130,14 +131,14 @@ protected function setupCreateOperation()
|
|||
],
|
||||
[
|
||||
'name' => 'state',
|
||||
'label' => 'State',
|
||||
'label' => trans('app.application.state'),
|
||||
'type' => 'select_from_array',
|
||||
'options' => [
|
||||
'new' => 'New',
|
||||
'applied' => 'Applied',
|
||||
'refine' => 'Refine',
|
||||
'approved' => 'Approved',
|
||||
'archive' => 'Archive'
|
||||
'new' => trans('app.application.new'),
|
||||
'applied' => trans('app.application.applied'),
|
||||
'refine' => trans('app.application.refine'),
|
||||
'approved' => trans('app.application.approved'),
|
||||
'archive' => trans('app.application.archived')
|
||||
]
|
||||
]
|
||||
]);
|
||||
|
|
@ -158,11 +159,11 @@ protected function setupUpdateOperation()
|
|||
'label' => 'State',
|
||||
'type' => 'select_from_array',
|
||||
'options' => [
|
||||
'new' => 'New',
|
||||
'applied' => 'Applied',
|
||||
'refine' => 'Refine',
|
||||
'approved' => 'Approved',
|
||||
'archive' => 'Archive'
|
||||
'new' => trans('app.application.new'),
|
||||
'applied' => trans('app.application.applied'),
|
||||
'refine' => trans('app.application.refine'),
|
||||
'approved' => trans('app.application.approved'),
|
||||
'archive' => trans('app.application.archived')
|
||||
]
|
||||
]
|
||||
]);
|
||||
|
|
|
|||
|
|
@ -30,7 +30,7 @@ public function setup()
|
|||
{
|
||||
CRUD::setModel(\App\Models\Business::class);
|
||||
CRUD::setRoute(config('backpack.base.route_prefix') . '/business');
|
||||
CRUD::setEntityNameStrings('enterpreneur', 'enterpreneurs');
|
||||
CRUD::setEntityNameStrings('entrepreneur', 'entrepreneurs');
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
|
|||
|
|
@ -27,15 +27,15 @@ public function setup()
|
|||
{
|
||||
CRUD::setModel(\App\Models\Client::class);
|
||||
CRUD::setRoute(config('backpack.base.route_prefix') . '/client');
|
||||
CRUD::setEntityNameStrings('client', 'clients');
|
||||
CRUD::setEntityNameStrings('client', trans('app.client.list_title'));
|
||||
|
||||
$this->crud->addFilter([
|
||||
'name' => 'is_verified',
|
||||
'type' => 'dropdown',
|
||||
'label' => 'Is verified?'
|
||||
'label' => trans('app.client.is_verified')
|
||||
], [
|
||||
1 => 'Yes',
|
||||
0 => 'No'
|
||||
1 => trans('app.yes'),
|
||||
0 => trans('app.no'),
|
||||
], function ($value) { // if the filter is active
|
||||
$this->crud->addClause('where', 'is_verified', $value);
|
||||
});
|
||||
|
|
@ -43,10 +43,10 @@ public function setup()
|
|||
$this->crud->addFilter([
|
||||
'name' => 'is_suspended',
|
||||
'type' => 'dropdown',
|
||||
'label' => 'Is suspended?'
|
||||
'label' => trans('app.client.is_suspended'),
|
||||
], [
|
||||
1 => 'Yes',
|
||||
0 => 'No'
|
||||
1 => trans('app.yes'),
|
||||
0 => trans('app.no'),
|
||||
], function ($value) { // if the filter is active
|
||||
$this->crud->addClause('where', 'is_suspended', $value);
|
||||
});
|
||||
|
|
@ -67,19 +67,19 @@ protected function setupListOperation()
|
|||
[
|
||||
'name' => 'is_verified',
|
||||
'type' => 'radio',
|
||||
'label' => 'Is verified',
|
||||
'label' => trans('app.client.is_verified'),
|
||||
'options' => [
|
||||
1 => 'Yes',
|
||||
0 => 'No'
|
||||
1 => trans('app.yes'),
|
||||
0 => trans('app.no'),
|
||||
]
|
||||
],
|
||||
[
|
||||
'name' => 'is_suspended',
|
||||
'type' => 'radio',
|
||||
'label' => 'Is suspended',
|
||||
'label' => trans('app.client.is_suspended'),
|
||||
'options' => [
|
||||
1 => 'Yes',
|
||||
0 => 'No'
|
||||
1 => trans('app.yes'),
|
||||
0 => trans('app.no'),
|
||||
]
|
||||
]
|
||||
]);
|
||||
|
|
|
|||
|
|
@ -29,7 +29,7 @@ public function setup()
|
|||
{
|
||||
CRUD::setModel(\App\Models\Company::class);
|
||||
CRUD::setRoute(config('backpack.base.route_prefix') . '/company');
|
||||
CRUD::setEntityNameStrings('company', 'companies');
|
||||
CRUD::setEntityNameStrings('company', trans('app.company.list_title'));
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
@ -45,7 +45,7 @@ protected function setupListOperation()
|
|||
CRUD::column('registration_number');
|
||||
CRUD::addColumn([ // Date
|
||||
'name' => 'registration_date',
|
||||
'label' => 'Regitration date',
|
||||
'label' => trans('app.company.registration_date'),
|
||||
'type' => 'date'
|
||||
]);
|
||||
CRUD::column('state_registration_agency');
|
||||
|
|
@ -62,7 +62,7 @@ protected function setupShowOperation()
|
|||
CRUD::column('registration_number');
|
||||
CRUD::addColumn([
|
||||
'name' => 'registration_date',
|
||||
'label' => 'Regitration date',
|
||||
'label' => trans('app.company.registration_date'),
|
||||
'type' => 'date'
|
||||
]);
|
||||
CRUD::column('state_registration_agency');
|
||||
|
|
@ -85,7 +85,7 @@ protected function setupCreateOperation()
|
|||
CRUD::field('registration_number');
|
||||
CRUD::addField([ // Date
|
||||
'name' => 'registration_date',
|
||||
'label' => 'Regitration date',
|
||||
'label' => trans('app.company.registration_date'),
|
||||
'type' => 'date'
|
||||
]);
|
||||
CRUD::field('state_registration_agency');
|
||||
|
|
|
|||
|
|
@ -9,11 +9,12 @@
|
|||
'errors' => [
|
||||
'not_found' => 'Not found'
|
||||
],
|
||||
|
||||
'account'=> [
|
||||
'title' => 'account',
|
||||
'list_title' => 'accounts',
|
||||
'filter' =>[
|
||||
'type' => 'Type',
|
||||
'list_title' => 'accounts',
|
||||
|
||||
'business' => 'Entrepreneur',
|
||||
'company' => 'Company',
|
||||
],
|
||||
|
|
@ -41,6 +42,18 @@
|
|||
'update_account_error' => 'Update account failed'
|
||||
],
|
||||
'application' => [
|
||||
'list_title' => 'applications',
|
||||
'new' => 'Mew',
|
||||
'applied' => 'Applied',
|
||||
'refine' => 'Refine',
|
||||
'approved' => 'Approved',
|
||||
'archived' => 'Archived',
|
||||
'date_filter' => 'Created at from-to',
|
||||
'account' => 'Account',
|
||||
'account_type' => "Account type",
|
||||
'leg_number' => "Legalization number",
|
||||
'expires_at' => "Expires at",
|
||||
'state' => 'Status',
|
||||
'fill_profile_message' => 'Please fill your profile information first!',
|
||||
'expire_message' => 'Dine Legalizasia nomerinizin mohletinin gutarmagyna 1 ay wagt galanda arza doredip bilyaniz',
|
||||
'list_not_found' => 'Required documents list was not found',
|
||||
|
|
@ -51,6 +64,17 @@
|
|||
'upload_failure' => 'File upload failed',
|
||||
'upload_max_size' => 'Max size exceeded'
|
||||
],
|
||||
'yes' => 'Yes',
|
||||
'no' => 'No',
|
||||
'client' => [
|
||||
'list_title' => 'clients',
|
||||
'is_verified' => 'Is verified?',
|
||||
'is_suspended' => 'is_suspended',
|
||||
],
|
||||
'company' => [
|
||||
'list_title' => 'companies',
|
||||
'registration_date' => 'Registration date',
|
||||
],
|
||||
'ticket' =>[
|
||||
'not_found' => "There is no ticket id with value: :id"
|
||||
]
|
||||
|
|
|
|||
|
|
@ -9,18 +9,58 @@
|
|||
'errors' => [
|
||||
'not_found' => 'Resource not found'
|
||||
],
|
||||
'account'=> [
|
||||
"not_found" => 'Account not found',
|
||||
],
|
||||
'application' => [
|
||||
'fill_profile_message' => 'Please fill your profile information first!',
|
||||
'expire_message' => 'Dine Legalizasia nomerinizin mohletinin gutarmagyna 1 ay wagt galanda arza doredip bilyaniz',
|
||||
'list_not_found' => 'Required documents list was not found',
|
||||
'required_docs_message' => 'Upload all required documents first!',
|
||||
'app_success_message' => 'Application successful',
|
||||
'app_error_message' => 'This application is not applicable',
|
||||
'upload_success' => 'Uploaded successfully',
|
||||
'upload_failure' => 'File upload failed',
|
||||
'upload_max_size' => 'Max size exceeded'
|
||||
],
|
||||
'account'=> [
|
||||
'list_title' => 'аккаунты',
|
||||
'filter' =>[
|
||||
'type' => 'Тип',
|
||||
|
||||
'business' => 'Физ.лицо',
|
||||
'company' => 'Юр.лицо',
|
||||
],
|
||||
'name' => 'Название',
|
||||
'tab_legalization' => '#1. Регистрация',
|
||||
'tab_bank' => '#2. Банковские счета',
|
||||
'tab_contacts' => '#3.Контактная информация',
|
||||
'tab_country' => '#4. Страна',
|
||||
'legalization_number' => 'Реестровый номер',
|
||||
'expires_at' => 'Истекает',
|
||||
'bank' => 'Банк',
|
||||
'account_number' => 'Номер счета',
|
||||
'account_date' => 'Дата счета',
|
||||
'currency' => 'Валюта',
|
||||
'iban' => 'МФО',
|
||||
'bank_name' => 'Наименование банка',
|
||||
'country' => 'Страна',
|
||||
'contacts' => 'Контакты',
|
||||
'address' => 'Адрес',
|
||||
'phone' => 'Номер телефона',
|
||||
'email' => 'Email',
|
||||
'fax' => 'Факс',
|
||||
"not_found" => 'Аккаунт не найден',
|
||||
'update_profile_error' => 'Не удалось обновить профиль',
|
||||
'update_account_error' => 'Не удалось обновить аккаунт'
|
||||
],
|
||||
'application' => [
|
||||
'list_title' => 'заявки',
|
||||
'new' => 'Новое',
|
||||
'applied' => 'Отправлено',
|
||||
'refine' => 'На рассмотрении',
|
||||
'approved' => 'Утверждено',
|
||||
'archived' => 'В архиве',
|
||||
'date_filter' => 'Создано с до',
|
||||
'account' => 'Аккаунт',
|
||||
'account_type' => "Тип аккаунта",
|
||||
'leg_number' => "Номер регистрации",
|
||||
'expires_at' => "Дата истечения срока",
|
||||
'state' => 'Статус',
|
||||
'fill_profile_message' => 'Пожалуйста, заполните свой профиль!',
|
||||
'expire_message' => 'Следующую заявку вы сможете подать за 1 месяц до истечения срока регистрации',
|
||||
'list_not_found' => 'Список необходимых документов не найден',
|
||||
'required_docs_message' => 'Загрузите, пожалуйста, все требуемые документы!',
|
||||
'app_success_message' => 'Заявка успешна',
|
||||
'app_error_message' => 'Данная заявка не может быть принята',
|
||||
'upload_success' => 'Загрузка успешна',
|
||||
'upload_failure' => 'загрузка файла не удалась',
|
||||
'upload_max_size' => 'Превышен максимальный размер'
|
||||
],
|
||||
];
|
||||
|
|
|
|||
|
|
@ -9,18 +9,58 @@
|
|||
'errors' => [
|
||||
'not_found' => 'Tapylmady'
|
||||
],
|
||||
'account'=> [
|
||||
"not_found" => 'Akkaunt tapylmady',
|
||||
],
|
||||
'account'=> [
|
||||
'list_title' => 'akkauntlar',
|
||||
'filter' =>[
|
||||
'type' => 'Görnüşi',
|
||||
|
||||
'business' => 'Şahsy tarap',
|
||||
'company' => 'Ýuridiki tarap',
|
||||
],
|
||||
'name' => 'Ady',
|
||||
'tab_legalization' => '#1. Hasaba alyş',
|
||||
'tab_bank' => '#2. Bank hasaplary',
|
||||
'tab_contacts' => '#3.Habarlaşmak üçin',
|
||||
'tab_country' => '#4. Ýurt',
|
||||
'legalization_number' => 'Hasaba alyş belgisi',
|
||||
'expires_at' => 'Möhletiň tamamlanýan senesi',
|
||||
'bank' => 'Bank',
|
||||
'account_number' => 'Hasap belgisi',
|
||||
'account_date' => 'Hasabyň senesi',
|
||||
'currency' => 'Walýuta',
|
||||
'iban' => 'MFO',
|
||||
'bank_name' => 'Bankyň ady',
|
||||
'country' => 'Ýurt',
|
||||
'contacts' => 'Habarlaşmak üçin',
|
||||
'address' => 'Salgysy',
|
||||
'phone' => 'Telefon belgisi',
|
||||
'email' => 'Email',
|
||||
'fax' => 'Faks',
|
||||
"not_found" => 'Akkaunt tapylmady',
|
||||
'update_profile_error' => 'Profil täzelenmedi',
|
||||
'update_account_error' => 'Akkaunt täzelenmedi'
|
||||
],
|
||||
'application' => [
|
||||
'fill_profile_message' => 'Please fill your profile information first!',
|
||||
'expire_message' => 'Dine Legalizasia nomerinizin mohletinin gutarmagyna 1 ay wagt galanda arza doredip bilyaniz',
|
||||
'list_not_found' => 'Required documents list was not found',
|
||||
'required_docs_message' => 'Upload all required documents first!',
|
||||
'app_success_message' => 'Application successful',
|
||||
'app_error_message' => 'This application is not applicable',
|
||||
'upload_success' => 'Uploaded successfully',
|
||||
'upload_failure' => 'File upload failed',
|
||||
'upload_max_size' => 'Max size exceeded'
|
||||
'list_title' => 'arza',
|
||||
'new' => 'Täze',
|
||||
'applied' => 'Iberildi',
|
||||
'refine' => 'Seredilýär',
|
||||
'approved' => 'Tassyklanyldy',
|
||||
'archived' => 'Arhiwde',
|
||||
'date_filter' => '-dan çenli döredildi',
|
||||
'account' => 'Akkaunt',
|
||||
'account_type' => "Akkaundyň görnüşi",
|
||||
'leg_number' => "Hasaba alyş belgisi",
|
||||
'expires_at' => "Möhletiň tamamlanýan senesi",
|
||||
'state' => 'Status',
|
||||
'fill_profile_message' => 'ilki bilen öz profiliňizi dolduryň!',
|
||||
'expire_message' => 'indiki gezek arzany onuň möhletiniň tamamlanmagyna 1 aý galanda tabşyryp bilersiňiz',
|
||||
'list_not_found' => 'Gerekli resminamalaryň sanawy tapylmady',
|
||||
'required_docs_message' => 'Ilki bilen ähli talap edilýän resminamalary ýükläň!',
|
||||
'app_success_message' => 'Arza kabul edildi',
|
||||
'app_error_message' => 'Bu arza kabul edilip bilmeýär',
|
||||
'upload_success' => 'Üstünlikli ýüklenildi',
|
||||
'upload_failure' => 'Faýl ýüklenilmedi',
|
||||
'upload_max_size' => 'Rugsat berilen ölçegden geçdi'
|
||||
],
|
||||
];
|
||||
|
|
|
|||
Loading…
Reference in New Issue