{{ $document->title }}

編輯資訊 @if($document->status === 'active')
@csrf
@else
@csrf
@endif
@if (session('status'))

{{ session('status') }}

@endif @if (session('error'))

{{ session('error') }}

@endif

文件資訊

類別
{{ $document->category->icon }} {{ $document->category->name }}
文件編號
{{ $document->document_number ?? '—' }}
存取權限
{{ $document->getAccessLevelLabel() }}
狀態
{{ $document->getStatusLabel() }}
當前版本
@if($document->currentVersion) v{{ $document->currentVersion->version_number }} @else 尚無版本 @endif
總版本數
{{ $document->version_count }} 個版本
檢視 / 下載次數
{{ $document->view_count }} / {{ $document->download_count }}
@if($document->description)
說明
{{ $document->description }}
@endif
建立者
{{ $document->createdBy->name }} · {{ $document->created_at->format('Y-m-d H:i') }}
@if($document->lastUpdatedBy)
最後更新
{{ $document->lastUpdatedBy->name }} · {{ $document->updated_at->format('Y-m-d H:i') }}
@endif

上傳新版本

@csrf

最大 10MB

版本歷史

所有版本永久保留,無法刪除

    @foreach($versionHistory as $history) @php $version = $history['version']; @endphp
  • {{ $version->getFileIcon() }}
    版本 {{ $version->version_number }} @if($version->is_current) 當前版本 @endif
    {{ $version->original_filename }}
    {{ $version->getFileSizeHuman() }} {{ $version->uploadedBy->name }} {{ $version->uploaded_at->format('Y-m-d H:i') }} @if($history['days_since_previous']) ({{ $history['days_since_previous'] }} 天前) @endif
    @if($version->version_notes)
    變更說明:{{ $version->version_notes }}
    @endif
    檔案雜湊: {{ substr($version->file_hash, 0, 16) }}... @if($version->verifyIntegrity()) ✓ 完整 @else ✗ 損壞 @endif
    下載 @if(!$version->is_current)
    @csrf
    @endif
  • @endforeach

存取記錄

最近 20 筆

@forelse($document->accessLogs->take(20) as $log) @empty @endforelse
時間 使用者 動作 IP 瀏覽器
{{ $log->accessed_at->format('Y-m-d H:i:s') }} {{ $log->getUserDisplay() }} {{ $log->getActionLabel() }} {{ $log->ip_address }} {{ $log->getBrowser() }}
尚無存取記錄