@extends('web.default.panel.layouts.panel_layout') @push('styles_top') @endpush @section('content')

{{ trans('update.overview') }}

{{ $totalCourses }} {{ trans('update.total_courses') }}
{{ $releasedCourses }} {{ trans('update.released_courses') }}
{{ $notReleased }} {{ trans('update.not_released') }}
{{ $followers }} {{ trans('update.followers') }}

{{ trans('update.my_upcoming_courses') }}

get('only_not_released_courses','') == 'on') checked @endif class="custom-control-input" id="onlyReleasedSwitch">
@if(!empty($upcomingCourses) and !$upcomingCourses->isEmpty()) @foreach($upcomingCourses as $upcomingCourse)
@if(!empty($upcomingCourse->webinar_id)) {{ trans('update.released') }} @else @switch($upcomingCourse->status) @case(\App\Models\UpcomingCourse::$active) {{ trans('public.published') }} @break @case(\App\Models\UpcomingCourse::$isDraft) {{ trans('public.draft') }} @break @case(\App\Models\UpcomingCourse::$pending) {{ trans('public.waiting') }} @break @case(\App\Models\UpcomingCourse::$inactive) {{ trans('public.rejected') }} @break @endswitch @endif @if(!empty($upcomingCourse->course_progress))
@endif

{{ $upcomingCourse->title }} {{ trans('webinars.'.$upcomingCourse->type) }}

@if($upcomingCourse->canAccess($authUser)) @endif
{{ trans('public.item_id') }}: {{ $upcomingCourse->id }}
{{ trans('public.category') }}: {{ !empty($upcomingCourse->category_id) ? $upcomingCourse->category->title : '' }}
@if(!empty($upcomingCourse->duration))
{{ trans('public.duration') }}: {{ convertMinutesToHourAndMinute($upcomingCourse->duration) }} Hrs
@endif @if(!empty($upcomingCourse->publish_date))
{{ trans('update.estimated_publish_date') }}: {{ dateTimeFormat($upcomingCourse->publish_date, 'j M Y H:i') }}
@endif
{{ trans('public.price') }}: {{ (!empty($upcomingCourse->price)) ? handlePrice($upcomingCourse->price) : trans('public.free') }}
{{ trans('update.followers') }}: {{ $upcomingCourse->followers_count ?? 0 }}
@endforeach
{{ $upcomingCourses->appends(request()->input())->links('vendor.pagination.panel') }}
@else @include(getTemplate() . '.includes.no-result',[ 'file_name' => 'webinar.png', 'title' => trans('update.you_not_have_any_upcoming_courses'), 'hint' => trans('update.you_not_have_any_upcoming_courses_hint') , 'btn' => ['url' => '/panel/upcoming_courses/new','text' => trans('update.create_a_upcoming_course') ] ]) @endif
@endsection @push('scripts_bottom') @endpush