Skip to content

Commit 7a6c614

Browse files
committed
Merge branch '2.1' of github.com:krayin/laravel-crm into issue#1813
2 parents 8a715a9 + 3391eb5 commit 7a6c614

File tree

12 files changed

+97
-57
lines changed

12 files changed

+97
-57
lines changed

packages/Webkul/Admin/src/Resources/lang/ar/app.php

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -627,6 +627,11 @@
627627
],
628628
],
629629
],
630+
631+
'tags' => [
632+
'create-success' => 'تم إنشاء الوسم بنجاح.',
633+
'destroy-success' => 'تم حذف الوسم بنجاح.',
634+
],
630635
],
631636

632637
'create' => [

packages/Webkul/Admin/src/Resources/lang/en/app.php

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -629,6 +629,11 @@
629629
],
630630
],
631631
],
632+
633+
'tags' => [
634+
'create-success' => 'Tag created successfully.',
635+
'destroy-success' => 'Tag deleted successfully.',
636+
],
632637
],
633638

634639
'create' => [

packages/Webkul/Admin/src/Resources/lang/es/app.php

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -631,6 +631,11 @@
631631
],
632632
],
633633
],
634+
635+
'tags' => [
636+
'create-success' => 'Etiqueta creada con éxito.',
637+
'destroy-success' => 'Etiqueta eliminada con éxito.',
638+
],
634639
],
635640

636641
'create' => [

packages/Webkul/Admin/src/Resources/lang/fa/app.php

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -631,6 +631,11 @@
631631
],
632632
],
633633
],
634+
635+
'tags' => [
636+
'create-success' => 'برچسب با موفقیت ایجاد شد.',
637+
'destroy-success' => 'برچسب با موفقیت حذف شد.',
638+
],
634639
],
635640

636641
'create' => [

packages/Webkul/Admin/src/Resources/lang/pt_BR/app.php

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -625,6 +625,11 @@
625625
],
626626
],
627627
],
628+
629+
'tags' => [
630+
'create-success' => 'Tag criada com sucesso.',
631+
'destroy-success' => 'Tag excluída com sucesso.',
632+
],
628633
],
629634

630635
'create' => [

packages/Webkul/Admin/src/Resources/lang/tr/app.php

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -631,6 +631,11 @@
631631
],
632632
],
633633
],
634+
635+
'tags' => [
636+
'create-success' => 'Etiket başarıyla oluşturuldu.',
637+
'destroy-success' => 'Etiket başarıyla silindi.',
638+
],
634639
],
635640

636641
'create' => [

packages/Webkul/Admin/src/Resources/lang/vi/app.php

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -628,6 +628,11 @@
628628
],
629629
],
630630
],
631+
632+
'tags' => [
633+
'create-success' => 'Thẻ được tạo thành công.',
634+
'destroy-success' => 'Thẻ đã được xóa thành công.',
635+
],
631636
],
632637

633638
'create' => [

packages/Webkul/Admin/src/Resources/views/settings/workflows/edit.blade.php

Lines changed: 50 additions & 50 deletions
Large diffs are not rendered by default.

packages/Webkul/DataGrid/src/Exports/DataGridExport.php

Lines changed: 10 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,10 @@ public function map(mixed $record): array
4747
$index = $column->getIndex();
4848
$value = $record->{$index};
4949

50-
if (in_array($index, ['emails', 'contact_numbers']) && is_string($value)) {
50+
if (
51+
in_array($index, ['emails', 'contact_numbers'])
52+
&& is_string($value)
53+
) {
5154
return $this->extractValuesFromJson($value);
5255
}
5356

@@ -61,11 +64,13 @@ public function map(mixed $record): array
6164
*/
6265
protected function extractValuesFromJson(string $json): string
6366
{
64-
$decoded = json_decode($json, true);
67+
$items = json_decode($json, true);
6568

66-
if (json_last_error() === JSON_ERROR_NONE
67-
&& is_array($decoded)) {
68-
return collect($decoded)->pluck('value')->implode(', ');
69+
if (
70+
json_last_error() === JSON_ERROR_NONE
71+
&& is_array($items)
72+
) {
73+
return collect($items)->map(fn ($item) => "{$item['value']} ({$item['label']})")->implode(', ');
6974
}
7075

7176
return $json;

public/admin/build/assets/app-B_PcTVJe.css

Lines changed: 0 additions & 1 deletion
This file was deleted.

0 commit comments

Comments
 (0)