文件統計分析

← 返回文件列表
📚
{{ $stats['total_documents'] }}
活躍文件
🔄
{{ $stats['total_versions'] }}
總版本數
👁️
{{ number_format($stats['total_views']) }}
總檢視次數
⬇️
{{ number_format($stats['total_downloads']) }}
總下載次數
📦
{{ $stats['archived_documents'] }}
已封存

各類別文件數量

@foreach($documentsByCategory as $category)
{{ $category->icon }} {{ $category->name }} {{ $category->active_documents_count }}
@endforeach

最常檢視文件

@forelse($mostViewed as $document)
{{ $document->title }}

{{ $document->category->name }}

{{ number_format($document->view_count) }} 次
@empty
尚無資料
@endforelse

最常下載文件

@forelse($mostDownloaded as $document)
{{ $document->title }}

{{ $document->category->name }}

{{ number_format($document->download_count) }} 次
@empty
尚無資料
@endforelse
@if($uploadTrends->isNotEmpty())

上傳趨勢(最近6個月)

@foreach($uploadTrends as $trend)
{{ $trend->month }}
{{ $trend->count }}
@endforeach
@endif

存取權限分布

@foreach($accessLevelStats as $stat)
{{ $stat->count }}
@if($stat->access_level === 'public') 公開 @elseif($stat->access_level === 'members') 會員 @elseif($stat->access_level === 'admin') 管理員 @else 理事會 @endif
@endforeach
@if($recentActivity->isNotEmpty())

最近活動(30天內)

@foreach($recentActivity as $log) @endforeach
時間 使用者 文件 動作
{{ $log->accessed_at->format('Y-m-d H:i') }} {{ $log->getUserDisplay() }} {{ $log->document->title }} {{ $log->getActionLabel() }}
@endif