@if($whatlearns->isNotEmpty())
{{ __('What learn') }}
@foreach($course['whatlearns'] as $wl)
@if($wl->status ==1)
@endif
@endforeach
@endif
{{ __('Meetings') }}
@auth
@php
$user_enrolled = App\Order::where('course_id', $course->id)->where('user_id', Auth::user()->id) ->first();
$bundle = App\Order::where('user_id', Auth::User()->id)->where('bundle_id', '!=', NULL)->get();
$course_id = array();
// foreach($bundle as $b)
// {
// $bundle = App\BundleCourse::where('id', $b->bundle_id)->first();
// array_push($course_id, $bundle->course_id);
// }
$course_id = array_values(array_filter($course_id));
$course_id = array_flatten($course_id);
@endphp
@if( $user_enrolled != NULL || Auth::user()->role == 'admin' || isset($course_id) || in_array($course->id, $course_id))
@if( ! $bigblue->isEmpty() )
{{ __('Big Blue Meetings') }}
@foreach($bigblue as $bbl)
@if($bbl->is_ended != 1)
@php
// Ensure $meeting->paid_meeting_price is a number
$paidMeetingPrice = (float) $bbl->paid_meeting_price;
$isPaid = App\PaidMettings::where('user_id', auth()->id())
->where('meeting_id', $bbl->id)
->where('amount', '>=', $paidMeetingPrice)
->exists();
@endphp
@endif
@endforeach
@endif
@if( ! $meetings->isEmpty() )
{{ __('Zoom Meetings') }}
@foreach($meetings as $meeting)
@php
// Ensure $meeting->paid_meeting_price is a number
$paidMeetingPrice = (float) $meeting->paid_meeting_price;
$isPaid = App\PaidMettings::where('user_id', auth()->id())
->where('meeting_id', $meeting->id)
->where('amount', '>=', $paidMeetingPrice)
->exists();
@endphp
@endforeach
@endif
{{-- googlemeeting start --}}
@if($gsetting->googlemeet_enable == '1')
@if( ! $googlemeetmeetings->isEmpty() )
{{__('Google Meetings')}}
@foreach($googlemeetmeetings as $meeting)
@endforeach
@endif
@endif
{{-- googlemeeting end --}}
{{-- jitsi start --}}
@if($gsetting->jitsimeet_enable == '1')
@if( ! $jitsimeetings->isEmpty() )
Jitsi Meetings
@foreach($jitsimeetings as $meeting)
@endforeach
@endif
@endif
{{-- jitsi end --}}
@endif
@endauth
{{ __('Description') }}
{!! $course->detail !!}
@php
$alreadyrated = App\ReviewRating::where('course_id', $course->id)->limit(1)->first();
@endphp
@if($alreadyrated == !NULL)
@if($alreadyrated->featured == 1)
{{ __('Featured Review') }}
@if(isset($alreadyrated))
@foreach($coursereviews as $rating)
@if($rating->review == !null && $rating->featured == 1)
{{ str_limit($rating->user->fname ?? '', $limit = 1, $end = '') }}{{ str_limit($rating->user->lname ?? '', $limit = 1, $end = '') }}
@if(isset($rating->user)) {{ $rating->user['fname'] }} {{ $rating->user['lname'] }} @endif
{{ date('jS F Y', strtotime($rating['created_at'])) }}
{{ $rating['review'] }}
@auth
{{ __('helpful') }}?
@php
$help = App\ReviewHelpful::where('user_id', Auth::User()->id)->where('review_id', $rating->id)->first();
@endphp
@if(isset($help['review_like']) == '1')
@else
@endif
@if(isset($help['review_dislike']) == '1')
@else
@endif
{{ __('Report') }}
@endauth
@endif
@endforeach
@endif
@endif
@endif
@auth
@endauth