@extends('layout.template') @section('intitule')
| Num | Matricule | Nom & Prénom | @foreach ($data['ecu'] as $ecu){{ $ecu->intituleEcu }} | @endforeachMoyenne | Résultat |
|---|---|---|---|---|---|
| {{ $count }} | {{ $student->matricule }} | {{ $student->nomPrenom }} | @php $moyenne = 0; $Notes = App\Models\NoteEcu::selectRaw('code_ecu, noteEcu') ->where([['annee_acad', Session::get('RESULTAT_DATA')['RESULTAT_YEAR']->annee_acad], ['matricule', $student->matricule], ['idFiliere', $idFiliere], ['annee', $etudeYear], ['niveauFormation', $formation], ['code_unite', $code_unite]]) ->orderBy('code_ecu') ->get(); @endphp @foreach ($Notes as $note) @php $moyenne += $note->noteEcu; @endphp{{ $note->noteEcu }} | @endforeach{{ App\Http\Helpers\AdditionalHelpers::myround($moyenne / $data['ecu']->count(), 2) }} | {{ $student->resultat == 'A' ? 'Validé' : 'Non validé' }} |