@include('frontend.layouts.header')
@foreach($virtualExp->virtual_exp_what_will_you_learns as $key=> $virtual_exp_what_will_you_learn)
@if($virtual_exp_what_will_you_learn->id <=$what_will_you_learn_id) @else {{$key+1}} @endif

{{$virtual_exp_what_will_you_learn->title}}

{{$virtual_exp_what_will_you_learn->description}}

@endforeach

Congratulations!

@php $index=0; foreach($virtualExp->virtual_exp_what_will_you_learns as $key=>$item ){ if($item->id==$what_will_you_learn_id){ $index=$key+1; break; } } @endphp

You just completed Task {{$index}} of the {{$virtualExp->title}} VWEP

man
@if(count($what_will_you_learn->model_solutions)>0)

Model Solution

{{$what_will_you_learn->short_description}}
@foreach($what_will_you_learn->model_solutions as $task_question_file) @php $url =$task_question_file->uploaded_file; $extension = pathinfo(parse_url($url, PHP_URL_PATH), PATHINFO_EXTENSION); $icon=''; if($extension==='docx'){ $icon='assets/images/vwep/docx.svg'; }else if($extension==='pdf'){ $icon='assets/images/vwep/pdf.svg'; }else if($extension==='txt'){ $icon='assets/images/vwep/txt.svg'; }else{ $icon='assets/images/uploadfile.svg'; } @endphp @endforeach

Helpful hint :

{{$what_will_you_learn->helpful_hint}}
@endif @if(count($virtualExp->virtual_exp_what_will_you_learns) === $index)

How would you rate the content in this task?

@endif