@extends('admin.layout') @section('content')

Research Papers Analytics

Comprehensive analytics and insights about research papers

Total Papers

{{ $totalPapers }}

Published

{{ $publishedPapers }}

Pending Review

{{ $pendingReview }}

Avg Score

{{ number_format($avgScore, 1) }}

Total Downloads

{{ $totalDownloads }}

Total Citations

{{ $totalCitations }}

Under Review

{{ $underReview }}

Featured Papers

{{ \App\Models\ResearchPaper::where('is_featured', true)->count() }}

Papers by Status

@foreach($papersByStatus as $status)
{{ str_replace('_', ' ', $status->status) }}
{{ $status->count }} ({{ number_format(($status->count / $totalPapers) * 100, 1) }}%)
@endforeach

Top Research Fields

@foreach($papersByField as $field)
{{ $field->research_field }}
{{ $field->count }} ({{ number_format(($field->count / $totalPapers) * 100, 1) }}%)
@endforeach

Monthly Submissions (Last 12 Months)

@if($monthlySubmissions->count() > 0)
@foreach($monthlySubmissions->reverse() as $submission) @php $maxSubmissions = $monthlySubmissions->max('count'); $percentage = $maxSubmissions > 0 ? ($submission->count / $maxSubmissions) * 100 : 0; @endphp @endforeach
Month Submissions Progress
{{ DateTime::createFromFormat('!m', $submission->month)->format('F') }} {{ $submission->year }} {{ $submission->count }}
@else

No submission data available.

@endif

Recent Activity

Recently Published

@php $recentPublished = \App\Models\ResearchPaper::published()->latest('published_at')->take(3)->get(); @endphp @forelse($recentPublished as $paper)

{{ Str::limit($paper->title, 60) }}

{{ $paper->user->first_name }} {{ $paper->user->last_name }} • {{ $paper->published_at->format('M j, Y') }}

Published
@empty

No recently published papers.

@endforelse

Awaiting Review

@php $awaitingReview = \App\Models\ResearchPaper::whereIn('status', ['pending', 'under_review'])->latest()->take(3)->get(); @endphp @forelse($awaitingReview as $paper)

{{ Str::limit($paper->title, 60) }}

{{ $paper->user->first_name }} {{ $paper->user->last_name }} • {{ $paper->submitted_at->format('M j, Y') }}

{{ ucfirst(str_replace('_', ' ', $paper->status)) }}
@empty

No papers awaiting review.

@endforelse

Export Analytics

@endsection