@extends('front_end.layouts.home') @php $showRightSidebar = false; @endphp @section('title', 'Instructor Dashboard') @section('left_sidebar') @include('front_end.pages.courses.instructor_left_sidebar') @endsection @section('content')

Instructor Dashboard

Manage your courses and track your performance

{{ $totalCourses }}

Courses

{{ $totalStudents }}

Students

{{ $courses->avg('average_rating') ? number_format($courses->avg('average_rating'), 1) : 'N/A' }}

Avg. Rating

${{ number_format($totalRevenue, 2) }}

Revenue

Your Courses

Manage All Courses
@if($courses->count() > 0)
@foreach($courses as $course) @endforeach
Course Category Price Status Students Rating Actions
{{ $course->category->name ?? 'Uncategorized' }} @if($course->price == 0) Free @elseif($course->discount_price && $course->discount_ends_at > now()) ${{ number_format($course->discount_price, 2) }} ${{ number_format($course->price, 2) }} @else ${{ number_format($course->price, 2) }} @endif {{ $course->is_published ? 'Published' : 'Draft' }} {{ $course->total_students }}
{{ number_format($course->average_rating, 1) }} ({{ $course->reviews_count ?? 0 }})
@else

No Courses Yet

You haven't created any courses yet. Start creating your first course now!

Create Your First Course
@endif

Tips for Course Success

Quality Content

Create engaging videos and clear explanations to keep students engaged.

Stay Engaged

Respond promptly to student questions and provide helpful feedback.

Regular Updates

Keep your course fresh with new content and regular announcements.

@push('scripts') {{-- Charts implementation can be added here when real data is available --}} @endpush @endsection