From 525112cc64456bb19e9b9d6641c2e14577354add Mon Sep 17 00:00:00 2001 From: tersiswilvin <52929976+tersiswilvin@users.noreply.github.com> Date: Tue, 16 Aug 2022 20:18:29 -0700 Subject: [PATCH] Updated New Panel Updated New Admin Panel. --- public/css/NewAdminCSS.css | 28 +++++++++++++++-- resources/views/admin/index.blade.php | 45 +++++++++++++++++++++++++++ 2 files changed, 70 insertions(+), 3 deletions(-) diff --git a/public/css/NewAdminCSS.css b/public/css/NewAdminCSS.css index eb6ba4e..1192291 100644 --- a/public/css/NewAdminCSS.css +++ b/public/css/NewAdminCSS.css @@ -116,17 +116,39 @@ h6 { .AdminPanel #Body { background-color: #111; } -.AdminPanel .MainHeader { +.AdminPanel .MainHeader, .AdminPanel .Stats-Wrapper { text-align: center; } +.AdminPanel .StatsContainer { + margin: 15px 15px 0 15px; + padding: 15px; + border: 1px dotted #ff7300; + background-color: #080808; +} +.AdminPanel .Stats { + font-size: 16px; + font-weight: 400; + color: #a7a7a7; +} +.AdminPanel .Stats.Counter { + font-weight: 600; + color: #fff; +} +.AdminPanel .Stat-Separator { + width: 50%; + height: 1px; + background-color: #555; + display: block; + margin: auto; +} @media (max-width:1000px) { .NewPanel .AdminSubHeader ul { width: 750px; } } -@media (max-width:970px) { - #Body, #BodyWrapper { +@media (max-width:990px) { + #Body, #BodyWrapper, #MasterContainer { width: 100% !important; padding: 0; } diff --git a/resources/views/admin/index.blade.php b/resources/views/admin/index.blade.php index 6c45448..aab0bcd 100644 --- a/resources/views/admin/index.blade.php +++ b/resources/views/admin/index.blade.php @@ -9,6 +9,51 @@

Administration Area

+
+
+ +{{ App\Models\User::count() }} + + + Registered + +
+
+ +{{ App\Models\User::where('admin', true)->count() }} + + + Admin(s) + +
+
+ +{{ App\Models\User::where('last_seen', '>', Carbon\Carbon::now()->subDay()->toDateTimeString())->count(); }} + + + Online within the past day. + +
+
+ +
+
+ +{{ App\Models\InviteKey::count() }} + + + Invite Keys + +
+
+ +{{ App\Models\InviteKey::where('active', true)->count() }} + + + Unused Invite Keys + +
+
@endsection