@extends('admin/layout') @section('content')
Premium Demo

Total photo

{{ $approvedPhotosCount }}

Total User

{{$totalUser}}

Total category

{{$totalCategories}}

{{--photo pending--}}

Photos pending

@if($photoPending->isEmpty())
There are no photos pending
@else @foreach($photoPending as $photo) @endforeach
id title image user name category name upload date privacy_status
{{ $photo->id }} {{ $photo->title }} @if($photo->image_url) @endif {{ $photo->user->username }} {{ $photo->category->category_name }} {{ date('d-m-Y', strtotime($photo->upload_date)) }} {{ $photo->privacy_status == 0 ? 'Public' : 'Private' }}
@foreach ($photoPending->getUrlRange(1, $photoPending->lastPage()) as $page => $url) {{ $page }} @endforeach
Page {{ $photoPending->currentPage() }} of {{ $photoPending->lastPage() }}
@endif
{{--report photo pending--}}

Photo Reports

@if($photoReports->isEmpty())
There are no reports
@else @foreach($photoReports as $report) @endforeach
Photo id Image Reporter name Violator name Report reason Report date
{{ $report->photo_id }} @if($report->photo && $report->photo->image_url) @else Photo not available @endif {{ $report->reporter->username }} {{ $report->violator->username }} {{ $report->report_reason }} {{ date('d-m-Y', strtotime($report->report_date)) }}
@foreach ($photoReports->getUrlRange(1, $photoReports->lastPage()) as $page => $url) {{ $page }} @endforeach
Page {{ $photoReports->currentPage() }} of {{ $photoReports->lastPage() }}
@endif
{{--report gallery pending--}}

Gallery Reports

@if($galleryReports->isEmpty())
There are no reports
@else @foreach($galleryReports as $report) @endforeach
ID Gallery ID Reporter Violator Reason Report Date
{{ $report->id }} {{ $report->gallery->id ?? 'N/A' }} {{ $report->reporter->username ?? 'N/A' }} {{ $report->violator->username ?? 'N/A' }} {{ $report->report_reason }} {{ date('d-m-Y', strtotime($report->report_date)) }}
@foreach ($galleryReports->getUrlRange(1, $galleryReports->lastPage()) as $page => $url) {{ $page }} @endforeach
Page {{ $galleryReports->currentPage() }} of {{ $galleryReports->lastPage() }}
@endif
{{--report comment pending--}}

Comment Reports

@if($commentReports->isEmpty())
There are no reports
@else @foreach($commentReports as $report) @endforeach
Comment ID Comment Text Reporter Name Violator Name Report Reason Report Date
{{ $report->comment_id }} {{ $report->comment ? $report->comment->comment_text : 'Comment not available' }} {{ $report->reporter->username }} {{ $report->violator->username }} {{ $report->report_reason }} {{ date('d-m-Y', strtotime($report->report_date)) }}
@foreach ($commentReports->getUrlRange(1, $commentReports->lastPage()) as $page => $url) {{ $page }} @endforeach
Page {{ $commentReports->currentPage() }} of {{ $commentReports->lastPage() }}
@endif
@endsection