mirror of
https://github.com/Einundzwanzig-Podcast/einundzwanzig-portal.git
synced 2025-12-11 06:46:47 +00:00
allow custom countries
This commit is contained in:
@@ -55,16 +55,15 @@ class Welcome extends Component
|
||||
{
|
||||
return view('livewire.frontend.welcome', [
|
||||
'countries' => Country::query()
|
||||
->select('id', 'name', 'code')
|
||||
->orderBy('name')
|
||||
->get()
|
||||
->map(function (Country $country) {
|
||||
$country->name = config('countries.emoji_flags')[str($country->code)
|
||||
->upper()
|
||||
->toString()].' '.$country->name;
|
||||
->select('id', 'name', 'code')
|
||||
->orderBy('name')
|
||||
->get()
|
||||
->map(function (Country $country) {
|
||||
$flag = config('countries.emoji_flags')[str($country->code)->upper()->toString()] ?? '';
|
||||
$country->name = $flag . ' ' . $country->name;
|
||||
|
||||
return $country;
|
||||
}),
|
||||
return $country;
|
||||
}),
|
||||
])->layout('layouts.guest', [
|
||||
'SEOData' => new SEOData(
|
||||
title: __('Welcome'),
|
||||
|
||||
Reference in New Issue
Block a user