@php $checkSequenceContent = $textLesson->checkSequenceContent(); $sequenceContentHasError = (!empty($checkSequenceContent) and (!empty($checkSequenceContent['all_passed_items_error']) or !empty($checkSequenceContent['access_after_day_error']))); @endphp
{{ $textLesson->title }}
@if($textLesson->accessibility == 'free') {{ trans('public.free') }} @endif
{!! nl2br(clean($textLesson->summary)) !!}
@if(!empty($user) and $hasBought)
checkPassedItem())) ? 'checked' : '' }} >
@endif
{{ trans('public.study_time') }} {{ $textLesson->study_time }} {{ trans('public.minutes') }}
{{ trans('public.attachments') }} {{ $textLesson->attachments_count ?? 0 }}
@if(!empty($checkSequenceContent) and $sequenceContentHasError) @elseif($textLesson->accessibility == 'paid') @if(!empty($user) and $hasBought) {{ trans('public.read') }} @else @endif @else @if(!empty($user) and $hasBought) {{ trans('public.read') }} @else {{ trans('public.read') }} @endif @endif