{{$questionsWithAnswers[0]->eNDUSER->FULL_NAME}}
@foreach($questionsWithAnswers as $key => $questionAnswer)
@if(!empty($questionAnswer->SELECTED_OPTIONS)) @foreach($questionAnswer->SELECTED_OPTIONS as $selectedOption)
  • {{$selectedOption}}
  • @if(!empty($questionAnswer->DESCRIPTION))
      {{$questionAnswer->DESCRIPTION}}
    @endif @endforeach @elseif($questionAnswer->question->TYPE == 'HOP') @php($hopAnswers = explode(',', str_replace(['[', ']', '"'], '', $questionAnswer->ANSWER))) @foreach($hopAnswers as $hopAnswer)
  • {{$hopAnswer}}
  • @endforeach @elseif($questionAnswer->question->TYPE == 'FILE') @if(!empty($questionAnswer->ANSWER) && str_starts_with($questionAnswer->ANSWER, '/')) @php($attachments = explode(',', $questionAnswer->ANSWER)) @foreach($attachments as $key => $attachment) @if(str_starts_with($attachment, '/')) @endif @endforeach @else
    No documents attached
    @endif {{--https://s3.eu-west-1.amazonaws.com/blazma.com--}} @else @if($questionAnswer->question->CODE == 'AGEC') {{ \Carbon\Carbon::parse($questionAnswer->ANSWER)->diff(\Carbon\Carbon::parse($questionAnswer->eNDUSER->DATE_OF_BIRTH))->format('%d') ." Days /"}} {{(\Carbon\Carbon::parse($questionAnswer->ANSWER))->diff(\Carbon\Carbon::parse($questionAnswer->eNDUSER->TIME_OF_BIRTH))->format('%h'). " Hours /"}} {{(\Carbon\Carbon::parse($questionAnswer->ANSWER))->diff(\Carbon\Carbon::parse($questionAnswer->eNDUSER->TIME_OF_BIRTH))->format('%i'). " Minutes "}} @else {{$questionAnswer->ANSWER}} @endif @endif
    @endforeach