@@ -20,11 +20,13 @@ public function run($parameters = [])
2020
2121 $ now = Carbon::now ();
2222
23+ $ defaultLocale = $ parameters ['default_locale ' ] ?? app ()->getLocale ();
24+
2325 DB ::table ('attributes ' )->insert ([
2426 [
2527 'id ' => '1 ' ,
2628 'code ' => 'title ' ,
27- 'name ' => ' Title ' ,
29+ 'name ' => trans ( ' installer::app.seeders.attributes.title ' , [], $ defaultLocale ) ,
2830 'type ' => 'text ' ,
2931 'entity_type ' => 'leads ' ,
3032 'lookup_type ' => NULL ,
@@ -39,7 +41,7 @@ public function run($parameters = [])
3941 ], [
4042 'id ' => '2 ' ,
4143 'code ' => 'description ' ,
42- 'name ' => ' Description ' ,
44+ 'name ' => trans ( ' installer::app.seeders.attributes.description ' , [], $ defaultLocale ) ,
4345 'type ' => 'textarea ' ,
4446 'entity_type ' => 'leads ' ,
4547 'lookup_type ' => NULL ,
@@ -54,7 +56,7 @@ public function run($parameters = [])
5456 ], [
5557 'id ' => '3 ' ,
5658 'code ' => 'lead_value ' ,
57- 'name ' => ' Lead Value ' ,
59+ 'name ' => trans ( ' installer::app.seeders.attributes.lead-value ' , [], $ defaultLocale ) ,
5860 'type ' => 'price ' ,
5961 'entity_type ' => 'leads ' ,
6062 'lookup_type ' => NULL ,
@@ -69,7 +71,7 @@ public function run($parameters = [])
6971 ], [
7072 'id ' => '4 ' ,
7173 'code ' => 'lead_source_id ' ,
72- 'name ' => ' Source ' ,
74+ 'name ' => trans ( ' installer::app.seeders.attributes.source ' , [], $ defaultLocale ) ,
7375 'type ' => 'select ' ,
7476 'entity_type ' => 'leads ' ,
7577 'lookup_type ' => 'lead_sources ' ,
@@ -84,7 +86,7 @@ public function run($parameters = [])
8486 ], [
8587 'id ' => '5 ' ,
8688 'code ' => 'lead_type_id ' ,
87- 'name ' => ' Type ' ,
89+ 'name ' => trans ( ' installer::app.seeders.attributes.type ' , [], $ defaultLocale ) ,
8890 'type ' => 'select ' ,
8991 'entity_type ' => 'leads ' ,
9092 'lookup_type ' => 'lead_types ' ,
@@ -99,7 +101,7 @@ public function run($parameters = [])
99101 ], [
100102 'id ' => '6 ' ,
101103 'code ' => 'user_id ' ,
102- 'name ' => ' Sales Owner ' ,
104+ 'name ' => trans ( ' installer::app.seeders.attributes.sales-owner ' , [], $ defaultLocale ) ,
103105 'type ' => 'select ' ,
104106 'entity_type ' => 'leads ' ,
105107 'lookup_type ' => 'users ' ,
@@ -114,7 +116,7 @@ public function run($parameters = [])
114116 ], [
115117 'id ' => '7 ' ,
116118 'code ' => 'expected_close_date ' ,
117- 'name ' => ' Expected Close Date ' ,
119+ 'name ' => trans ( ' installer::app.seeders.attributes.expected-close-date ' , [], $ defaultLocale ) ,
118120 'type ' => 'date ' ,
119121 'entity_type ' => 'leads ' ,
120122 'lookup_type ' => NULL ,
@@ -129,7 +131,7 @@ public function run($parameters = [])
129131 ], [
130132 'id ' => '9 ' ,
131133 'code ' => 'name ' ,
132- 'name ' => ' Name ' ,
134+ 'name ' => trans ( ' installer::app.seeders.attributes.name ' , [], $ defaultLocale ) ,
133135 'type ' => 'text ' ,
134136 'entity_type ' => 'persons ' ,
135137 'lookup_type ' => NULL ,
@@ -144,7 +146,7 @@ public function run($parameters = [])
144146 ], [
145147 'id ' => '10 ' ,
146148 'code ' => 'emails ' ,
147- 'name ' => ' Emails ' ,
149+ 'name ' => trans ( ' installer::app.seeders.attributes.emails ' , [], $ defaultLocale ) ,
148150 'type ' => 'email ' ,
149151 'entity_type ' => 'persons ' ,
150152 'lookup_type ' => NULL ,
@@ -159,7 +161,7 @@ public function run($parameters = [])
159161 ], [
160162 'id ' => '11 ' ,
161163 'code ' => 'contact_numbers ' ,
162- 'name ' => ' Contact Numbers ' ,
164+ 'name ' => trans ( ' installer::app.seeders.attributes.contact-numbers ' , [], $ defaultLocale ) ,
163165 'type ' => 'phone ' ,
164166 'entity_type ' => 'persons ' ,
165167 'lookup_type ' => NULL ,
@@ -174,7 +176,7 @@ public function run($parameters = [])
174176 ], [
175177 'id ' => '12 ' ,
176178 'code ' => 'organization_id ' ,
177- 'name ' => ' Organization ' ,
179+ 'name ' => trans ( ' installer::app.seeders.attributes.organization ' , [], $ defaultLocale ) ,
178180 'type ' => 'lookup ' ,
179181 'entity_type ' => 'persons ' ,
180182 'lookup_type ' => 'organizations ' ,
@@ -189,7 +191,7 @@ public function run($parameters = [])
189191 ], [
190192 'id ' => '13 ' ,
191193 'code ' => 'name ' ,
192- 'name ' => ' Name ' ,
194+ 'name ' => trans ( ' installer::app.seeders.attributes.name ' , [], $ defaultLocale ) ,
193195 'type ' => 'text ' ,
194196 'entity_type ' => 'organizations ' ,
195197 'lookup_type ' => NULL ,
@@ -204,7 +206,7 @@ public function run($parameters = [])
204206 ], [
205207 'id ' => '14 ' ,
206208 'code ' => 'address ' ,
207- 'name ' => ' Address ' ,
209+ 'name ' => trans ( ' installer::app.seeders.attributes.address ' , [], $ defaultLocale ) ,
208210 'type ' => 'address ' ,
209211 'entity_type ' => 'organizations ' ,
210212 'lookup_type ' => NULL ,
@@ -219,7 +221,7 @@ public function run($parameters = [])
219221 ], [
220222 'id ' => '15 ' ,
221223 'code ' => 'name ' ,
222- 'name ' => ' Name ' ,
224+ 'name ' => trans ( ' installer::app.seeders.attributes.name ' , [], $ defaultLocale ) ,
223225 'type ' => 'text ' ,
224226 'entity_type ' => 'products ' ,
225227 'lookup_type ' => NULL ,
@@ -234,7 +236,7 @@ public function run($parameters = [])
234236 ], [
235237 'id ' => '16 ' ,
236238 'code ' => 'description ' ,
237- 'name ' => ' Description ' ,
239+ 'name ' => trans ( ' installer::app.seeders.attributes.description ' , [], $ defaultLocale ) ,
238240 'type ' => 'textarea ' ,
239241 'entity_type ' => 'products ' ,
240242 'lookup_type ' => NULL ,
@@ -249,7 +251,7 @@ public function run($parameters = [])
249251 ], [
250252 'id ' => '17 ' ,
251253 'code ' => 'sku ' ,
252- 'name ' => ' SKU ' ,
254+ 'name ' => trans ( ' installer::app.seeders.attributes.sku ' , [], $ defaultLocale ) ,
253255 'type ' => 'text ' ,
254256 'entity_type ' => 'products ' ,
255257 'lookup_type ' => NULL ,
@@ -264,7 +266,7 @@ public function run($parameters = [])
264266 ], [
265267 'id ' => '18 ' ,
266268 'code ' => 'quantity ' ,
267- 'name ' => ' Quantity ' ,
269+ 'name ' => trans ( ' installer::app.seeders.attributes.quantity ' , [], $ defaultLocale ) ,
268270 'type ' => 'text ' ,
269271 'entity_type ' => 'products ' ,
270272 'lookup_type ' => NULL ,
@@ -279,7 +281,7 @@ public function run($parameters = [])
279281 ], [
280282 'id ' => '19 ' ,
281283 'code ' => 'price ' ,
282- 'name ' => ' Price ' ,
284+ 'name ' => trans ( ' installer::app.seeders.attributes.price ' , [], $ defaultLocale ) ,
283285 'type ' => 'text ' ,
284286 'entity_type ' => 'products ' ,
285287 'lookup_type ' => NULL ,
@@ -294,7 +296,7 @@ public function run($parameters = [])
294296 ], [
295297 'id ' => '20 ' ,
296298 'code ' => 'user_id ' ,
297- 'name ' => ' Sales Owner ' ,
299+ 'name ' => trans ( ' installer::app.seeders.attributes.sales-owner ' , [], $ defaultLocale ) ,
298300 'type ' => 'select ' ,
299301 'entity_type ' => 'quotes ' ,
300302 'lookup_type ' => 'users ' ,
@@ -309,7 +311,7 @@ public function run($parameters = [])
309311 ], [
310312 'id ' => '21 ' ,
311313 'code ' => 'subject ' ,
312- 'name ' => ' Subject ' ,
314+ 'name ' => trans ( ' installer::app.seeders.attributes.subject ' , [], $ defaultLocale ) ,
313315 'type ' => 'text ' ,
314316 'entity_type ' => 'quotes ' ,
315317 'lookup_type ' => NULL ,
@@ -324,7 +326,7 @@ public function run($parameters = [])
324326 ], [
325327 'id ' => '22 ' ,
326328 'code ' => 'description ' ,
327- 'name ' => ' Description ' ,
329+ 'name ' => trans ( ' installer::app.seeders.attributes.description ' , [], $ defaultLocale ) ,
328330 'type ' => 'textarea ' ,
329331 'entity_type ' => 'quotes ' ,
330332 'lookup_type ' => NULL ,
@@ -339,7 +341,7 @@ public function run($parameters = [])
339341 ], [
340342 'id ' => '23 ' ,
341343 'code ' => 'billing_address ' ,
342- 'name ' => ' Billing Address ' ,
344+ 'name ' => trans ( ' installer::app.seeders.attributes.billing-address ' , [], $ defaultLocale ) ,
343345 'type ' => 'address ' ,
344346 'entity_type ' => 'quotes ' ,
345347 'lookup_type ' => NULL ,
@@ -354,7 +356,7 @@ public function run($parameters = [])
354356 ], [
355357 'id ' => '24 ' ,
356358 'code ' => 'shipping_address ' ,
357- 'name ' => ' Shipping Address ' ,
359+ 'name ' => trans ( ' installer::app.seeders.attributes.shipping-address ' , [], $ defaultLocale ) ,
358360 'type ' => 'address ' ,
359361 'entity_type ' => 'quotes ' ,
360362 'lookup_type ' => NULL ,
@@ -369,7 +371,7 @@ public function run($parameters = [])
369371 ], [
370372 'id ' => '25 ' ,
371373 'code ' => 'discount_percent ' ,
372- 'name ' => ' Discount Percent ' ,
374+ 'name ' => trans ( ' installer::app.seeders.attributes.discount-percent ' , [], $ defaultLocale ) ,
373375 'type ' => 'text ' ,
374376 'entity_type ' => 'quotes ' ,
375377 'lookup_type ' => NULL ,
@@ -384,7 +386,7 @@ public function run($parameters = [])
384386 ], [
385387 'id ' => '26 ' ,
386388 'code ' => 'discount_amount ' ,
387- 'name ' => ' Discount Amount ' ,
389+ 'name ' => trans ( ' installer::app.seeders.attributes.discount-amount ' , [], $ defaultLocale ) ,
388390 'type ' => 'price ' ,
389391 'entity_type ' => 'quotes ' ,
390392 'lookup_type ' => NULL ,
@@ -399,7 +401,7 @@ public function run($parameters = [])
399401 ], [
400402 'id ' => '27 ' ,
401403 'code ' => 'tax_amount ' ,
402- 'name ' => ' Tax Amount ' ,
404+ 'name ' => trans ( ' installer::app.seeders.attributes.tax-amount ' , [], $ defaultLocale ) ,
403405 'type ' => 'price ' ,
404406 'entity_type ' => 'quotes ' ,
405407 'lookup_type ' => NULL ,
@@ -414,7 +416,7 @@ public function run($parameters = [])
414416 ], [
415417 'id ' => '28 ' ,
416418 'code ' => 'adjustment_amount ' ,
417- 'name ' => ' Adjustment Amount ' ,
419+ 'name ' => trans ( ' installer::app.seeders.attributes.adjustment-amount ' , [], $ defaultLocale ) ,
418420 'type ' => 'price ' ,
419421 'entity_type ' => 'quotes ' ,
420422 'lookup_type ' => NULL ,
@@ -429,7 +431,7 @@ public function run($parameters = [])
429431 ], [
430432 'id ' => '29 ' ,
431433 'code ' => 'sub_total ' ,
432- 'name ' => ' Sub Total ' ,
434+ 'name ' => trans ( ' installer::app.seeders.attributes.sub-total ' , [], $ defaultLocale ) ,
433435 'type ' => 'price ' ,
434436 'entity_type ' => 'quotes ' ,
435437 'lookup_type ' => NULL ,
@@ -444,7 +446,7 @@ public function run($parameters = [])
444446 ], [
445447 'id ' => '30 ' ,
446448 'code ' => 'grand_total ' ,
447- 'name ' => ' Grand Total ' ,
449+ 'name ' => trans ( ' installer::app.seeders.attributes.grand-total ' , [], $ defaultLocale ) ,
448450 'type ' => 'price ' ,
449451 'entity_type ' => 'quotes ' ,
450452 'lookup_type ' => NULL ,
@@ -459,7 +461,7 @@ public function run($parameters = [])
459461 ], [
460462 'id ' => '31 ' ,
461463 'code ' => 'expired_at ' ,
462- 'name ' => ' Expired At ' ,
464+ 'name ' => trans ( ' installer::app.seeders.attributes.expired-at ' , [], $ defaultLocale ) ,
463465 'type ' => 'date ' ,
464466 'entity_type ' => 'quotes ' ,
465467 'lookup_type ' => NULL ,
@@ -474,7 +476,7 @@ public function run($parameters = [])
474476 ], [
475477 'id ' => '32 ' ,
476478 'code ' => 'person_id ' ,
477- 'name ' => ' Person ' ,
479+ 'name ' => trans ( ' installer::app.seeders.attributes.person ' , [], $ defaultLocale ) ,
478480 'type ' => 'lookup ' ,
479481 'entity_type ' => 'quotes ' ,
480482 'lookup_type ' => 'persons ' ,
0 commit comments