{{ $pendingReviews ?? 0 }}
Pending Reviews
Require Action
{{ $totalApprovals ?? 0 }}
Total Reviews
Completed
{{ $approved ?? 0 }}
Approved
Documents
{{ $rejected ?? 0 }}
Rejected
Documents

Documents Awaiting Review

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

{{ $document->title }}

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

Submitted {{ $document->created_at->diffForHumans() }}

@endforeach
@else

No pending reviews

All documents have been reviewed.

@endif

Approval vs Rejection Ratio

@if(isset($weeklyApprovals) && $weeklyApprovals->count() > 0)

Weekly Approval Trends

@endif

Recent Notifications

@if(isset($recentNotifications) && $recentNotifications->count() > 0)
@foreach($recentNotifications->take(5) as $notification)
@if(!$notification->read_status)
@else
@endif

{{ $notification->message }}

{{ $notification->created_at->diffForHumans() }}

@endforeach
@else

No recent notifications.

@endif