@extends('layouts.app') @section('title', $course->title . ' - Edunetra') @section('content') @if(session('enrollment_success'))
🎉 Welcome to {{ session('course_title') }}!

You're now enrolled and ready to start learning. Your course is available in "My Courses".

@endif
{{ ucfirst($course->level) }} {{ $course->duration_weeks }} weeks {{ $course->sessions->count() }} sessions

{{ $course->title }}

{{ $course->description }}

{{ $course->teacher->name }} {{ $course->getEnrolledStudentsCount() }} students enrolled {{ $course->start_date ? $course->start_date->format('M d, Y') : 'Flexible start' }}

Ready to Start Learning?

Join thousands of students

@auth @if($isEnrolled)
You are enrolled in this course
Progress {{ $enrollment->progress }}%
Continue Learning @if(auth()->user()->isTeacher() && $course->teacher_id === auth()->id()) Course Management @endif
@csrf @method('DELETE')
@else
@csrf
@endif @else
Login to Enroll

Don't have an account? Sign up

@endauth
@guest
Ready to Start Learning?

Create an account or login to enroll in this course and access all learning materials, track your progress, and earn certificates.

@endguest @auth @if(!$isEnrolled)
Enroll to Access Course Content

Click "Enroll Now" above to join this course and start learning. Once enrolled, you can access all sessions and track your progress.

@endif @endauth

About This Course

{{ $course->description }}

This comprehensive {{ $course->duration_weeks }}-week program is designed to provide students with a solid foundation in English learning, specifically tailored for young learners with visual impairments. Our innovative teaching methods ensure accessibility while maintaining high educational standards.

Course Sessions

@if(auth()->check() && auth()->user()->isTeacher() && $course->teacher_id === auth()->id()) @endif
@for($i = 1; $i <= 8; $i++) @php $session = $course->sessions->where('session_number', $i)->first(); @endphp
@if($session) @auth @if($isEnrolled)
{{ $i }} SESI {{ $i }}
@if(method_exists($session, 'isCompleted') && $session->isCompleted(auth()->id())) @endif
@else @endif @else @endauth @else @endif
@endfor
@for($i = 1; $i <= 8; $i++) @php $session = $course->sessions->where('session_number', $i)->first(); @endphp
@if($session)
{{ $session->session_number }}

{{ $session->title }}

{{ $session->description }}

{{ $session->duration_minutes }} minutes @if($isEnrolled && $session->isCompleted(auth()->id())) Completed @endif
@if($session->content)
Session Overview:

{{ Str::limit($session->content, 200) }}

@endif
@auth @if($isEnrolled)
@if(method_exists($session, 'isCompleted') && $session->isCompleted(auth()->id())) Review Session @else Start Session @endif @if($session->materials && count($session->materials) > 0) {{ count($session->materials) }} materials available @endif
@else
@endif @else
@endauth
@else
Session {{ $i }} - Coming Soon

This session is being prepared and will be available soon.

@endif
@endfor

Your Instructor

{{ substr($course->teacher->name, 0, 1) }}

{{ $course->teacher->name }}

{{ $course->teacher->bio ?? 'Experienced educator specializing in inclusive learning and accessible education for students with visual impairments.' }}

Course Information

{{ $course->duration_weeks }}
Weeks
{{ $course->sessions->count() }}
Sessions
{{ ucfirst($course->level) }}
Level
{{ $course->getEnrolledStudentsCount() }}
Students
@if($course->start_date)
{{ $course->start_date->format('M d, Y') }}
Start Date
@endif
@if($course->tags)

Tags

@foreach($course->tags as $tag) {{ $tag }} @endforeach
@endif

Quick Actions

@endsection