@extends('theme.master') @section('title', 'My Courses') @section('content') @include('admin.message') {{ __('frontstaticword.MyCourses') }} @php $user_enrolled = App\Order::where('refunded', '0')->where('user_id', Auth::user()->id)->get(); @endphp @foreach($user_enrolled as $enrolled) @php $bigbluemeeting = App\BBL::where('course_id','=',$enrolled->course_id)->where('is_ended','!=',1)->where('link_by','!=', NULL)->get(); $zoommeeting = App\Meeting::where('course_id','=',$enrolled->course_id)->where('link_by','!=', NULL)->get(); @endphp @if(count($bigbluemeeting) > 0) {{ __('frontstaticword.BigBlueMeetings') }} @foreach($bigbluemeeting as $bbl) {{ str_limit($bbl['meetingname'], $limit = 30, $end = '...') }} {{ __('frontstaticword.by') }} @if(isset($bbl->user)) {{ $bbl->user['fname'] }} @endif @if(isset($bbl['start_time'])) Start At: {{ date('d-m-Y | h:i:s A',strtotime($bbl['start_time'])) }} @endif @endforeach @endif @if(count($zoommeeting) > 0) {{ __('frontstaticword.ZoomMeetings') }} @foreach($zoommeeting as $meeting) @if($meeting['meeting_title'] !== NULL && $meeting['meeting_title'] !== '') @endif {{ str_limit($meeting->meeting_title, $limit = 30, $end = '...') }} {{ __('frontstaticword.by') }} @if(isset($meeting->user)) {{ $meeting->user['fname'] }} @endif @if(isset($meeting['start_time'])) Start At: {{ date('d-m-Y | h:i:s A',strtotime($meeting['start_time'])) }} @endif @endforeach @endif @endforeach @php $item = App\Order::where('refunded', '0')->where('user_id', Auth::User()->id)->get(); @endphp @if(count($item) > 0) {{ __('frontstaticword.MyCourses') }} @foreach($enroll as $enrol) @if($enrol->course_id != NULL) @if($enrol->status == 1) @if($enrol->user_id == Auth::User()->id) @if($enrol->courses['preview_image'] !== NULL && $enrol->courses['preview_image'] !== '') @else @endif {{ str_limit($enrol->courses->title, $limit = 35, $end = '...') }} by @if(isset($enrol->courses->user)) {{ $enrol->courses->user->fname }} @endif
{{ __('frontstaticword.by') }} @if(isset($bbl->user)) {{ $bbl->user['fname'] }} @endif
Start At: {{ date('d-m-Y | h:i:s A',strtotime($bbl['start_time'])) }}
{{ __('frontstaticword.by') }} @if(isset($meeting->user)) {{ $meeting->user['fname'] }} @endif
Start At: {{ date('d-m-Y | h:i:s A',strtotime($meeting['start_time'])) }}
by @if(isset($enrol->courses->user)) {{ $enrol->courses->user->fname }} @endif