@svg('icon-fontawesome.svgs.solid.school','h-8 w-8 fill-current text-gray-200 mr-4 ')
{!! $pdfView ? 'Établissement : ' : '' !!} {{$session->school->name}}
@svg('icon-fontawesome.svgs.solid.user-group','h-8 w-8 fill-current text-gray-200 mr-4')
{{$session->title}}
@if(isset($session->school->contact))
@svg('icon-fontawesome.svgs.solid.user-check','h-8 w-8 fill-current text-gray-200 mr-4')
Contact : {{$session->school->contact}}
@endif
@svg('icon-fontawesome.svgs.solid.chalkboard-user','h-8 w-8 fill-current text-gray-200 mr-4 ')
{!! $pdfView ? 'Formateur : ' : '' !!}{{ucfirst($session->animator->name)}}
@svg('icon-fontawesome.svgs.regular.calendar-days','h-8 w-8 fill-current text-gray-200 mr-4')
{!! $pdfView ? 'Date : ' : '' !!}{{ucfirst($session->created_at->format('d M Y'))}}
@svg('icon-fontawesome.svgs.regular.user','h-8 w-8 fill-current text-gray-200 mr-4')
{{$countParticipants}} participants
@if(isset($resultByQuestion) && $resultByQuestion !== null)
@foreach($questions as $question)
@foreach($openQuestions as $k => $openQuestion)
@foreach($openQuestion->purposesThroughAnswers->countBy('label') as $label => $countInGroup)
{{ $label }}
: {{round($countInGroup*100/$openQuestion->answers_count,1)}} %
{{--{{ $label }} : {{ $countInGroup }}/{{$openQuestion->answers_count}}--}}
@if(round($countInGroup*100/$openQuestion->answers_count,1) == 0)
0%
@else
@endif
@endforeach
@endforeach
@if(!$pdfView)
@livewire('send-report',['animateur' => $session->animator->name ,
'date' => $session->created_at->format('d M Y'),
'attachmentContent' => $file,
'schoolEmail' => $session->school->email ])