From eeedd7913fa2ed0d001980ad87803cb6282c7d94 Mon Sep 17 00:00:00 2001 From: Daniel Supernault Date: Tue, 5 Feb 2019 13:52:33 -0700 Subject: [PATCH] Update admin dashboard view --- resources/views/admin/home.blade.php | 201 +++++++++++++++++---------- 1 file changed, 128 insertions(+), 73 deletions(-) diff --git a/resources/views/admin/home.blade.php b/resources/views/admin/home.blade.php index c8cf6e62..31d882b5 100644 --- a/resources/views/admin/home.blade.php +++ b/resources/views/admin/home.blade.php @@ -1,4 +1,4 @@ -@extends('admin.partial.template') +@extends('admin.partial.template-full') @section('section')
@@ -7,129 +7,135 @@
-
- Hello, {{Auth::user()->name}} -
-
-
-
-

0

-

Alerts

+
+
+

Alerts

+

0

+
-
-
-

{{App\Util\Lexer\PrettyNumber::convert(DB::table('failed_jobs')->where('failed_at', '>=', \Carbon\Carbon::now()->subDay())->count())}}

-

Failed Jobs (24h)

+
+
+

Failed Jobs (24h)

+

{{$data['failedjobs']['count']}}

+
- @php($reports = App\Report::whereNull('admin_seen')->count())
-
-
-

{{App\Util\Lexer\PrettyNumber::convert($reports)}}

-

Reports

-
-
-
-
- - @php($statuses = App\Status::whereNull('in_reply_to_id')->whereNull('reblog_of_id')->count()) -
-
-
-
-

{{App\Util\Lexer\PrettyNumber::convert($statuses)}}

-

Statuses

-
-
-
- - @php($replies = App\Status::whereNotNull('in_reply_to_id')->count()) -
-
-
-

{{App\Util\Lexer\PrettyNumber::convert($replies)}}

-

Replies

-
-
-
-
-
-
-

{{App\Util\Lexer\PrettyNumber::convert(App\Status::whereNotNull('reblog_of_id')->count())}}

-

Shares (Reblogs)

+
+
+

Reports

+

{{$data['reports']['count']}}

+
-
-
-

{{App\Util\Lexer\PrettyNumber::convert(App\Like::count())}}

-

Likes

+
+
+

Statuses

+

{{$data['statuses']['count']}}

+
-
-
-

{{App\Util\Lexer\PrettyNumber::convert(App\Profile::count())}}

-

Profiles

+
+
+

Replies

+

{{$data['replies']['count']}}

+
-
-
-
-

{{App\Util\Lexer\PrettyNumber::convert(App\User::count())}}

-

Users

+
+
+

Shares (Reblogs)

+

{{$data['shares']['count']}}

+
-
-
-

{{App\Util\Lexer\PrettyNumber::convert(App\Status::whereNotNull('url')->distinct('url')->count())}}

-

Remote Instances

+
+
+

Likes

+

{{$data['likes']['count']}}

+
-
-
-

{{App\Util\Lexer\PrettyNumber::convert(App\Media::count())}}

-

Photos Uploaded

+
+
+

Profiles

+

{{$data['profiles']['count']}}

+ +
+
+ +
+
+
+

Users

+

{{$data['users']['count']}}

+
+ +
+
+
+ +
+
+
+
+

Remote Instances

+

{{$data['instances']['count']}}

+
+ +
+
+ +
+
+
+

Photos Uploaded

+

{{$data['media']['count']}}

+
+
-
-
-

{{App\Media::sum('size')}} bytes

-

Storage Used

+
+
+

Storage Used

+

{{$data['storage']['count']}} bytes

+
@endsection @push('scripts') + @endpush \ No newline at end of file