diff --git a/app/View/Components/AccountStatus.php b/app/View/Components/AccountStatus.php new file mode 100644 index 0000000..0c6bf6f --- /dev/null +++ b/app/View/Components/AccountStatus.php @@ -0,0 +1,31 @@ +user = User::findOrFail($userId); + } + + /** + * Get the view / contents that represent the component. + * + * @return \Illuminate\Contracts\View\View|\Closure|string + */ + public function render() + { + return view('components.account-status'); + } +} diff --git a/resources/views/components/account-status.blade.php b/resources/views/components/account-status.blade.php new file mode 100644 index 0000000..6baeb83 --- /dev/null +++ b/resources/views/components/account-status.blade.php @@ -0,0 +1,15 @@ + + + @if ($user->isBanned()) + {{__('Suspended')}} + @else + {{__('Active')}} + @endif + + @if(!is_null($user->email_verified_at)) + {{ __('Verified Email') }} + @else + {{ __('Unverified Email') }} + @endif + + diff --git a/resources/views/dashboard/administration/players.blade.php b/resources/views/dashboard/administration/players.blade.php index d9df9d7..9235d5d 100755 --- a/resources/views/dashboard/administration/players.blade.php +++ b/resources/views/dashboard/administration/players.blade.php @@ -131,11 +131,7 @@