From 896e6dae0ed745ea30ad563949c426958ffc245f Mon Sep 17 00:00:00 2001
From: Julian Prieber <60265788+JulianPrieber@users.noreply.github.com>
Date: Wed, 25 Oct 2023 18:37:32 +0200
Subject: [PATCH] Improve function
---
app/Http/Livewire/UserTable.php | 8 ++--
resources/views/panel/users.blade.php | 65 ++++++++++++++++++++++++---
2 files changed, 64 insertions(+), 9 deletions(-)
diff --git a/app/Http/Livewire/UserTable.php b/app/Http/Livewire/UserTable.php
index f7ec6a6..cf9dfab 100644
--- a/app/Http/Livewire/UserTable.php
+++ b/app/Http/Livewire/UserTable.php
@@ -67,9 +67,9 @@ class UserTable extends DataTableComponent
'id' => $row->id
]);
if ($row->email_verified_at == '') {
- return '' . __('messages.Pending') . '';
+ return '' . __('messages.Pending') . '';
} else {
- return '' . __('messages.Verified') . '';
+ return '' . __('messages.Verified') . '';
}
}
} else {
@@ -85,9 +85,9 @@ class UserTable extends DataTableComponent
} else {
$route = route('blockUser', ['block' => $row->block, 'id' => $row->id]);
if ($row->block === 'yes') {
- $badge = ''.__('messages.Pending').'';
+ $badge = ''.__('messages.Pending').'';
} elseif ($row->block === 'no') {
- $badge = ''.__('messages.Approved').'';
+ $badge = ''.__('messages.Approved').'';
}
return "$badge";
}
diff --git a/resources/views/panel/users.blade.php b/resources/views/panel/users.blade.php
index 6f46655..a18a0f2 100755
--- a/resources/views/panel/users.blade.php
+++ b/resources/views/panel/users.blade.php
@@ -27,6 +27,7 @@
+ {{__('messages.Add new user')}}
-
+
+
+
+