Skip to content

Commit 636e552

Browse files
author
Sebastian Fix
committed
wip
1 parent 3f62380 commit 636e552

5 files changed

Lines changed: 23 additions & 2 deletions

File tree

app/Models/Configuration.php

Lines changed: 13 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,9 +11,21 @@ class Configuration extends Model
1111
use HasFactory;
1212
use HasTranslations;
1313

14-
public array $translatable = ['footer'];
14+
public array $translatable = [
15+
'contact',
16+
'terms',
17+
'imprint',
18+
'privacy',
19+
'links',
20+
'footer',
21+
];
1522

1623
protected $casts = [
24+
'contact' => 'json',
25+
'terms' => 'json',
26+
'imprint' => 'json',
27+
'privacy' => 'json',
28+
'links' => 'json',
1729
'footer' => 'json',
1830
];
1931
}

database/migrations/2025_06_23_225051_create_configurations_table.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@ public function up(): void
1818
$table->json('terms')->nullable();
1919
$table->json('imprint')->nullable();
2020
$table->json('privacy')->nullable();
21+
$table->json('links')->nullable();
2122
$table->json('footer')->nullable();
2223
$table->timestamps();
2324
});

database/seeders/Codebar/ConfigurationsTableSeeder.php

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,10 @@ public function run(): void
1818
'footer' => [
1919
LocaleEnum::DE->value => 'codebar Solutions AG',
2020
],
21+
'links' => [
22+
'linkedin' => 'https://www.linkedin.com/company/codebarag',
23+
'github' => 'https://github.com/orgs/codebar-ag',
24+
],
2125
]);
2226
}
2327
}

database/seeders/Paperflakes/ConfigurationsTableSeeder.php

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,10 @@ public function run(): void
1818
'footer' => [
1919
LocaleEnum::DE->value => 'paperflakes AG',
2020
],
21+
'links' => [
22+
'linkedin' => 'https://www.linkedin.com/company/paperflakes',
23+
'github' => 'https://github.com/orgs/paperflakes-ag',
24+
],
2125
]);
2226
}
2327
}

resources/views/components/list-image-card.blade.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ class="text-gray-500 hover:text-gray-900">
5454
@break
5555

5656
@case('email')
57-
<a href="{{ $url }}" target="_blank" title="E-Mail" aria-label="E-Mail"
57+
<a href="mailto:{{ $url }}" title="E-Mail" aria-label="E-Mail"
5858
class="text-gray-500 hover:text-gray-900">
5959
<svg xmlns="http://www.w3.org/2000/svg" class="w-4 h-4" fill="none"
6060
stroke="currentColor" stroke-width="2"

0 commit comments

Comments
 (0)