@if($curso->imagen) {{ $curso->titulo }} @endif

{{ $curso->titulo }}

Instructor: {{ $curso->instructor->name }} {{ ucfirst($curso->nivel) }} @if($curso->categoria) {{ $curso->categoria }} @endif

{{ $curso->descripcion }}

Lecciones del Curso

@foreach($curso->lecciones as $index => $leccion)
Lección {{ $index + 1 }}

{{ $leccion->titulo }}

@if($leccion->descripcion)

{{ $leccion->descripcion }}

@endif
@if($leccion->duracion) {{ $leccion->duracion }} min @endif
@endforeach
${{ number_format($curso->precio, 2) }}
{{ $curso->totalEstudiantes() }} estudiantes
@if($curso->duracion)
{{ $curso->duracion }} horas de contenido
@endif
{{ $curso->lecciones->count() }} lecciones
@if($estaInscrito()) Ir a Mis Cursos @else @endif