@extends('layouts.app') @section('content')

{{ $portalTitle ?? 'Portal' }} · Histórico

Histórico de matrículas por ano.

@php($portalPrefix = (auth()->user()->role ?? '') === 'aluno' ? 'portal.aluno.' : 'portal.')
Boletins Frequência Avisos
@php($selectedStudent = $students->firstWhere('id', $studentId)) @if ($selectedStudent)

Escola

{{ $selectedStudent->school?->name ?? '-' }}

Turma

{{ $selectedStudent->classroom?->name ?? '-' }}

@endif
@forelse ($enrollments as $enrollment) @empty @endforelse
Ano Escola Turma Status
{{ $enrollment->year }} {{ $enrollment->school?->name ?? '-' }} {{ $enrollment->classroom?->name ?? '-' }} {{ ucfirst($enrollment->status) }}
Nenhuma matrícula encontrada.
{{ $enrollments->links() }}
@endsection