@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') }}

@endif @if(count($zoommeeting) > 0)

{{ __('frontstaticword.ZoomMeetings') }}

@foreach($zoommeeting as $meeting)
@if($meeting['meeting_title'] !== NULL && $meeting['meeting_title'] !== '') course @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'] !== '') student @else student @endif