@extends('layouts.dashboard') @section('title', __('My Courses')) @section('page_title', __('My Courses')) @section('content') @include('partials.how-it-works', ['key' => 'instructor.courses'])

{{ __('My Courses') }}

{{ __('Manage and create your courses') }}

@if(module_enabled('ai') && Route::has('instructor.ai.course.new') && setting('ai_generator_enabled', '1') === '1') {{ __('Build with AI') }} @endif {{ __('New Course') }}
@forelse ($courses as $course) @empty @endforelse
{{ __('Course') }} {{ __('Status') }} {{ __('Students') }} {{ __('Price') }} {{ __('Actions') }}
{{ $course->title }}
{{ $course->short_description }}
@php $badge = ['draft' => 'secondary', 'pending' => 'warning', 'approved' => 'success', 'rejected' => 'danger'][$course->approval_status] ?? 'secondary'; @endphp {{ status_label($course->approval_status) }} {{ $course->enrollments_count }} @if ($course->isFree()) {{ __('Free') }} @else {{ money($course->currentPrice()) }} @endif
@csrf @method('DELETE')
{{ __('You haven\'t created any courses yet.') }}
{{ $courses->links() }}
@endsection