@extends('layouts.app') @section('title', 'Bulletins — ' . $class->name) @section('heading', 'Bulletins — ' . $class->name) @section('subheading', $period->name) @section('content')
Toutes les classes
@if ($cards->where('status', '!=', 'draft')->isNotEmpty()) Imprimer la classe @endif @can('update', $class) @if ($cards->where('status', 'draft')->isNotEmpty())
@csrf
@endif @endcan
@if ($missing->isNotEmpty())
{{ $missing->count() }} élève(s) sans bulletin : aucune note n'a encore été saisie pour eux.
{{ $missing->map(fn ($e) => $e->student->fullName())->join(', ') }}
@endif
{{ $cards->count() }} bulletin{{ $cards->count() > 1 ? 's' : '' }}
@forelse ($cards as $card) @empty @endforelse
Rang Élève Moyenne Conduite Appréciation Statut
{{ $card->rankLabel() ?? '—' }} {{ $card->enrollment->student->last_name }}, {{ $card->enrollment->student->first_name }} {{ $card->general_average !== null ? number_format($card->general_average, 2, ',', ' ') : '—' }} {{ $card->conduct ?: '—' }} {{ \Illuminate\Support\Str::limit($card->teacher_comment, 60) ?: '—' }} @switch($card->status) @case('draft') Brouillon @break @case('validated') Figé @break @case('published') Publié @break @endswitch
Aucun bulletin : aucune note n'a été saisie pour cette classe sur cette période.
@endsection