@extends('layout.template') @section('intitule')

INSERTION DES NOTES: {{ $data['intituleUE'] }}

@endsection @section('breadcrumb') @endsection @section('styles') @endsection @section('main')

Notes des étudiants:Rattrapages

Ce formulaire permet de renseigner la note des étudiants...

@if ($data['modeResultat'] == 'U')
{{ $data['intituleUE'] }}
@foreach ($data['students'] as $student) @php $code_ecu = $data['ecus'][0]->code_ecu; $noteEcu = App\Models\NoteEcu::whereRaw('idFiliere=? AND annee=? AND niveauFormation=? AND annee_acad=? AND code_unite=? AND code_ecu=? AND matricule=?', [$data['idFiliere'], $data['annee'], $data['niveauFormation'], $data['annee_acad'], $data['code_unite'], $code_ecu, $student->matricule])->first(); $noteEcu = $noteEcu ? $noteEcu->noteEcu : 0; @endphp @endforeach
# Matricule Sexe Noms & Prénoms Notes
{{ $counter }} {{ $student->matricule }} {{ $student->sexe }} {{ $student->nomPrenom }} {{ $noteEcu }}
@else
@php $dat = 0; @endphp @foreach ($data['ecus'] as $ecu)
{{ $ecu->intituleEcu }}
@php $dat++; $counterEtu = 0; @endphp
@foreach ($data['students'] as $student) @php $counterEtu++; $noteEcu = App\Models\NoteEcu::whereRaw('idFiliere=? AND annee=? AND niveauFormation=? AND annee_acad=? AND code_unite=? AND code_ecu=? AND matricule=?', [$data['idFiliere'], $data['annee'], $data['niveauFormation'], $data['annee_acad'], $data['code_unite'], $ecu->code_ecu, $student->matricule])->first(); $noteEcu = $noteEcu ? $noteEcu->noteEcu : ''; $noteEcu = ""; //donnée de test $id = $noteEcu ? $noteEcu->noteEcu : ''; @endphp {{-- @if ($data['plafond'] == 1) --}} {{-- @else @endif --}} @endforeach
# Matricule Noms & Prénoms Notes
{{ $counterEtu }} {{ $student->matricule }} {{ $student->nom . ' ' . $student->prenom }} matricule }} id="note$numbertotale" value="{{ $noteEcu }}" style="width:130px" required> {{ $noteEcu }}
@endforeach
@endif
@endsection @section('scripts') {{-- --}} @endsection