@extends('layout.app') @section('title', __('home.lecture_page')) @section('content') @if (session('success')) {{ session('success') }} @endif @if (session('error')) {{ session('error') }} @endif {{ __('home.home') }} {{ $lecture->title }} @if($lecture->max_students == 1) {{ __('home.private') }} @endif {{ $lecture->title }} @if($lecture->max_students == 1) {{ __('home.private') }} @endif {{-- {{ $lecture->description }} --}} {{ __('home.created_by') }} {{ $lecture->teacher->name ?? 'Not Available' }} {{ __('home.lecture_details') }} {{ $lecture->description }} {{ __('home.lesson_objectives') }} {!! $lecture->what_learn !!} @if(auth()->check() && auth()->user()->student && auth()->user()->student->hasPaidForLecture($lecture->id)) @if($lecture->files->isNotEmpty()) {{ __('home.lecture_files') }} @foreach($lecture->files as $file) {{ $file->original_name }} @endforeach @foreach($lecture->files as $file) {{ $file->original_name }} @if(str_contains($file->file_type, 'pdf')) @elseif(str_contains($file->file_type, 'image')) @endif @endforeach @endif @endif @if(auth()->check() && auth()->user()->student && auth()->user()->student->hasPaidForLecture($lecture->id)) {{ __('home.zoom_link') }} ({{ __('home.lecture_will_start_at') }} {{ \Carbon\Carbon::parse($lecture->start_time)->format('l, F j, Y h:i A') }}) @php $endTime = \Carbon\Carbon::parse($lecture->start_time)->addMinutes($lecture->duration); @endphp @if (\Carbon\Carbon::parse($lecture->start_time)->isFuture()) @if ($lecture->lecture_zoom) {!! nl2br(preg_replace('/(https?:\/\/[^\s]+)/', '$1', e($lecture->lecture_zoom))) !!} @else {{ __('home.zoom_link_not_provided') }} @endif @elseif (\Carbon\Carbon::now()->greaterThanOrEqualTo($endTime)) @if ($lecture->lecture_video) {{ __('home.lecture_has_ended') }} {{ __('home.click_to_watch_video') }} {{ __('home.lecture_video') }} Your browser does not support the video tag. @else {{ __('home.lecture_video_not_uploaded') }} @endif @else {{ __('home.lecture_has_not_started') }} @endif @else {{ __('home.need_to_purchase_session') }} @endif @endsection
{{ $lecture->description }}