@php // TODO : download those files and place them on current server and use public_path $logoUniVersite = public_path('project/images/export/uac_logo_trans.png'); $logoEtablissement = public_path('project/images/export/epac.png'); if (isset($dev)) { $logoUniVersite = asset('project/images/export/uac_logo_trans.png'); $logoEtablissement = asset('project/images/export/epac.png'); } @endphp
UNIVERSITÉ

MINISTERE DE L'ENSEIGNEMENT SUPERIEUR ET DE LA RECHERCHE SCIENTIFIQUE

****************

{{ $etablissement->descruni }}

****************

{{ $etablissement->descreta }}

ETABLISSEMENT
FICHE DE NOTES Session {{ $session }}
Enseignant : {{ $infoGenerale->nom." ".$infoGenerale->prenom }}
Matière : {{ $infoGenerale->intituleEcu }}
Spécialité : {{ $infoGenerale->sigleFilieres }}
Année d'étude : {{ $infoGenerale->niveauformation." / ".$infoGenerale->annee_etude }}
{{-- table of marks FIXME : --}} @php $group_mean = 0; $nbExams = $exams->count(); // UI Computation // We leave a marge of 2% if($nbExams == 1){ $nameWidth = 30; $fnameWidth = 30; $markWidth = 15; $meanWidth = 18; } else if($nbExams > 1) { $nameWidth = 21; $fnameWidth = 22; $markWidth = ceil(50 / ($nbExams + 1)); $meanWidth = 50 - $markWidth * $nbExams; } else { $nameWidth = 46; $fnameWidth = 47; $markWidth = 0; $meanWidth = 2; } @endphp @for ($i = 0; $i < $nbExams; $i++) @endfor @foreach ($students as $i => $student) @php $mean = 0; @endphp @foreach ($exams as $exam) @php $note = $exam->notes[$student->matricule]; $mean += $note; @endphp @endforeach @php $mean = csRound($mean / $nbExams, 2); $group_mean += $mean; @endphp @endforeach
Nom PrénomsNote {{ $i + 1 }}Moyenne
{{ $i + 1 }} {{ $student->nom }} {{ $student->prenom }}{{ formatDecimal($note, 2, 2) }}{{ formatDecimal($mean, 2, 2) }}
{{-- Stats & signature part --}} @php $group_mean = csRound($group_mean / $students->count(), 2); @endphp
Statistiques des notes
Moyenne de groupe : {{ formatDecimal($group_mean, 2, 2) }}
Fait le ......../........./.............
Signature