From 5e52289fcd32eec748caae24a8cba5464409a090 Mon Sep 17 00:00:00 2001 From: suraj kashyap Date: Thu, 19 Sep 2024 18:43:26 +0530 Subject: [PATCH] persons view page avatar and oranization edit button. --- packages/Webkul/Admin/src/Resources/lang/ar/app.php | 5 +++-- packages/Webkul/Admin/src/Resources/lang/en/app.php | 5 +++-- packages/Webkul/Admin/src/Resources/lang/es/app.php | 5 +++-- packages/Webkul/Admin/src/Resources/lang/fa/app.php | 5 +++-- packages/Webkul/Admin/src/Resources/lang/tr/app.php | 5 +++-- .../src/Resources/views/components/avatar/index.blade.php | 6 +++--- .../views/contacts/persons/view/organization.blade.php | 8 ++++++-- 7 files changed, 24 insertions(+), 15 deletions(-) diff --git a/packages/Webkul/Admin/src/Resources/lang/ar/app.php b/packages/Webkul/Admin/src/Resources/lang/ar/app.php index 6bb436585..de9cb7553 100644 --- a/packages/Webkul/Admin/src/Resources/lang/ar/app.php +++ b/packages/Webkul/Admin/src/Resources/lang/ar/app.php @@ -539,8 +539,9 @@ ], 'view' => [ - 'title' => ':name', - 'about-person' => 'عن الشخص', + 'title' => ':name', + 'about-person' => 'عن الشخص', + 'about-organization' => 'حول المؤسسة', 'activities' => [ 'index' => [ diff --git a/packages/Webkul/Admin/src/Resources/lang/en/app.php b/packages/Webkul/Admin/src/Resources/lang/en/app.php index 7fa7b4f9c..94b657aff 100644 --- a/packages/Webkul/Admin/src/Resources/lang/en/app.php +++ b/packages/Webkul/Admin/src/Resources/lang/en/app.php @@ -543,8 +543,9 @@ ], 'view' => [ - 'title' => ':name', - 'about-person' => 'About Person', + 'title' => ':name', + 'about-person' => 'About Person', + 'about-organization' => 'About Organization', 'activities' => [ 'index' => [ diff --git a/packages/Webkul/Admin/src/Resources/lang/es/app.php b/packages/Webkul/Admin/src/Resources/lang/es/app.php index c8ddda209..cf786e310 100644 --- a/packages/Webkul/Admin/src/Resources/lang/es/app.php +++ b/packages/Webkul/Admin/src/Resources/lang/es/app.php @@ -539,8 +539,9 @@ ], 'view' => [ - 'title' => ':name', - 'about-person' => 'Sobre la Persona', + 'title' => ':name', + 'about-person' => 'Sobre la Persona', + 'about-organization' => 'Acerca de la organización', 'activities' => [ 'index' => [ diff --git a/packages/Webkul/Admin/src/Resources/lang/fa/app.php b/packages/Webkul/Admin/src/Resources/lang/fa/app.php index 3ec8477cb..6268fc7fb 100644 --- a/packages/Webkul/Admin/src/Resources/lang/fa/app.php +++ b/packages/Webkul/Admin/src/Resources/lang/fa/app.php @@ -539,8 +539,9 @@ ], 'view' => [ - 'title' => ':name', - 'about-person' => 'درباره شخص', + 'title' => ':name', + 'about-person' => 'درباره شخص', + 'about-organization' => 'درباره سازمان', 'activities' => [ 'index' => [ diff --git a/packages/Webkul/Admin/src/Resources/lang/tr/app.php b/packages/Webkul/Admin/src/Resources/lang/tr/app.php index f6aec5784..ec0af1033 100644 --- a/packages/Webkul/Admin/src/Resources/lang/tr/app.php +++ b/packages/Webkul/Admin/src/Resources/lang/tr/app.php @@ -539,8 +539,9 @@ ], 'view' => [ - 'title' => ':name', - 'about-person' => 'Kişi Hakkında', + 'title' => ':name', + 'about-person' => 'Kişi Hakkında', + 'about-organization' => 'Kuruluş Hakkında', 'activities' => [ 'index' => [ diff --git a/packages/Webkul/Admin/src/Resources/views/components/avatar/index.blade.php b/packages/Webkul/Admin/src/Resources/views/components/avatar/index.blade.php index 7093b256e..fbe7182cc 100644 --- a/packages/Webkul/Admin/src/Resources/views/components/avatar/index.blade.php +++ b/packages/Webkul/Admin/src/Resources/views/components/avatar/index.blade.php @@ -1,5 +1,5 @@ -
+
@pushOnce('scripts') @@ -8,10 +8,10 @@ id="v-avatar-template" >
- @{{ name.split(' ').map(word => word[0].toUpperCase()).join('') }} + @{{ name.split(' ').slice(0, 2).map(word => word[0].toUpperCase()).join('') }}
diff --git a/packages/Webkul/Admin/src/Resources/views/contacts/persons/view/organization.blade.php b/packages/Webkul/Admin/src/Resources/views/contacts/persons/view/organization.blade.php index f17feb712..70b78b610 100644 --- a/packages/Webkul/Admin/src/Resources/views/contacts/persons/view/organization.blade.php +++ b/packages/Webkul/Admin/src/Resources/views/contacts/persons/view/organization.blade.php @@ -3,9 +3,13 @@ @if ($person?->organization)

- About Organization + @lang('admin::app.contacts.persons.view.about-organization') - +