Documents Requiring Your Review

@if($documents->count() > 0) {{ $documents->count() }} pending @endif
@if($documents->count() > 0)
@foreach($documents as $document)

{{ $document->title }}

{{ $document->type }}

{{ $document->current_status }}
{{ $document->contractor->name }}
{{ $document->created_at->diffForHumans() }}
Version {{ $document->versions->max('version_number') ?? 1 }}
@endforeach
@else

No pending approvals

@if(Auth::user()->hasRole('Consultant')) There are no documents waiting for consultant review at this time. @elseif(Auth::user()->hasRole('ClientA')) There are no documents waiting for Client A review at this time. @elseif(Auth::user()->hasRole(['ClientB', 'ClientC'])) There are no documents waiting for final client review at this time. @endif

@endif
@if($documents->count() > 0)

Quick Actions

{{ $documents->count() }}
Pending Reviews
{{ Auth::user()->approvals()->where('status', 'approved')->count() }}
Total Approved
{{ Auth::user()->approvals()->where('status', 'rejected')->count() }}
Total Rejected
@endif