@extends('layouts.app') @section('title', 'Teacher Dashboard - Edunetra') @section('content')

Teacher Dashboard

Manage your courses, sessions, and track student progress

{{ $stats['total_courses'] }}

Total Courses

{{ $stats['total_students'] }}

Total Students

{{ $stats['published_courses'] }}

Published

{{ $stats['draft_courses'] }}

Drafts

Your Courses

View All Courses
@if($courses->count() > 0)
@foreach($courses->take(6) as $course)
@if($course->image) {{ $course->title }} @else

{{ Str::limit($course->title, 20) }}

@endif
{{ ucfirst($course->status) }} {{ ucfirst($course->level) }}
{{ $course->title }}

{{ Str::limit($course->description, 80) }}

Sessions {{ $course->sessions->count() }}
Students {{ $course->enrollments->where('status', 'enrolled')->count() }}
Duration {{ $course->duration_weeks }}w
@endforeach
@else

No Courses Yet

Start creating your first course to begin teaching!

Create Your First Course
@endif
@endsection