@foreach($virtualExp->virtual_exp_what_will_you_learns as $key=> $virtual_exp_what_will_you_learn)
@endforeach
@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}}
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; } } @endphpYou just completed Task {{$index}} of the {{$virtualExp->title}} VWEP
}})
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