{{-- Sous-matières --}}
@if(isset($groupes['sous_matieres']))
@foreach($groupes['sous_matieres'] as $sub_matter_id => $listeSous)
@php
$subName = $listeSous[0]->sous_matiere ?? '-';
$moySub = $moyennes_sous_matieres[$matiere][$sub_matter_id] ?? null;
$coef = $coeff_sub[$sub_matter_id] ?? 1;
$base = 20 * $coef;
@endphp
{{ $subName }} — Moyenne :
{{ is_numeric($moySub) ? number_format($moySub,2) : 'NC' }}/{{ $base }}
| # |
Type d’évaluation |
Note |
Date d’évaluation |
@foreach($listeSous as $i => $note)
@php
$type = strtolower($note->evaluation_type);
$base = in_array($type,['interro','interrogation']) ? 10
: (in_array($type,['composition','examen']) ? 40
: (in_array($type,['devoir','controle','contrôle']) ? 20 : 20));
$dateEval = $note->date_create
? \Carbon\Carbon::parse($note->date_create)->format('d/m/Y')
: '-';
@endphp
| Note {{ $i+1 }} |
{{ $note->evaluation_type }} |
{{ $note->note }}/{{ $note->notee * 20 }} |
{{ $dateEval }} |
@endforeach
@endforeach
@endif
{{-- Matière principale --}}
@if(isset($groupes['principale']))
| # |
Type d’évaluation |
Note |
Date d’évaluation |
@foreach($groupes['principale'] as $i => $note)
@php
$type = strtolower($note->evaluation_type);
$base = in_array($type,['interro','interrogation']) ? 10
: (in_array($type,['composition','examen']) ? 40
: (in_array($type,['devoir','controle','contrôle']) ? 20 : 20));
$dateEval = $note->date_create
? \Carbon\Carbon::parse($note->date_create)->format('d/m/Y')
: '-';
@endphp
| Note {{ $i+1 }} |
{{ $note->evaluation_type }} |
{{ $note->note }}/{{ $note->notee * 20 }} |
{{ $dateEval }} |
@endforeach
@endif