@extends('layouts.base', [ 'breadcrumb' => [ // see partials/breadcrumb.blade.php for default options 'title' => 'Questions', 'nav' => [ 'ECs' => route("teacher.index"), 'Chapitres' => route("teacher.ec_chaps", $chap->idecu), 'Questions' => '#', ], ], ]) @section('title', 'GestStudent NG Questions') @section('css') @endsection @section('content') @php $MIN_NUMBER_OF_RESPONSE = 2; // min number of response for a question @endphp {{-- alert with content --}} @include('partials.alert') {{-- alert settings with content --}} @include('partials.alert-settings') {{-- top stats --}}

Questions niveau facile

{{$stats['F']}}

Questions niveau moyen

{{$stats['M']}}

Questions niveau difficile

{{$stats['D']}}

Total des questions

{{$stats['total']}}

Visualisations des images disponibles

{{$ec->intituleEcu}}

{{"$ec->sigleFilieres | $ec->niveauformation $ec->annee"}}

@if ( $images->count() ) @foreach ($images as $k => $img) @endforeach @endif
Aperçu Description Code de formatage Prévisualiser
{{ $k + 1 }}
{{ 'Image n°'.$img->idimage }}
{{ ($img->description !== null) ? $img->description : 'Pas de description' }}

{{ 'Image n°'.$img->idimage }}

Chapitre n°{{$chap->chapitrenumero}} {{$chap->chapitreintitule}}

Gestion des chapitres Ajout de question {{-- Add question modal --}}
{{-- Questions table --}}
@foreach ($questions as $i => $question) @php $reps = []; if (isset($reponses[$question->idquestion])) { $reps = $reponses[$question->idquestion]; } @endphp @endforeach
Intitulé de la question Niveau Actions
{{ $i + 1 }}. {!! $question->intitulequestion !!} @if ($question->difficulte == "F") Facile @elseif ($question->difficulte == "M") Moyen @else Difficile @endif {{-- Responses modal --}} {{-- Edit question modal --}} {{-- Delete question modal --}}
@endsection @section('script') {{-- include page's specific scripts here --}} @endsection