@extends('layout.template') @section('intitule')
ETABLIR LE BILAN D'INSERTION DES NOTES PAR EC
@endsection @section('breadcrumb') @endsection @section('styles') @endsection @section('main')

BILAN INSERTION : {{ $data['session'] == 0 ? 'NORMALE' : 'RATTRAPAGE' }}

Filière : {{ $data['sigle'] }} & Année académique : {{ Session::get('RESULTAT_DATA')['RESULTAT_YEAR']->periode }}

@foreach ($data['annees'] as $annee)
@php if ($annee->annee == 1) { $ids[0] = 1; $ids[1] = 2; } elseif ($annee->annee == 2) { $ids[0] = 3; $ids[1] = 4; } elseif ($annee->annee == 3) { $ids[0] = 5; $ids[1] = 6; } $sumCredit = App\Models\ElementC::where(['idFiliere' => $data['idFiliere'], 'annee' => $data['etudeYear'], 'niveauFormation' => $data['formation'], 'annee_acad' => $data['acadYear']])->sum('credit'); $j = 0; @endphp @for ($k = 0; $k < 2; $k++) @php $sumCreditSem = App\Models\UnitesE::where(['idFIliere' => $data['idFiliere'], 'annee' => $data['etudeYear'], 'niveauFormation' => $data['formation'], 'annee_acad' => $data['acadYear'], 'semestre' => $ids[$k]])->sum('credit'); if ($sumCreditSem < 30) { $color = '#ff0000'; } else { $color = '#00ffff'; } @endphp @php $inser = $data['session'] == 0 ? 'YES' : 'NO'; $unites = App\Models\UnitesE::where(['idFiliere' => $data['idFiliere'], 'annee' => $data['etudeYear'], 'niveauFormation' => $data['formation'], 'annee_acad' => $data['acadYear'], 'semestre' => $ids[$k]])->get(); @endphp @foreach ($unites as $unite) @php $c = App\Http\Helpers\AdditionalHelpers::couleurAlterner(); if ($unite->type_ue == 0) { $couleur = '#000000'; } elseif ($unite->type_ue == 1) { $couleur = '#ff0000'; } elseif ($unite->type_ue == 2) { $couleur = '#0000ff'; } elseif ($unite->type_ue == 3) { $couleur = '#008100'; } $ecus = $data['session'] == 0 ? App\Models\ElementC::where(['idFiliere' => $data['idFiliere'], 'annee' => $data['etudeYear'], 'annee_acad' => $data['acadYear'], 'code_unite' => $unite->code_unite, 'insertion' => $inser])->get() : App\Models\ElementC::where(['idFiliere' => $data['idFiliere'], 'annee' => $data['etudeYear'], 'annee_acad' => $data['acadYear'], 'code_unite' => $unite->code_unite, 'rattrapage' => $inser])->get(); $total = $ecus->count(); @endphp @if ($total > 0) @php $j++; @endphp @for ($i = 1; $i < $ecus->count(); $i++) @endfor @endif @endforeach @endfor @php if ($sumCredit < 60) { $color = '#ff0000'; } else { $color = '#00ffff'; } @endphp
# CREDIT UE CODE UE
INTITULE UNITE D'ENSEIGNEMENT
CODE EC INTITULE ELEMENT CONSTITUTIF (EC) POIDS EC
{{ $sumCreditSem }} SEMESTRE {{ $ids[$k] }}
{{ $j }} {{ $unite->credit }} {{ $unite->code_unite }} {{ $unite->intituleUnite }} {{ $ecus[0]->code_ecu }} {{ $ecus[0]->intituleEcu }} {{ $ecus[0]->credit }}
{{ $ecus[$i]->code_ecu }} {{ $ecus[$i]->intituleEcu }} {{ $ecus[$i]->credit }}
TOTAL CREDIT SEMESTRE {{ $ids[0] }} & SEMESTRE {{ $ids[1] }} {{ $sumCredit }}

@endforeach
LEGENDE TABLEAU DE SPECIFICATION
Unité de Connaissance Fondamentales
Unité de Spécialité
Unité de Méthodologie
Unité de Culture Générale
@endsection @section('scripts') @endsection