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')
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']}}
{{App\Util\Lexer\PrettyNumber::convert($reports)}}
-Reports
-{{App\Util\Lexer\PrettyNumber::convert($statuses)}}
-Statuses
-{{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