@php $tiers = \App\Models\Workstream::getTiers(); $tiersOther = \App\Models\Workstream::getOtherTiers(); $workstreamId = $workstream_id ?? ''; // Fetchin data from models $phases = \App\Models\MasterPhase::getCorePhases(); $otherPhases = \App\Models\MasterPhase::getOtherCorePhases(); $columns = __('adminlte::backend.columns'); $techColumns = __('adminlte::backend.tech_columns'); @endphp @foreach ($tiers as $tier)

{{ $tier['title'] }}

@foreach ($columns as $col) @endforeach @foreach ($phases as $key => $phase) @foreach ($columns as $keyName => $label) @endforeach @endforeach
Name{{ $col }}
{{ $phase }} {{ $approversData[$tier['key']][$key]->{$keyName}->full_name ?? '-' }}
@endforeach @foreach ($tiersOther as $tier)

{{ $tier['title'] }}

@foreach ($columns as $col) @endforeach @foreach ($otherPhases as $key => $phase) @foreach ($columns as $keyName => $label) @endforeach @endforeach
Name{{ $col }}
{{ $phase }} {{ $approversData[$tier['key']][$key]->{$keyName}->full_name ?? '-' }}
@endforeach

{{ __('adminlte::backend.ThresholdTechnicalApproval') }}

@foreach ($techColumns as $col) @endforeach @foreach ($masterTechnicalDiscipline as $key => $phase) @endforeach
Name{{ $col }}
{{ $phase }} {{ $techApproversData[$key]->approverLevel1->full_name ?? '-' }} {{ $techApproversData[$key]->approverLevel2->full_name ?? '-' }}