@extends('layouts.dashboard') @section('title', __('Courses')) @section('page_title', __('Courses')) @php $statusBadges = [ 'draft' => 'secondary', 'pending' => 'warning', 'approved' => 'success', 'rejected' => 'danger', ]; @endphp @section('content') @include('partials.how-it-works', ['key' => 'admin.courses'])
{{ __('All Courses') }}
{{ __('Reset') }}
@forelse($courses as $course) @empty @endforelse
{{ __('Course') }} {{ __('Instructor') }} {{ __('Category') }} {{ __('Price') }} {{ __('Status') }} {{ __('Actions') }}
{{ \Illuminate\Support\Str::limit($course->title, 50) }}@if($course->isTestSeries()) {{ __('Test Series') }}@endif
{{ __($course->level->name ?? 'โ€”') }} ยท {{ status_label($course->course_type ?? null) }}
{{ $course->instructor->name ?? 'โ€”' }} {{ $course->category->name ?? 'โ€”' }} @if($course->isFree()) {{ __('Free') }} @else {{ money($course->currentPrice()) }} @endif {{ status_label($course->approval_status) }}
@csrf @method('PATCH')
@csrf @method('DELETE')
{{ __('No courses found.') }}
{{ $courses->links() }}
@endsection