@can('viewPaperReview', $project) @php($latestProof = $project->proofs->sortByDesc('id')->first()) @if($latestProof)

Paper review and comments

Latest document: V{{ $latestProof->workVersion->version }} · {{ App\Models\Proof::STATUSES[$latestProof->status] }}.

Review / download document

@if($project->first_review_at)

First sent for review: {{ $project->first_review_at->format('d M Y, H:i') }}. Staff closure available from {{ $project->review_due_at?->format('d M Y, H:i') }} ({{ config('app.timezone') }}). This date stays the same through later revisions.

@endif @if($project->closed_at)
Paper closed {{ $project->closed_at->format('d M Y, H:i') }}. The final reviewed document remains available.
@if($project->closure_note)

{{ $project->closure_note }}

@endif @endif
@forelse($project->paperComments->sortBy('id') as $comment)
{{ $comment->author->name }} · {{ $comment->user_id === $project->customer_id ? 'Customer' : 'Team' }} · Document V{{ $comment->proof->workVersion->version }} · {{ $comment->created_at->format('d M Y, H:i') }}

{{ $comment->body }}

@empty

No review comments yet.

@endforelse
@if(in_array($project->status, ['proof_ready', 'corrections_requested', 'revision_in_progress', 'awaiting_qc', 'qc_returned', 'in_progress'], true))
@csrf

Shared with the customer, Super Admin, Admin, managers and assigned employees. Customer comments request another revision; each revised document passes internal QC before review.

@endif @can('closePaper', $project) @if($project->status === 'proof_ready')

Close paper

@if($project->customer_id === auth()->id() || ($project->review_due_at && now()->gte($project->review_due_at)))
@csrf @if($project->customer_id !== auth()->id())@endif
@else

The customer can close now. Staff can close after the review period ends.

@endif @endif @endcan
@endif @endcan