@php $checkSequenceContent = $session->checkSequenceContent(); $sequenceContentHasError = (!empty($checkSequenceContent) and (!empty($checkSequenceContent['all_passed_items_error']) or !empty($checkSequenceContent['access_after_day_error']))); @endphp
{!! nl2br(clean($session->description)) !!}
@if(!empty($user) and $hasBought)
date < time()) or $sequenceContentHasError) disabled @endif id="sessionReadToggle{{ $session->id }}" data-session-id="{{ $session->id }}" value="{{ $course->id }}" class="js-text-session-toggle custom-control-input" @if(!empty($session->checkPassedItem())) checked @endif>
@endif
{{ convertMinutesToHourAndMinute($session->duration) }} {{ trans('home.hours') }}
{{ dateTimeFormat($session->date, 'j M Y | H:i') }}
@if($session->isFinished()) @elseif(empty($user)) @elseif($hasBought) @if(!empty($checkSequenceContent) and $sequenceContentHasError) @else {{ trans('public.go_to_class') }} @endif @else @endif