@extends('layouts.instructor') @section('breadcrumb')

{{__('app.my_courses')}}

@endsection @section('content')
My courses
Total: {{$number_of_course}}
@forelse($courses as $course)
@if($course->status == 1) Published @elseif($course->status == 2) Waiting for Review @elseif($course->status == 3) Hold @elseif($course->status == 4) Draft @else Pending @endif @if($course->learner_accessibility == 'paid') @if(get_currency_placement() == 'after') {{$course->price}} {{ get_currency_symbol() }} @else {{ get_currency_symbol() }} {{$course->price}} @endif @elseif($course->learner_accessibility == 'free') Free @endif course
  • Video({{ @$course->lectures->count() }})
  • Duration({{ @$course->VideoDuration }})
  • Enrolled({{ @$course->orderItems->count() }})
{{ Str::limit($course->title, 40) }}
{{ number_format($course->average_rating, 1) }}
    @include('frontend.course.render-course-rating')
({{ @$course->orderItems->count() }})
Edit
{{ method_field('DELETE') }}
@empty
img
Empty Course
@endforelse @if(@$courses->hasPages()) {{ @$courses->links('frontend.paginate.paginate') }} @endif
@endsection