From 1cb0c030a8aa17066b1b2e9060fcdff924051e0f Mon Sep 17 00:00:00 2001 From: Daniel Supernault Date: Sun, 2 Sep 2018 19:23:59 -0600 Subject: [PATCH] Update admin user list view --- resources/views/admin/users/home.blade.php | 206 +++++++++++++++++++-- 1 file changed, 188 insertions(+), 18 deletions(-) diff --git a/resources/views/admin/users/home.blade.php b/resources/views/admin/users/home.blade.php index 304f05063..7eb47f5ef 100644 --- a/resources/views/admin/users/home.blade.php +++ b/resources/views/admin/users/home.blade.php @@ -4,31 +4,157 @@

Users

- -
+
+
+
+
+
+ Total Users + {{-- + + --}} +
+
+

{{$stats['total']['count']}}

+
+
+
+
+
+
+
+
+
+ New Users + {{-- + + --}} +
+
+

{{$stats['new']['count']}}

+
+
+
+
+
+
+
+
+
+ Local +
+
+

{{$stats['profile']['local']}}

+
+
+
+
+
+
+
+
+ Remote +
+
+

{{$stats['profile']['remote']}}

+
+
+
+
+
+
+
+
+ Avg Age +
+
+

{{$stats['avg']['age']}}

+
+
+
+
+
+
+
+
+ Avg Posts +
+
+

{{$stats['avg']['posts']}}

+
+
+
+
+
- - - - - - - + + + + + + + + - @foreach($users as $user) - + - - - - + + + + + @endforeach @@ -39,14 +165,58 @@ @endsection +@push('styles') + +@endpush @push('scripts') + @endpush
UsernameStatusesStorageRoleCreated
+ ID + + Avatar + + Username + + Status Count + + Storage Used + + Actions +
- - {{$user->username}} - + {{$user->id}} {{$user->profile->statuses->count()}}

{!!$user->is_admin ? 'admin' : 'member'!!}{{$user->created_at->diffForHumans(null, true, true)}} + + + + {{$user->username}} + @if($user->is_admin) + + @endif + + + {{$user->profile->statusCount()}} + +

+
+ + + + + + + + + + + +