@forelse ($data['pre_upload'] as $upload)
@if ($upload->type == 'submission')
@php
$programPreSubmission = \App\Models\ProgramPreSubmission::select('label')
->where('id', $upload->program_pre_id)
->first();
@endphp
{{ $programPreSubmission->label ?? '' }}*
@elseif($upload->type == 'payment')
@php
$programPrePayment = \App\Models\ProgramPrePayment::select('label')
->where('id', $upload->program_pre_id)
->first();
@endphp
{{ $programPrePayment->label ?? '' }}*
@else
@endif
@empty
@endforelse