@extends('layouts.base', [ "breadcrumb" => [ // see partials/breadcrumb.blade.php for default options "title" => "ETABLIR LE TABLEAU DE SPÉCIFICATION", // "showNav" => true, "nav" => [ "Dashboard" => route("home"), "Tableau de spécification" => "", ], "btnText" => "GestStudent v17.04", ] ]) @section('title', "Tableau de spécification | GestStudent Admin") @section('css') @endsection @section('content')
@csrf
@csrf

TABLEAU DE SPÉCIFICATION

Filière : {{$data['filiere']->sigleFilieres}} & Année académique : {{$data['periode']}}

@foreach ($data['annees'] as $annee) @php $idSemestre[1] = ($annee * 2) - 1; $idSemestre[2] = $annee * 2; $sumCredit[$idSemestre[1]] = $data["unites"][$annee][$idSemestre[1]]->sum('credit'); $sumCredit[$idSemestre[2]] = $data["unites"][$annee][$idSemestre[2]]->sum('credit'); $cpt = 0; @endphp @foreach ($data["unites"][$annee][$idSemestre[1]] as $ue) @php $cpt++; $classCredit = ($cpt%2)? "odd" : "even"; $isFirstEcu = true; @endphp @foreach ($data["ecues"][$annee][$ue->code_unite] as $ecu) @if ($isFirstEcu) @php $isFirstEcu = false; @endphp @else @endif @endforeach @endforeach @foreach ($data["unites"][$annee][$idSemestre[2]] as $ue) @php $cpt++; $couleur = ($ue->type_ue==0)?'#000000':(($ue->type_ue==1)?'#ff0000':(($ue->type_ue==2)?'#0000ff':'#008100')); $classCredit = ($cpt%2)? "odd" : "even"; $isFirstEcu = true; @endphp @foreach ($data["ecues"][$annee][$ue->code_unite] as $ecu) @if ($isFirstEcu) @php $isFirstEcu = false; @endphp @else @endif @endforeach @endforeach
# CRÉDIT UE CODE UE
INTITULÉ UNITÉ D'ENSEIGNEMENT
CODE EC INTITULÉ ÉLÉMENT CONSTITUTIF (EC) POIDS EC
{{$sumCredit[$idSemestre[1]]}} SEMESTRE {{$idSemestre[1]}}
code_unite]->count()}}">{{$cpt}} code_unite]->count()}}" >{{$ue->credit}} code_unite]->count()}}" >{{$ue->code_unite}} code_unite]->count()}}" class="type_{{$ue->type_ue}}">{{$ue->intituleUnite}}{{$ecu->code_ecu}} {{$ecu->intituleEcu}} {{$ecu->credit}}
{{$ecu->code_ecu}} {{$ecu->intituleEcu}} {{$ecu->credit}}
{{$sumCredit[$idSemestre[2]]}} SEMESTRE {{$idSemestre[2]}}
code_unite]->count()}}">{{$cpt}} code_unite]->count()}}" >{{$ue->credit}} code_unite]->count()}}" >{{$ue->code_unite}} code_unite]->count()}}" class="type_{{$ue->type_ue}}">{{$ue->intituleUnite}}{{$ecu->code_ecu}} {{$ecu->intituleEcu}} {{$ecu->credit}}
{{$ecu->code_ecu}} {{$ecu->intituleEcu}} {{$ecu->credit}}
TOTAL CRÉDITS SEMESTRES {{$idSemestre[1]}} & SEMESTRE {{$idSemestre[2]}} {{$sumCredit[$idSemestre[1]] + $sumCredit[$idSemestre[2]]}}


@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('script') @endsection