diff --git a/resources/views/admin/reports/home.blade.php b/resources/views/admin/reports/home.blade.php index e22ee0c47..e3c203192 100644 --- a/resources/views/admin/reports/home.blade.php +++ b/resources/views/admin/reports/home.blade.php @@ -1,108 +1,90 @@ @extends('admin.partial.template-full') @section('section') -
-

Reports

- - - ALL - - - OPEN - - - CLOSED - - -
-@php($ai = App\AccountInterstitial::whereNotNull('appeal_requested_at')->whereNull('appeal_handled_at')->count()) -@php($spam = App\AccountInterstitial::whereType('post.autospam')->whereNull('appeal_handled_at')->count()) -@if($ai || $spam) -
- -

{{$ai}}

- Appeal {{$ai == 1 ? 'Request' : 'Requests'}} -
- -

{{$spam}}

- Flagged {{$ai == 1 ? 'Post' : 'Posts'}} -
-
-@endif - @if($reports->count()) -
-
- @foreach($reports as $report) -
-
-
-
- -
-
-

{{$report->type}}

- @if($report->reporter && $report->status) -

{{$report->reporter->username}} reported this post

- @else -

- @if(!$report->reporter) - Deleted user - @else - {{$report->reporter->username}} - @endif - reported this - @if(!$report->status) - deleted post - @else - post - @endif +

+

Reports

+
+ @if(request()->has('filter') && request()->filter == 'closed') + + View Open Reports + + @else + + View Closed Reports + + @endif +
+
+ @php($ai = App\AccountInterstitial::whereNotNull('appeal_requested_at')->whereNull('appeal_handled_at')->count()) + @php($spam = App\AccountInterstitial::whereType('post.autospam')->whereNull('appeal_handled_at')->count()) + @if($ai || $spam) + + @endif + @if($reports->count()) +
+
+
+ @foreach($reports as $report) +
+
+
+ + + +
+

{{$report->type}}

+ @if($report->reporter && $report->status) +

{{$report->reporter->username}} reported this post

+ @else +

+ @if(!$report->reporter) + Deleted user + @else + {{$report->reporter->username}} + @endif + reported this + @if(!$report->status) + deleted post + @else + post + @endif -

+

- @endif -
-
- {{-- @if($report->admin_seen == null) - - @endif - --}} - @if($report->status) - VIEW - @endif -
-
-
-
- @endforeach -
-
- @else -
-
-

No reports found

-
-
- @endif + @endif +
+
+ @if($report->status) + + View + + @endif +
+
+
+
+ @endforeach +
+
+
+ @else +
+
+

No reports found

+
+
+ @endif -
- {{$reports->appends(['layout'=>request()->layout, 'filter' => request()->filter])->links()}} -
+
+ {{$reports->appends(['layout'=>request()->layout, 'filter' => request()->filter])->links()}} +
@endsection - -@push('styles') - -@endpush - -@push('scripts') - -@endpush \ No newline at end of file diff --git a/resources/views/admin/reports/show.blade.php b/resources/views/admin/reports/show.blade.php index 521c88cef..e4b02dc61 100644 --- a/resources/views/admin/reports/show.blade.php +++ b/resources/views/admin/reports/show.blade.php @@ -1,167 +1,111 @@ @extends('admin.partial.template-full') @section('section') -
-

Report #{{$report->id}} - {{ucfirst($report->type)}}

-
+
+
+

+ Report #{{$report->id}} - + {{ucfirst($report->type)}} +

+

+ Reported {{$report->created_at->diffForHumans()}} by @{{$report->reporter->username}}. +

+
+
-
-
-
Reported: {{$report->reported()->url()}}
-
Reported by: {{$report->reporter->username}}
-

- Message: - {{$report->message ?? 'No message provided.'}} -

+
+
+
+ @if($report->status->media()->count()) + + @endif +
+
+ @if($report->status->caption) +

+ {{$report->status->media()->count() ? 'Caption' : 'Comment'}}: {{$report->status->caption}} +

+ @endif +

+ Like Count: {{$report->status->likes_count}} +

+

+ Share Count: {{$report->status->reblogs_count}} +

+

+ Timestamp: {{now()->parse($report->status->created_at)->format('r')}} +

+

+ URL: {{$report->status->url()}} +

+
+
+
+
+
+ + + - @if(!$report->admin_seen) - Ignore - {{-- Request Mod Feedback --}} - Add CW - Unlist/Hide -{{-- Delete - Shadowban User - Ban User --}} - @else -

Resolved {{$report->admin_seen->diffForHumans()}}

- @endif -
-
+
+
+ @{{$report->reportedUser->username}} stats +
+
+

+ Total Reports: {{App\Report::whereReportedProfileId($report->reportedUser->id)->count()}} +

+

+ Total Warnings: {{App\AccountInterstitial::whereUserId($report->reportedUser->user_id)->count()}} +

+

+ Status Count: {{$report->reportedUser->status_count}} +

+

+ Follower Count: {{$report->reportedUser->followers_count}} +

+

+ Joined: {{$report->reportedUser->created_at->diffForHumans(null, null, false)}} +

+
+
-
-
-
-
- -
-
-
-
-
-
-
-
- Reporter -
-
    -
  • Joined {{$report->reporter->created_at->diffForHumans()}}
  • -
  • Total Reports: {{App\Report::whereProfileId($report->reporter->id)->count()}}
  • -
  • Total Reported: {{App\Report::whereReportedProfileId($report->reporter->id)->count()}}
  • -
-
-
-
-
-
- Reported -
-
    -
  • Joined {{$report->reportedUser->created_at->diffForHumans()}}
  • -
  • Total Reports: {{App\Report::whereProfileId($report->reportedUser->id)->count()}}
  • -
  • Total Reported: {{App\Report::whereReportedProfileId($report->reportedUser->id)->count()}}
  • -
-
-
-
-
-
-
-
+
+
+ @{{$report->reporter->username}} stats +
+
+

+ Status Count: {{$report->reporter->status_count}} +

+

+ Follower Count: {{$report->reporter->followers_count}} +

+

+ Joined: {{$report->reporter->created_at->diffForHumans(null, null, false)}} +

+
+
-{{--
-
-
-
- -
-
-
-
-
-

admin ignored this report. 2m

-
-
-

admin ignored this report. 2m

-
-
-

admin ignored this report. 2m

-
-
-
-
-
--}} - - -{{--
-
-
-
- -
-
-
-
-
-
-
-
- [username]: {{str_limit('Anim pariatur cliche reprehenderit, enim eiusmod high life accusamus terry richardson ad squid. 3 wolf moon officia aute, non cupidatat skateboard dolor brunch. Food truck quinoa nesciunt laborum eiusmod.', 150)}} 2m -
-
-
-
-
-
- me: {{str_limit('Anim pariatur cliche reprehenderit, enim eiusmod high life accusamus terry richardson ad squid. 3 wolf moon officia aute, non cupidatat skateboard dolor brunch. Food truck quinoa nesciunt laborum eiusmod.', 150)}} 2m -
-
-
-
-
-
- me: {{str_limit('Anim pariatur cliche reprehenderit, enim eiusmod high life accusamus terry richardson ad squid. 3 wolf moon officia aute, non cupidatat skateboard dolor brunch. Food truck quinoa nesciunt laborum eiusmod.', 150)}} 2m -
-
-
-
-
- -
-
-
--}} +
+
@endsection - + @push('scripts') @endpush \ No newline at end of file