{{ $pendingReview ?? 0 }}
Pending Review
Final Stage
{{ $totalApprovals ?? 0 }}
Total Reviews
Completed
{{ $approved ?? 0 }}
Approved
Final
{{ $rejected ?? 0 }}
Rejected
Final

Final Review Queue

@if(isset($documentsAwaitingReview) && $documentsAwaitingReview->count() > 0) {{ $documentsAwaitingReview->count() }} @endif
@if(isset($documentsAwaitingReview) && $documentsAwaitingReview->count() > 0)
@foreach($documentsAwaitingReview->take(5) as $document)

{{ $document->title }}

{{ $document->type }} • {{ $document->contractor->name }}

Client A approved {{ $document->updated_at->diffForHumans() }}

@php $userRole = Auth::user()->hasRole('ClientB') ? 'ClientB' : 'ClientC'; $otherRole = $userRole === 'ClientB' ? 'ClientC' : 'ClientB'; $otherApproval = $document->approvals->where('role', $otherRole)->first(); @endphp @if($otherApproval)
{{ $otherRole }}: {{ ucfirst($otherApproval->status) }}
@endif
@csrf
Review
@endforeach
@if($documentsAwaitingReview->count() > 5) @endif @else

No documents for final review

All documents have been processed.

@endif

Review History

Approved
{{ $approved ?? 0 }}
Rejected
{{ $rejected ?? 0 }}
@if(($approved ?? 0) + ($rejected ?? 0) > 0)
Approval Rate
{{ round((($approved ?? 0) / (($approved ?? 0) + ($rejected ?? 0))) * 100, 1) }}%
@endif
@if(isset($monthlyApprovals) && $monthlyApprovals->count() > 0)

Monthly Approval Trends

@endif

Final Review Stage

As {{ Auth::user()->hasRole('ClientB') ? 'Client B' : 'Client C' }}, you have the final say on document approval. You can:

  • Reject documents to stop the approval process
  • Allow approval by not rejecting (if both Client B & C don't reject, document becomes "Final Approved")
  • View complete history of all previous approvals and comments