{{-- Threat Main Info --}}

Details ID: {{ $threat->record_id }}

{{-- Left side --}}
Name {{ $threat->threat_name ?? '-' }}
Phase {{ $threat->threatDetails->phase->full_name ?? '-' }}
Workstream {{ $threat->workstream->workstream_name ?? '-' }}
Owner {{ $threat->owner->full_name ?? '-' }}
Overall Status {{ $threat->overall_status ?? '-' }}
Note {{ $threat->threatDetails->overall_status_commentary ?? '-' }}
{{-- Right side --}}
Technical Discipline {{ $threat->threatDetails->discipline->technical_discipline_name ?? '-' }}
Infrastructure Category {{ $threat->threatDetails->infrastructureCategory->infrastructure_category_name ?? '-' }}
Bad Actor {{ $threat->threatDetails->bad_actor ? 'Yes' : 'No' }}
Hashtag # {{ $threat->threatDetails->hashtag ?? '-' }}
MTO Score {{ number_format($threat->riskAssessment->MTO_score ?? 0) }}
Primary RAM Box {{ $threat->riskAssessment?->primary_ram_box ?? '-' }}
{{-- Description --}}
Description {{ $threat->threatDetails->description ?? '-' }}

Threat Interim Mitigation

Interim Lead Person {{ $threat->solutioningTab?->interim_lead_person_id ? $threat->solutioningTab?->interimLead->full_name : '-' }}
Interim Plan {{ $threat->solutioningTab->interim_plan ?? '-' }}
Original Resolution Date (Interim) {{ $threat->solutioningTab ? \Carbon\Carbon::parse($threat->solutioningTab->original_resolution_date_interim)->format('d-m-Y') : '-' }}

Threat Long Term Solution

In Business Plan {{ $threat->solutioningTab?->in_business_plan ? 'Yes' : 'No' }}
In T/A Scope {{ $threat->solutioningTab?->in_ta_scope ? 'Yes' : 'No' }}
Turnaround Required {{ $threat->solutioningTab?->turnaround_required ? 'Yes' : 'No' }}
Total OpEx ($) {{ currency_format($threat->solutioningTab?->total_OpEx_dollar) ?? '0' }}
Original Resolution Date {{ $threat->solutioningTab ? \Carbon\Carbon::parse($threat->solutioningTab->original_resolution_date)->format('d-m-Y') : '-' }}
MOC No {{ $threat->solutioningTab?->MOC_number ?? '-' }}
{{-- Schedule Dates --}}

Schedule Dates

@forelse($threat->phaseCompletionDates as $phaseDate) @empty @endforelse
Phase Planned Actual
{{ $phaseDate->master_phase_id ? $phaseDate->phase->full_name : '-' }} {{ $phaseDate->planned_date ? \Carbon\Carbon::parse($phaseDate->planned_date)->format('d-m-Y') : '-' }} {{ $phaseDate->actual_date ? \Carbon\Carbon::parse($phaseDate->actual_date)->format('d-m-Y') : '-' }}
No schedule dates available
{{-- (Optional) Interim Mitigation + Long Term Solution can be added here the same way --}}