@php $nextSession = $course->nextSession(); /*$lastSession = $course->lastSession(); $isProgressing = false; if($course->start_date <= time() and !empty($lastSession) and $lastSession->date > time()) { $isProgressing=true; }*/ @endphp
{{-- Badges --}} @include("design_1.panel.webinars.my_courses.grid_card.grid_card_badges") {{-- Actions --}} @include("design_1.panel.webinars.my_courses.grid_card.grid_card_actions")
@if($course->isWebinar())
@elseif($course->isTextCourse())
@elseif($course->isCourse())
@endif @if(!empty($nextSession) and $nextSession->date > time() and checkTimestampInToday($nextSession->date))
{{ trans('update.you_have_a_live_session_today') }}
{{ trans('update.join_now') }}
@endif

{{ $course->title }}

@include("design_1.web.components.rate", [ 'rate' => round($course->getRate(),1), 'rateCount' => $course->reviews()->where('status', 'active')->count(), 'rateClassName' => 'mt-12', ])
@if(empty($isInvitedCoursesPage))
{{ count($course->sales) }} {{ trans('public.students') }}
@endif
{{ $course->getAllLessonsCount() }} {{ trans('update.lessons') }}
@if(empty($isInvitedCoursesPage))
{{ handlePrice($course->sales->sum('amount')) }} {{ trans('panel.sales') }}
@endif
{{ convertMinutesToHourAndMinute($course->duration) }} {{ trans('home.hours') }}
@if(!empty($isInvitedCoursesPage))
{{ $course->teacher->full_name }}
{{ trans('panel.invited_by') }}

{{ $course->teacher->full_name }}

@else {{-- Chart --}} @include("design_1.panel.webinars.my_courses.grid_card.grid_card_progress_chart") @endif
@if((!isFreeModeEnabled() || isFreeModeShowPriceEnabled()) and $course->price > 0) @if($course->bestTicket() < $course->price) {{ handlePrice($course->bestTicket(), true, true, false, null, true) }} {{ handlePrice($course->price, true, true, false, null, true) }} @else {{ handlePrice($course->price, true, true, false, null, true) }} @endif @else {{ trans('public.free') }} @endif