@extends('partials.app') @section('title', $document->doc_name) @section('content')
{{ $document->doc_type ?? 'Document' }} {{ $document->doc_number }}

{{ $document->doc_name }}

Version {{ $document->version ?? '1.0' }} • Uploaded {{ $document->created_at->format('d M Y, h:i A') }}

Open File
@csrf
Back to Master Documents

Document Overview

Uploaded By {{ $document->uploader->name ?? 'N/A' }}
Reviewed By {{ $document->reviewer->name ?? 'Pending review' }}
Reviewed At {{ $document->reviewed_at ? $document->reviewed_at->format('d M Y, h:i A') : 'Not reviewed yet' }}
Question Pool {{ $document->questions_count }} questions
Linked Trainings {{ $document->modules->count() }}
Current Reviewer ID {{ $document->reviewed_by ?? 'N/A' }}
Review Action

When you submit a review, the system stores the logged-in user's ID automatically in the reviewer field.

@csrf

Document Preview

View the source file and review linked learning usage.

Manage Question Pool
@if($isPreviewable)
@else
Inline preview is not available for this file type

Open the file in a new tab to review the complete document.

Open Document
@endif
Linked Training Programs
@if($document->modules->isNotEmpty())
@foreach($document->modules as $module) @endforeach
Training Name Question Quota
{{ $module->name }} {{ $module->pivot->question_quota ?? 0 }}
@else

This document is not linked to any training program yet.

@endif
@endsection