diff --git a/app/Livewire/Auth/Logout.php b/app/Livewire/Auth/Logout.php
index 9e2c899..bb6c935 100644
--- a/app/Livewire/Auth/Logout.php
+++ b/app/Livewire/Auth/Logout.php
@@ -7,6 +7,11 @@
class Logout extends Component
{
+ public function mount()
+ {
+ $this->logout();
+ }
+
public function logout()
{
Auth::logout();
@@ -14,9 +19,4 @@ public function logout()
session()->regenerate();
$this->redirect(route('home'), navigate: true);
}
-
- public function render()
- {
- return view('livewire.auth.logout');
- }
}
diff --git a/app/Livewire/Features/LanguageSwitcher.php b/app/Livewire/Features/LanguageSwitcher.php
index af33ddf..53ad0f8 100644
--- a/app/Livewire/Features/LanguageSwitcher.php
+++ b/app/Livewire/Features/LanguageSwitcher.php
@@ -21,7 +21,7 @@ public function render()
public function mount(LocalizationService $localizationService)
{
$this->selectedLanguage = $localizationService->getAppLocale();
- $this->languages = collect(Config::get('app.locales'));
+ $this->languages = Config::get('app.locales');
}
public function updatedSelectedLanguage(LocalizationService $localizationService)
@@ -29,6 +29,6 @@ public function updatedSelectedLanguage(LocalizationService $localizationService
$localizationService->updateCurrentlySelectedLanguage(Auth::id(), $this->selectedLanguage);
$localizationService->setAppLocale($this->selectedLanguage);
- return $this->redirect('/', navigate: true);
+ return $this->redirect(request()->header('Referer'), navigate: true);
}
}
diff --git a/app/Livewire/Features/Navbar.php b/app/Livewire/Features/Navbar.php
new file mode 100644
index 0000000..b35ba51
--- /dev/null
+++ b/app/Livewire/Features/Navbar.php
@@ -0,0 +1,13 @@
+ 'Welcome to CyberNexus, :username! Thank you for registering:)',
],
'info' => [
- 'no_notifications_available' => 'There aren\'t any notifications',
+ 'title' => 'Notifications',
+ 'no_notifications_available' => 'No notifications available',
],
];
diff --git a/lang/hu.json b/lang/hu.json
index 429062c..5c689b9 100644
--- a/lang/hu.json
+++ b/lang/hu.json
@@ -73,8 +73,8 @@
"Hide": "Elrejt",
"Hide :name": "Elrejtés :name",
"Home": "Főoldal",
- "Account": "Fiókom",
- "Account data": "Fiók adatok",
+ "Account": "Profil",
+ "Account data": "Profil adatok",
"Dont have an account yet?": "Nincs még fiókod?",
"Already have an account?": "Van már fiókod?",
"HTTP Version Not Supported": "A HTTP-verzió nem támogatott",
diff --git a/lang/hu/notifications.php b/lang/hu/notifications.php
index f14611e..dc4f022 100644
--- a/lang/hu/notifications.php
+++ b/lang/hu/notifications.php
@@ -8,6 +8,7 @@
'success' => 'Üdvözöllek az oldalon, :username! Jó böngészést!:)',
],
'info' => [
- 'no_notifications_available' => 'Nincs új értesítés',
+ 'title' => 'Értesítések',
+ 'no_notifications_available' => 'Nincsenek értesítések',
],
];
diff --git a/resources/views/components/layouts/app.blade.php b/resources/views/components/layouts/app.blade.php
index fd0c05f..e310040 100644
--- a/resources/views/components/layouts/app.blade.php
+++ b/resources/views/components/layouts/app.blade.php
@@ -14,13 +14,13 @@
class="flex flex-col overflow-x-hidden transition-all duration-300 bg-center bg-default md:text-xl lg:text-2xl text-primary-500">
{{-- Toast messages --}}
-
+
{{-- Email notification --}}
{{-- Navbar --}}
-
+ @livewire('features.navbar')
{{-- Main content --}}
diff --git a/resources/views/components/navigation/footer.blade.php b/resources/views/components/navigation/footer.blade.php
index 8945630..af2a651 100644
--- a/resources/views/components/navigation/footer.blade.php
+++ b/resources/views/components/navigation/footer.blade.php
@@ -41,7 +41,7 @@ class="btn bg-primary-100 hover:bg-surface-100 hover:text-primary-100 text-surfa