Skip to content

Commit 81f6286

Browse files
author
Sebastian Fix
committed
wip
1 parent 7b713b6 commit 81f6286

7 files changed

Lines changed: 139 additions & 94 deletions

File tree

app/Actions/ViewDataAction.php

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -82,9 +82,7 @@ public function contacts(string $locale): object
8282
->get();
8383

8484
return (object) collect([
85-
ContactSectionEnum::EMPLOYEE_SERVICES,
86-
ContactSectionEnum::EMPLOYEE_PRODUCTS,
87-
ContactSectionEnum::EMPLOYEE_ADMINISTRATION,
85+
ContactSectionEnum::EMPLOYEES,
8886
ContactSectionEnum::COLLABORATIONS,
8987
ContactSectionEnum::BOARD_MEMBERS,
9088
])->mapWithKeys(function (string $section) use ($publishedContacts, $locale): array {

app/Enums/ContactSectionEnum.php

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -4,11 +4,7 @@
44

55
enum ContactSectionEnum: string
66
{
7-
const string EMPLOYEE_SERVICES = 'employee_services';
8-
9-
const string EMPLOYEE_PRODUCTS = 'employee_products';
10-
11-
const string EMPLOYEE_ADMINISTRATION = 'employee_administration';
7+
const string EMPLOYEES = 'employees';
128

139
const string COLLABORATIONS = 'collaborations';
1410

database/seeders/Codebar/ContactsTableSeeder.php

Lines changed: 87 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -16,8 +16,8 @@ public function run(): void
1616
'name' => 'Sebastian Bürgin-Fix',
1717
'published' => true,
1818
'sections' => [
19-
ContactSectionEnum::EMPLOYEE_SERVICES => [
20-
'key' => ContactSectionEnum::EMPLOYEE_SERVICES,
19+
ContactSectionEnum::EMPLOYEES => [
20+
'key' => ContactSectionEnum::EMPLOYEES,
2121
'role' => [
2222
'de_CH' => 'Software-Architekt',
2323
'en_CH' => 'Software-Engineer',
@@ -38,45 +38,115 @@ public function run(): void
3838
Contact::updateOrCreate(
3939
['id' => 2],
4040
[
41-
'name' => 'Rhys Lees',
41+
'name' => 'Melanie Bürgin-Fix',
42+
'published' => true,
43+
'sections' => [
44+
ContactSectionEnum::EMPLOYEES => [
45+
'key' => ContactSectionEnum::EMPLOYEES,
46+
'role' => [
47+
'de_CH' => 'Administration',
48+
'en_CH' => 'Administration',
49+
],
50+
],
51+
ContactSectionEnum::BOARD_MEMBERS => [
52+
'key' => ContactSectionEnum::BOARD_MEMBERS,
53+
],
54+
],
55+
'icons' => [
56+
'email' => 'melanie.buergin@codebar.ch',
57+
'linkedin' => 'https://www.linkedin.com/in/melanie-buergin',
58+
],
59+
'image' => 'https://res.cloudinary.com/codebar/image/upload/w_400,h_400,f_auto,q_auto/www-paperflakes-ch/people/codebar.webp',
60+
]
61+
);
62+
63+
Contact::updateOrCreate(
64+
['id' => 3],
65+
[
66+
'name' => 'Tobias Brogle',
67+
'published' => true,
68+
'sections' => [
69+
ContactSectionEnum::EMPLOYEES => [
70+
'key' => ContactSectionEnum::EMPLOYEES,
71+
'role' => [
72+
'de_CH' => 'Applikationsentwickler',
73+
'en_CH' => 'Application Developer',
74+
],
75+
],
76+
],
77+
'icons' => [
78+
'email' => 'tobias.brogle@codebar.ch',
79+
'linkedin' => null,
80+
],
81+
'image' => 'https://res.cloudinary.com/codebar/image/upload/w_400,h_400,f_auto,q_auto/www-paperflakes-ch/people/codebar.webp',
82+
]
83+
);
84+
85+
Contact::updateOrCreate(
86+
['id' => 4],
87+
[
88+
'name' => 'Alexander Christoph Boll',
89+
'published' => true,
90+
'sections' => [
91+
ContactSectionEnum::EMPLOYEES => [
92+
'key' => ContactSectionEnum::EMPLOYEES,
93+
'role' => [
94+
'de_CH' => 'Produktentwickler',
95+
'en_CH' => 'Product Developer',
96+
],
97+
],
98+
],
99+
'icons' => [
100+
'email' => 'alexander.boll@codebar.ch',
101+
'linkedin' => 'https://www.linkedin.com/in/alexanderboll',
102+
],
103+
'image' => 'https://res.cloudinary.com/codebar/image/upload/w_400,h_400,f_auto,q_auto/www-paperflakes-ch/people/codebar.webp',
104+
]
105+
);
106+
107+
Contact::updateOrCreate(
108+
['id' => 5],
109+
[
110+
'name' => 'Dominique Ernst',
42111
'published' => false,
43112
'sections' => [
44-
ContactSectionEnum::EMPLOYEE_SERVICES => [
45-
'key' => ContactSectionEnum::EMPLOYEE_SERVICES,
113+
ContactSectionEnum::EMPLOYEES => [
114+
'key' => ContactSectionEnum::EMPLOYEES,
46115
'role' => [
47-
'de_CH' => 'Entwickler',
48-
'en_CH' => 'Developer',
116+
'de_CH' => 'Projektleiter',
117+
'en_CH' => 'Project Manager',
49118
],
50119
],
51120
],
52121
'icons' => [
53-
'email' => 'rhys.leess@codebar.ch',
54-
'linkedin' => 'https://www.linkedin.com/in/rhys-lees',
122+
'email' => 'info@paperflakes.ch',
123+
'website' => 'https://www.paperflakes.ch',
55124
],
56-
'image' => 'https://res.cloudinary.com/codebar/image/upload/w_400,h_400,f_auto,q_auto/www-paperflakes-ch/people/r_lees_e_background_removal_f_png.webp',
125+
'image' => 'https://res.cloudinary.com/codebar/image/upload/w_400,h_400,f_auto,q_auto/www-paperflakes-ch/people/codebar.webp',
57126
]
58127
);
59128

60129
Contact::updateOrCreate(
61-
['id' => 7],
130+
['id' => 6],
62131
[
63-
'name' => 'Sebastian Bürgin-Fix',
132+
'name' => 'PST GmbH',
64133
'published' => true,
65134
'sections' => [
66135
ContactSectionEnum::COLLABORATIONS => [
67136
'key' => ContactSectionEnum::COLLABORATIONS,
68137
'role' => [
69-
'de_CH' => 'paperflakes AG',
70-
'en_CH' => 'paperflakes AG',
138+
'de_CH' => 'Finanzen',
139+
'en_CH' => 'Finance',
71140
],
72141
],
73142
],
74143
'icons' => [
75-
'email' => 'info@paperflakes.ch',
76-
'website' => 'https://www.paperflakes.ch',
144+
'email' => 'info@pstgmbh.ch',
145+
'website' => 'https://www.pstgmbh.ch',
77146
],
78-
'image' => 'https://res.cloudinary.com/codebar/image/upload/w_400,h_400,f_auto,q_auto/www-paperflakes-ch/people/paperflakes.webp',
147+
'image' => 'https://res.cloudinary.com/codebar/image/upload/w_400,h_400,f_auto,q_auto/www-paperflakes-ch/people/codebar.webp',
79148
]
80149
);
150+
81151
}
82152
}

database/seeders/Paperflakes/ContactsTableSeeder.php

Lines changed: 42 additions & 39 deletions
Original file line numberDiff line numberDiff line change
@@ -16,20 +16,13 @@ public function run(): void
1616
'name' => 'Sebastian Bürgin-Fix',
1717
'published' => true,
1818
'sections' => [
19-
ContactSectionEnum::EMPLOYEE_SERVICES => [
20-
'key' => ContactSectionEnum::EMPLOYEE_SERVICES,
21-
'role' => [
22-
'de_CH' => 'DMS/ECM Spezialist',
23-
'en_CH' => 'DMS/ECM Specialist',
24-
],
25-
],
26-
/* ContactSectionEnum::EMPLOYEE_PRODUCTS => [
27-
'key' => ContactSectionEnum::EMPLOYEE_PRODUCTS,
19+
ContactSectionEnum::EMPLOYEES => [
20+
'key' => ContactSectionEnum::EMPLOYEES,
2821
'role' => [
2922
'de_CH' => 'Software-Architekt',
3023
'en_CH' => 'Software-Engineer',
3124
],
32-
],*/
25+
],
3326
ContactSectionEnum::BOARD_MEMBERS => [
3427
'key' => ContactSectionEnum::BOARD_MEMBERS,
3528
],
@@ -48,8 +41,8 @@ public function run(): void
4841
'name' => 'Mischa Lanz',
4942
'published' => true,
5043
'sections' => [
51-
ContactSectionEnum::EMPLOYEE_SERVICES => [
52-
'key' => ContactSectionEnum::EMPLOYEE_SERVICES,
44+
ContactSectionEnum::EMPLOYEES => [
45+
'key' => ContactSectionEnum::EMPLOYEES,
5346
'role' => [
5447
'de_CH' => 'zunscan.ch',
5548
'en_CH' => 'zunscan.ch',
@@ -73,6 +66,13 @@ public function run(): void
7366
'name' => 'Dominique Ernst',
7467
'published' => true,
7568
'sections' => [
69+
ContactSectionEnum::EMPLOYEES => [
70+
'key' => ContactSectionEnum::EMPLOYEES,
71+
'role' => [
72+
'de_CH' => 'DMS/ECM Berater',
73+
'en_CH' => 'DMS/ECM Consultant',
74+
],
75+
],
7676
ContactSectionEnum::BOARD_MEMBERS => [
7777
'key' => ContactSectionEnum::BOARD_MEMBERS,
7878
],
@@ -88,44 +88,47 @@ public function run(): void
8888
Contact::updateOrCreate(
8989
['id' => 4],
9090
[
91-
'name' => 'Rhys Lees',
92-
'published' => false,
91+
'name' => 'Katja Lanz',
92+
'published' => true,
9393
'sections' => [
94-
ContactSectionEnum::EMPLOYEE_PRODUCTS => [
95-
'key' => ContactSectionEnum::EMPLOYEE_PRODUCTS,
94+
ContactSectionEnum::EMPLOYEES => [
95+
'key' => ContactSectionEnum::EMPLOYEES,
9696
'role' => [
97-
'de_CH' => 'Entwickler',
98-
'en_CH' => 'Developer',
97+
'de_CH' => 'HR',
98+
'en_CH' => 'HR',
9999
],
100100
],
101101
],
102102
'icons' => [
103-
'email' => 'rhys.leess@paperflakes.ch',
104-
'linkedin' => 'https://www.linkedin.com/in/rhys-lees',
103+
'email' => 'katja.lanz@paperflakes.ch',
104+
'linkedin' => 'https://www.linkedin.com/in/katja-lanz-a92372149/',
105105
],
106-
'image' => 'https://res.cloudinary.com/codebar/image/upload/w_400,h_400,f_auto,q_auto/www-paperflakes-ch/people/r_lees_e_background_removal_f_png.webp',
106+
'image' => 'https://res.cloudinary.com/codebar/image/upload/w_400,h_400,f_auto,q_auto/www-paperflakes-ch/people/652d4179a3494dedacf6555a_Katja_Jacke.webp',
107107
]
108108
);
109109

110110
Contact::updateOrCreate(
111111
['id' => 5],
112112
[
113-
'name' => 'Katja Lanz',
113+
'name' => 'Melanie Bürgin-Fix',
114114
'published' => true,
115115
'sections' => [
116-
ContactSectionEnum::EMPLOYEE_ADMINISTRATION => [
117-
'key' => ContactSectionEnum::EMPLOYEE_ADMINISTRATION,
116+
ContactSectionEnum::EMPLOYEES => [
117+
'key' => ContactSectionEnum::EMPLOYEES,
118118
'role' => [
119-
'de_CH' => 'Finanzen & HR',
120-
'en_CH' => 'Finance & HR',
119+
'de_CH' => 'Administration',
120+
'en_CH' => 'Administration',
121121
],
122122
],
123+
ContactSectionEnum::BOARD_MEMBERS => [
124+
'key' => ContactSectionEnum::BOARD_MEMBERS,
125+
],
123126
],
124127
'icons' => [
125-
'email' => 'katja.lanz@paperflakes.ch',
126-
'linkedin' => 'https://www.linkedin.com/in/katja-lanz-a92372149/',
128+
'email' => 'melanie.buergin@paperflakes.ch',
129+
'linkedin' => 'https://www.linkedin.com/in/melanie-buergin',
127130
],
128-
'image' => 'https://res.cloudinary.com/codebar/image/upload/w_400,h_400,f_auto,q_auto/www-paperflakes-ch/people/652d4179a3494dedacf6555a_Katja_Jacke.webp',
131+
'image' => 'https://res.cloudinary.com/codebar/image/upload/w_400,h_400,f_auto,q_auto/www-paperflakes-ch/people/paperflakes.webp',
129132
]
130133
);
131134

@@ -135,8 +138,8 @@ public function run(): void
135138
'name' => 'DR-G2110',
136139
'published' => true,
137140
'sections' => [
138-
ContactSectionEnum::EMPLOYEE_ADMINISTRATION => [
139-
'key' => ContactSectionEnum::EMPLOYEE_ADMINISTRATION,
141+
ContactSectionEnum::EMPLOYEES => [
142+
'key' => ContactSectionEnum::EMPLOYEES,
140143
'role' => [
141144
'de_CH' => 'Digitalisierungs-Beauftragter',
142145
'en_CH' => 'Head of Digital Transformation',
@@ -149,29 +152,29 @@ public function run(): void
149152
);
150153

151154
Contact::updateOrCreate(
152-
['id' => 7],
155+
['id' => 6],
153156
[
154-
'name' => 'Sebastian Bürgin-Fix',
157+
'name' => 'PST GmbH',
155158
'published' => true,
156159
'sections' => [
157160
ContactSectionEnum::COLLABORATIONS => [
158161
'key' => ContactSectionEnum::COLLABORATIONS,
159162
'role' => [
160-
'de_CH' => 'codebar Solutions AG',
161-
'en_CH' => 'codebar Solutions AG',
163+
'de_CH' => 'Finanzen',
164+
'en_CH' => 'Finance',
162165
],
163166
],
164167
],
165168
'icons' => [
166-
'email' => 'info@codebar.ch',
167-
'website' => 'https://www.codebar.ch',
169+
'email' => 'info@pstgmbh.ch',
170+
'website' => 'https://www.pstgmbh.ch',
168171
],
169-
'image' => 'https://res.cloudinary.com/codebar/image/upload/w_400,h_400,f_auto,q_auto/www-paperflakes-ch/people/codebar.webp',
172+
'image' => 'https://res.cloudinary.com/codebar/image/upload/w_400,h_400,f_auto,q_auto/www-paperflakes-ch/people/paperflakes.webp',
170173
]
171174
);
172175

173176
Contact::updateOrCreate(
174-
['id' => 8],
177+
['id' => 7],
175178
[
176179
'name' => 'Dario Wieland',
177180
'published' => true,

lang/de_CH.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@
1414
"Deutsch": "Deutsch",
1515
"DocuWare Silver Partner": "DocuWare Silber Partner",
1616
"Email": "E-Mail",
17+
"Employees": "Mitarbeitende",
1718
"EN": "EN",
1819
"English": "English",
1920
"Google Maps": "Google Maps",
@@ -44,4 +45,4 @@
4445
"Update to english language": "Auf Englisch wechseln",
4546
"Update to german language": "Auf Deutsch wechseln",
4647
"Zefix": "Zefix"
47-
}
48+
}

0 commit comments

Comments
 (0)