@extends("design_1.web.layouts.app") @push("styles_top") @endpush @section("content")
{{ $course->title }}
{{-- Header --}}
{{ $course->title }} {{ trans('update.text_lesson') }}

{{ $textLesson->title }}

{{ $textLesson->summary }}
@if(!empty($textLesson->study_time))
{{ trans('public.study_time') }}
{{ $textLesson->study_time }} {{ trans('public.min') }}
@endif
{{-- Content --}}
@if(!empty($textLesson->image))
{{ $textLesson->title }}
@endif {!! nl2br($textLesson->content) !!}
{{-- Right Side --}}
{{-- Attachments --}} @if(!empty($textLesson->attachments) and count($textLesson->attachments))

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

@foreach($textLesson->attachments as $attachment) @php $file = $attachment->file; $url = $url = "{$course->getLearningPageUrl()}?type=file&item={$file->id}"; if($file->accessibility == 'paid') { if (!empty($authUser) and $userHasBought) { if($file->downloadable) { $url = "{$course->getUrl()}/file/{$file->id}/download"; } } } else { if($file->downloadable) { $url = "{$course->getUrl()}/file/{$file->id}/download"; } } @endphp
{{ $attachment->file->title }}
{{ $attachment->file->file_type }}
@endforeach
@endif {{-- Text Lessons --}} @if(!empty($course->textLessons) and count($course->textLessons)) @endif
{{-- End Row --}}
{{-- End Container --}}
{{ trans('update.text_lesson') }} {{ $textLesson->order }}/{{ count($course->textLessons) }}
{{ trans('update.you_are_viewing') }}
{{ $textLesson->title }}
@if(!empty($course->textLessons) and count($course->textLessons)) @endif
@endsection @push('scripts_bottom') @endpush