@php $j = 0; $creditCapitalise = 0; @endphp
{{-- Universite --}}

{{ $universite->descruni }}

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

{{ $etablissement->descreta }}

{{-- Etablissement --}}
{{-- CodeQr --}}

FICHE BILAN DE LA @if ($annee == 1) PREMIÈRE ANNEE @elseif ($annee == 2) DEUXIÈME ANNEE @else TROISIÈME ANNEE @endif

{{-- PhotoEtu --}}
Noms et Prénoms : {{ $etudiant->nom }} {{ $etudiant->prenom }} Sexe : {{ $etudiant->sexe }}
Date et lieu de naissance : {{ $etudiant->date_nais }} à {{ $etudiant->lieu_nais }} N° d'inscription : {{ $etudiant->matricule }}
Domaine : {{ $mentionDomaine->sigleDomaine }} Diplôme préparé : {{ $diplome }}
Mention : {{ $mentionDomaine->sigleMention }}
Spécialité : {{ $filiere->intituleFilieres }}
N° DU SEMESTRE
:
@if ($idSemestre[2] == 0) {{ $idSemestre[1] }} @else {{ $idSemestre[1] }} & {{ $idSemestre[2] }} @endif
{{--
@if ($test == 'YES')
Duplicata
@endif
--}} @php $l = 0; $sommeMoyenne = 0; $sommeCredit1 = 0; $sommeCredit2 = 0; $couleur = ''; @endphp @foreach ($ues1 as $ue) @php $sommeCredit1 += $ue->credit; $moyenne = 0; $compte = 0; $ra = 0; $notes = DB::connection('tenant') ->table('noteEcu') ->where([['matricule', $etudiant->matricule], ['idFiliere', $etudiant->idFiliere], ['code_unite', $ue->code_unite], ['annee', $etudiant->annee], ['niveauFormation', $etudiant->niveauFormation], ['annee_acad', $ue->annee_acad]]) ->get(); foreach ($notes as $note) { if ($note->modifRa == 'YES') { $ra = 1; } if ($ue->moy_pondere == 'NO') { $moyenne += $note->noteEcu; $compte++; } else { $moyenne += $note->noteEcu * DB::connection('tenant') ->table('ecu') ->where([['insertion', 'NO'], ['code_unite', $note->code_unite], ['code_ecu', $note->code_ecu], ['annee', $note->annee], ['niveauFormation', $note->niveauFormation], ['annee_acad', $note->annee_acad]]) ->first()->credit; $compte += DB::connection('tenant') ->table('ecu') ->where([['insertion', 'NO'], ['code_unite', $note->code_unite], ['code_ecu', $note->code_ecu], ['annee', $note->annee], ['niveauFormation', $note->niveauFormation], ['annee_acad', $note->annee_acad]]) ->first()->credit; } } if ($compte == 0) { $compte = 1; } $moyenne /= $compte; $moyenne = sprintf('%.2f', $moyenne); $sommeMoyenne += $moyenne; if ($ue->type_ue == 0) { $couleur = '#000000'; } elseif ($ue->type_ue == 1) { $couleur = '#ff0000'; } elseif ($ue->type_ue == 2) { $couleur = '#0000ff'; } elseif ($ue->type_ue == 3) { $couleur = '#008100'; } $creditCapitalise += $creditValide[$l]; @endphp @php $l++; @endphp @endforeach @foreach ($ues2 as $ue) @php $sommeCredit2 += $ue->credit; $moyenne = 0; $compte = 0; $ra = 0; $notes = DB::connection('tenant') ->table('noteEcu') ->where([['matricule', $etudiant->matricule], ['idFiliere', $etudiant->idFiliere], ['code_unite', $ue->code_unite], ['annee', $etudiant->annee], ['niveauFormation', $etudiant->niveauFormation], ['annee_acad', $ue->annee_acad]]) ->get(); foreach ($notes as $note) { if ($note->modifRa == 'YES') { $ra = 1; } if ($ue->moy_pondere == 'NO') { $moyenne += $note->noteEcu; $compte++; } else { $moyenne += $note->noteEcu * DB::connection('tenant') ->table('ecu') ->where([['insertion', 'NO'], ['code_unite', $note->code_unite], ['code_ecu', $note->code_ecu], ['annee', $note->annee], ['niveauFormation', $note->niveauFormation], ['annee_acad', $note->annee_acad]]) ->first()->credit; $compte += DB::connection('tenant') ->table('ecu') ->where([['insertion', 'NO'], ['code_unite', $note->code_unite], ['code_ecu', $note->code_ecu], ['annee', $note->annee], ['niveauFormation', $note->niveauFormation], ['annee_acad', $note->annee_acad]]) ->first()->credit; } } if ($compte == 0) { $compte = 1; } $moyenne /= $compte; $moyenne = sprintf('%.2f', $moyenne); $sommeMoyenne += $moyenne; if ($ue->type_ue == 0) { $couleur = '#000000'; } elseif ($ue->type_ue == 1) { $couleur = '#ff0000'; } elseif ($ue->type_ue == 2) { $couleur = '#0000ff'; } elseif ($ue->type_ue == 3) { $couleur = '#008100'; } $creditCapitalise += $creditValide[$l]; @endphp @php $l++; @endphp @endforeach
Code Unités d'Enseignement (UE) Période Crédits affectés Crédits obtenus Fré* Note Grade ECTS Décision du Jury
SEMESTRE {{ $idSemestre[1] }}
{{ $ue->code_unite }} {{ $ue->intituleUnite }} {{ Illuminate\Support\Facades\DB::connection('tenant')->table('academique')->where('annee_acad', $ue->annee_acad)->first()->periode }} {{ $ue->credit }} {{ $creditValide[$l] }} {{ $frequence[$l] }} {{ $moyenne }} {{ App\Helpers\GradeHelpers::grade($moyenne) }} @if ($creditValide[$l] == 0) Non Validé @else Validé @endif
SEMESTRE {{ $idSemestre[2] }}
{{ $ue->code_unite }} {{ $ue->intituleUnite }} {{ Illuminate\Support\Facades\DB::connection('tenant')->table('academique')->where('annee_acad', $ue->annee_acad)->first()->periode }} {{ $ue->credit }} {{ $creditValide[$l] }} {{ $frequence[$l] }} {{ $moyenne }} {{ App\Helpers\GradeHelpers::grade($moyenne) }} @if ($creditValide[$l] == 0) Non Validé @else Validé @endif
Total crédit de la formation Total UE entamées Total UE validées semestre(s) {{ $idSemestre[1] }} @if ($idSemestre[2] != 0) & {{ $idSemestre[2] }} @endif Total UE restant à valider semestre(s) {{ $idSemestre[1] }} @if ($idSemestre[2] != 0) & {{ $idSemestre[2] }} @endif Total crédits cumulés dans le cursus Total crédits capitalisés semestre(s) {{ $idSemestre[1] }} @if ($idSemestre[2] != 0) & {{ $idSemestre[2] }} @endif
{{ $creditFormation }} {{ $uesEntamme }} {{ $uesEntamme - $uesRestant }} {{ $uesRestant }} {{ $creditCumule }} {{ $creditCapitalise }}
@php $moyenneGlobal = $sommeMoyenne / $l; date_default_timezone_set('Africa/Porto-Novo'); $mois = ['Janvier', 'Février', 'Mars', 'Avril', 'Mai', 'Juin', 'Juillet', 'Août', 'Septembre', 'Octobre', 'Novembre', 'Décembre']; @endphp
*Fréquence d'inscription dans l'UE {{$etablissement->ville.', le '.now()->format('d').' '.$mois[now()->format('n')-1].' '.now()->format('o')}}