{{ $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)All documents have been processed.
As {{ Auth::user()->hasRole('ClientB') ? 'Client B' : 'Client C' }}, you have the final say on document approval. You can: