@extends('layout.template') @section('intitule')
Statistiques : {{ $data['titre'] }}
@endsection @section('breadcrumb') @endsection @section('styles') @endsection @section('main')

Effectif Total

{{ $data['nb2'] }}

Admis

{{ $data['nbadmis'] }}

Enjambé

{{ $data['nbenjambe'] }}

Redouble

{{ $data['nbredouble'] }}

Exclu

{{ $data['nbexclu'] }}

Statistiques Générales

Pourcentage des admis

{{ $data['padmis'] }}%

Pourcentage des enjambés

{{ $data['penjambe'] }}%

Pourcentage des redoublants

{{ $data['predouble'] }}%

Pourcentage des exclus

{{ $data['pexclu'] }}%

Option d'exportation :

@php $admis = 'A'; $enjambe = 'ENJ'; $redouble = 'R'; $exclu = 'E'; $acadYear = Session::get('RESULTAT_DATA')['RESULTAT_YEAR']->annee_acad; @endphp @foreach ($data['lines'] as $line) @php $filiere = App\Models\Filieres::where('idFiliere', $line->idFiliere)->first(); //Admis $admis = App\Models\TabEtudiant::select('tabetudiant.matricule') ->join('tabinscription', 'tabinscription.matricule', '=', 'tabetudiant.matricule') ->where([['resultat', $admis], ['tabinscription.annee_acad', $acadYear], ['idFiliere', $line->idFiliere], ['niveauFormation', $data['formation']], ['annee', $line->annee]]) ->count(); //Enjambe $enjambe = App\Models\TabEtudiant::select('tabetudiant.matricule') ->join('tabinscription', 'tabinscription.matricule', '=', 'tabetudiant.matricule') ->where([['resultat', $enjambe], ['tabinscription.annee_acad', $acadYear], ['idFiliere', $line->idFiliere], ['niveauFormation', $data['formation']], ['annee', $line->annee]]) ->count(); //Redouble $redouble = App\Models\TabEtudiant::select('tabetudiant.matricule') ->join('tabinscription', 'tabinscription.matricule', '=', 'tabetudiant.matricule') ->where([['resultat', $redouble], ['tabinscription.annee_acad', $acadYear], ['idFiliere', $line->idFiliere], ['niveauFormation', $data['formation']], ['annee', $line->annee]]) ->count(); //Exclu $exclu = App\Models\TabEtudiant::select('tabetudiant.matricule') ->join('tabinscription', 'tabinscription.matricule', '=', 'tabetudiant.matricule') ->where([['resultat', $exclu], ['tabinscription.annee_acad', $acadYear], ['idFiliere', $line->idFiliere], ['niveauFormation', $data['formation']], ['annee', $line->annee]]) ->count(); @endphp @endforeach
Filiere Admis Enjambe Redouble Exclu
{{ $filiere->sigleFilieres . $line->annee }} {{ $admis }} {{ $enjambe }} {{ $redouble }} {{ $exclu }}
@endsection @section('scripts') @endsection