{{$escola->logotipo}}
{{ $escola->nome }}
Pauta de Aproveitamento Pedagógico - {{$anoAtivo->ano}}
{{$minhaClasse->nome}} - Disciplina: {{$disciplina->nome}}
@php use Illuminate\Support\Str; @endphp
@for ($i = 1; $i <= 4; $i++) @endfor @for ($i = 1; $i <= 4; $i++) @endfor @for ($i = 1; $i <= 4; $i++) @endfor @foreach($pautas as $aluno) @php $mediaFinal = 0; @endphp @foreach(range(1, 3) as $trimestre) @php // 4 testes (ACS) $testes = [ $aluno->{'teste1Tr' . $trimestre}, $aluno->{'teste2Tr' . $trimestre}, $aluno->{'teste3Tr' . $trimestre}, $aluno->{'teste4Tr' . $trimestre}, ]; $validos = array_filter($testes, fn($t) => $t > 0); $mediaTestes = count($validos) > 0 ? array_sum($validos) / count($validos) : 0; $notaFinal = round((2 * $mediaTestes + $aluno->{'apTr' . $trimestre}) / 3); $mediaFinal += $notaFinal; @endphp @foreach($testes as $teste) @endforeach @endforeach @endforeach
1º Trimestre 2º Trimestre 3º Trimestre M. Anual
Nr Nome G
ACS
M.
ACS
AT MT
ACS
M.
ACS
AT MT
ACS
M.
ACS
AT MT
{{ $i }}ª{{ $i }}ª{{ $i }}ª
{{ $aluno->numero }} {{ $aluno->aluno->pessoa->nome }} {{ substr($aluno->aluno->pessoa->genero, 0, 1) }}{{ $teste > 0 ? $teste : '' }} {{ $mediaTestes > 0 ? round($mediaTestes) : '' }} {{ $aluno->{'apTr' . $trimestre} > 0 ? $aluno->{'apTr' . $trimestre} : '' }} @if($aluno->{'apTr' . $trimestre} > 0) {{ $notaFinal }} @endif @if($aluno->apTr1 > 0 && $aluno->apTr2 > 0 && $aluno->apTr3 > 0) {{ round($mediaFinal / 3) }} @endif

O(a) Professor(a)
____________________________________________