@extends('layouts.base-refonte', ["fixedHeader" => true]) @section('title','Gestion cours') @section('css') @endsection @section('content') @php $tempChaps = array_column($chapitres,'chapitreintitule','id_chapitre'); $chapSecs = array_column($chapitres,'sections','id_chapitre'); $nbMedias = array_sum(array_map("count", $medias)); // nb of medias of all chapiter @endphp
{{-- alert with content --}} @include('partials.alert') @include('partials.alert', [ "showAlert" => $errors->any(), "success" => false, "msg" => session('msg') ])
Fiche EC
Code : {{$ecu['code_ecu']}}
Intitulé : {{$ecu['intituleEcu']}}
Filière : {{$ecu['intituleFilieres']}}
Niveau : {{findNiveau($ecu['niveauFormation']).' '.$ecu['annee']}}
Crédit{{$ecu['credit'] > 1 ? 's' : ''}} : {{$ecu['credit']}} Cr
Masse horaire : {{$ecu['masse_horaire']}} h
Chapitre{{ count($chapitres) > 1 ? 's' : ''}} : {{count($chapitres)}}
Section{{ $nbSecs > 1 ? 's' : ''}} : {{ $nbSecs }}
Média{{ $nbMedias > 1 ? 's' : ''}} : {{$nbMedias}}
Votre progression
  • @php $p = $nbSecUploaded * 100 / ($nbSecsExpanded ? $nbSecsExpanded : 1); @endphp
    - Cours rendu disponible

    {{ number_format($p,2) }}%{{ $nbSecUploaded.' sections/'.$nbSecsExpanded }}

  • @php if ($ecu['Heures_effectuees'] > $ecu['masse_horaire']) { $p = 100; } else { $p = $ecu['Heures_effectuees'] * 100 / ($ecu['masse_horaire'] ? $ecu['masse_horaire'] : 1); } $heureExec = explode(".",number_format($ecu['Heures_effectuees'],2)); @endphp
    - Heures effectuées

    {{ number_format($p,2) }}% {{ $heureExec[0].'h'.$heureExec[1].'min /'.$ecu['masse_horaire'].'h' }}

@endsection @section('script') @endsection