{{ $curso->nombre }}

Nota Final: @if($notaFinal && is_numeric($notaFinal->promedio)) {{ number_format($notaFinal->promedio, 2) }} @else - @endif

@if($logros->isEmpty())
No hay logros registrados para este curso.
@else @foreach($logros as $logro) @php $notaLogro = $logro->notasLogro() ->where('estudiante_id', $estudianteId) ->where('curso_id', $curso->id) ->first(); @endphp
{{ $logro->nombre }} Nota Logro: @if($notaLogro) {{ number_format($notaLogro->nota, 2) }} @else - @endif
@forelse($logro->subcomponentes as $sub) @php $notaSub = $sub->notas() ->where('estudiante_id', $estudianteId) ->first(); @endphp @empty @endforelse
Subcomponente Peso (%) Nota
{{ $sub->nombre }} {{ $sub->peso }}% @if($notaSub) {{ number_format($notaSub->nota, 2) }} @else - @endif
No hay subcomponentes registrados.
@endforeach @endif