/home/techb158/ileadtechnology.com/resources/views/front
Edit: /home/techb158/ileadtechnology.com/resources/views/front/my_course.blade.php (39425B)
@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)
@endforeach
@endif
@if(count($zoommeeting) > 0)
{{ __('frontstaticword.ZoomMeetings') }}
@foreach($zoommeeting as $meeting)
@if($meeting['meeting_title'] !== NULL && $meeting['meeting_title'] !== '')
->toBase64() }})
@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
->toBase64() }})
@endif
by {{ $enrol->courses->user->fname }}
course_id)->where('user_id', Auth::User()->id)->first();
?>
@if(!empty($progress))
all_chapter_id;
$total_count = count($total_class);
$total_per = 100;
$read_class = $progress->mark_chapter_id;
$read_count = count($read_class);
$progres = ($read_count/$total_count) * 100;
?>
% {{ __('frontstaticword.Complete') }}
@else
{{ __('frontstaticword.StartCourse') }}
@endif
@endif
@endif
@else
@php
$bundle_order = App\BundleCourse::where('id', $enrol->bundle_id)->first();
@endphp
@foreach($bundle_order->course_id as $bundle_course)
@php
$coursess = App\Course::where('id', $bundle_course)->first();
@endphp
@if($coursess['preview_image'] !== NULL && $coursess['preview_image'] !== '')
@else
->toBase64() }})
@endif
by {{ $coursess->user->fname }}
id)->where('user_id', Auth::User()->id)->first();
?>
@if(!empty($progress))
all_chapter_id;
$total_count = count($total_class);
$total_per = 100;
$read_class = $progress->mark_chapter_id;
$read_count = count($read_class);
$progres = ($read_count/$total_count) * 100;
?>
% {{ __('frontstaticword.Complete') }}
@else
{{ __('frontstaticword.StartCourse') }}
@endif
@endforeach
@endif
@endforeach
{{ __('frontstaticword.MySubscribedCourses') }}
@php
$isSubscriptionCoursesFound = false;
@endphp
@foreach ($enroll as $enrol)
@if ($enrol->status === 1 && $enrol->subscription_status==='active')
@php
$bundle_order = App\BundleCourse::where('id', $enrol->bundle_id)->first();
@endphp
@foreach ($bundle_order->course_id as $bundle_course)
@php
$coursess = App\Course::where('id', $bundle_course)->first();
@endphp
@php
$isSubscriptionCoursesFound = true;
@endphp
@if ($coursess['preview_image'] !== null && $coursess['preview_image'] !== '')
@else
->toBase64() }})
@endif
by {{ $coursess->user->fname }}
id)
->where('user_id', Auth::User()->id)
->first(); ?>
@if (!empty($progress))
all_chapter_id;
$total_count = count($total_class);
$total_per = 100;
$read_class = $progress->mark_chapter_id;
$read_count = count($read_class);
$progres = ($read_count / $total_count) * 100;
?>
% {{ __('frontstaticword.Complete') }}
@else
{{ __('frontstaticword.StartCourse') }}
@endif
@endforeach
@endif
@endforeach
@if (!$isSubscriptionCoursesFound)
@endif
@else
@endif
@endsection