{{ $procurement->reference }} — ProcureFlow Procurement Details

{{ $procurement->reference }}

@php $riskColors = [ 'Low' => 'badge-teal', 'Medium' => 'badge-amber', 'High' => 'badge-orange', 'Critical' => 'badge-red' ]; @endphp Risk: {{ $procurement->risk_level }}
{{ $procurement->reference }} {{ $procurement->type }} {{ $procurement->method }} Created by {{ $procurement->creator->name ?? 'System' }} on {{ $procurement->created_at->format('M d, Y') }}
@if(count($procurement->gaps) > 0) @foreach($procurement->gaps as $gap) @if($gap['severity'] == 'critical')
Compliance Risk Detected
{{ $gap['message'] }}
Mitigate Risk
@endif @endforeach @endif @if($userPendingApproval)
Action Required: Your Approval Needed

You have been requested to review and approve this procurement for Stage {{ $userPendingApproval->stage }} as {{ $userPendingApproval->role_label }}.

Please review the checklist, attached documents, and evaluation results before making your decision.

@endif
@php $stages = [ 1 => 'Initiation', 2 => 'Solicitation', 3 => 'Bidding', 4 => 'Evaluation', 5 => 'Approvals', 6 => 'Award', 7 => 'Execution', 8 => 'Closeout/Audit' ]; @endphp @foreach($stages as $num => $label)
@if($procurement->current_stage > $num) @else {{ $num }} @endif
{{ $label }}
@endforeach
Overview & Checklist
Documents ({{ $procurement->documents->count() }})
Bids & Evaluation
Approvals ({{ $procurement->approvals->count() }})
Addenda & Clarifications
Communication Log
{{-- Quick Access: Stage Module Buttons --}}
Stage Modules: Market Assessment Evaluation Criteria @if($procurement->prequalification_required) Prequalification @endif Bid Opening @if($procurement->current_stage == 4 && !$procurement->bidOpening) Form Committee @endif Audit @if($procurement->audit_locked) Audit Locked (VC-5) @endif @if($procurement->archived_at) Archived {{ $procurement->archived_at->format('M d, Y') }} @endif
Stage {{ $procurement->current_stage }}: {{ $stages[$procurement->current_stage] }} Checklist
@if($procurement->current_stage == 6) Award Contract @endif @if($procurement->status == 'active' || $procurement->current_stage == 7) @if($procurement->current_stage < 8 && $procurement->current_stage != 7)
@csrf
@elseif($procurement->current_stage == 7) @if($isReadyForCloseout)
@csrf
@else
Cannot closeout: Ensure all invoices are paid and all deliveries are marked as 'received'.
@endif @endif @endif
@forelse($procurement->stageChecklists->where('stage', $procurement->current_stage) as $item)
@csrf
@empty
No checklist items defined for this stage.
@endforelse
@if($procurement->contracts->count() > 0)
Awarded Contract
@foreach($procurement->contracts as $contract)
{{ $contract->contract_number }}
{{ $contract->supplier->name }}
{{ $contract->currency }} {{ number_format($contract->contract_value, 0) }}
Signed: {{ $contract->signed_at?->format('M d, Y') ?? 'Draft' }}
@endforeach
@endif
Procurement Information
Estimated Value
{{ $procurement->currency }} {{ number_format($procurement->estimated_value, 0) }}
Budget Line
{{ $procurement->budget_line ?? 'N/A' }}
Planned Closing Date
{{ $procurement->planned_close_date ? $procurement->planned_close_date->format('M d, Y') : 'N/A' }}
Description
{{ $procurement->description }}
Compliance Shield
{{ $procurement->health_score }}% Health
{{ $procurement->health_score > 80 ? 'High' : ($procurement->health_score > 50 ? 'Moderate' : 'Critical') }}
{{ count($procurement->gaps) }} audit risks identified
Approval Chain
@foreach($procurement->approvals->sortBy('order') as $approval)
@if($approval->status == 'approved') @elseif($approval->status == 'rejected') @else @endif
{{ $approval->approver->name }}
{{ $approval->role_label }}
@if($approval->comment)
{{ $approval->comment }}
@endif @if($approval->decided_at)
{{ $approval->decided_at->format('M d, Y H:i') }}
@endif
@endforeach
Recent Documents
@foreach($procurement->documents->take(3) as $doc) @endforeach
{{ $doc->name }}
v{{ $doc->version }} • {{ $doc->created_at->diffForHumans() }}
Contract Utilization
@php $committed = $procurement->contracts->sum('contract_value'); $percentage = $procurement->estimated_value > 0 ? ($committed / $procurement->estimated_value) * 100 : 0; $remaining = $procurement->estimated_value - $committed; @endphp
Awarded Sum
{{ $procurement->currency }} {{ number_format($committed, 0) }}
Budget Utilization
{{ number_format($percentage, 0) }}%
@if($userPendingApproval)
@endif