/home/techb158/ileadtechnology.com/resources/views/front
Edit: /home/techb158/ileadtechnology.com/resources/views/front/course_content.blade.php (104510B)
@extends('theme.master')
@section('title', "$course->title")
@section('content')
@include('admin.message')
@include('sweetalert::alert')
@if($course['preview_image'] !== NULL && $course['preview_image'] !== '')
 }})
@else
->toBase64() }})
@endif
@php
//if empty
$z = 0;
$items = App\CourseClass::where('course_id', $course->id)->first();
$coursewatch = App\WatchCourse::where('course_id','=',$course->id)->where('user_id', Auth::User()->id)->first();
if($coursewatch['active'] == 0){
$z = 0;
}else{
$z = 1;
}
@endphp
@if(isset($items))
@if($course->chapter[0]->courseclass[0]->type == "video" || $course->chapter[0]->courseclass[0]->type == "audio")
@if(isset($course->chapter[0]->courseclass[0]))
@if($course->chapter[0]->courseclass[0]->iframe_url == NULL)
@else
@php
$url = Crypt::encrypt($course->chapter[0]->courseclass[0]->iframe_url);
@endphp
@endif
@else
@endif
@endif
@endif
{{ $course->user->fname }}
{{ $course->short_detail }}
@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;
?>
@else
@endif
@if(isset($items))
@if($course->chapter[0]->courseclass[0]->type == "video" || $course->chapter[0]->courseclass[0]->type == "audio")
@if(isset($course->chapter[0]->courseclass[0]))
@if($course->chapter[0]->courseclass[0]->iframe_url == NULL)
@else
@endif
@else
@endif
@endif
@endif
{{ __('frontstaticword.RecentActivity') }}
{{ __('frontstaticword.RecentQuestions') }}
@if($coursequestions->isEmpty())
{{ __('frontstaticword.No') }} {{ __('frontstaticword.RecentQuestions') }}
@else
@php
$questions = App\Question::where('course_id', $course->id)->orderBy('created_at','desc')->limit(2)->get();
@endphp
@foreach($questions as $question)
{{ str_limit($question->user->fname, $limit = 1, $end = '') }}{{ str_limit($question->user->lname, $limit = 1, $end = '') }}
@endforeach
@endif
{{ __('frontstaticword.RecentAnnouncements') }}
@if($announsments->isEmpty())
{{ __('frontstaticword.No') }} {{ __('frontstaticword.RecentAnnouncements') }}
@else
@foreach($announsments->take(2) as $announsment)
{!! $announsment->announsment !!}
@endforeach
@endif
{{ __('frontstaticword.Aboutthiscourse') }}
{{ $course->short_detail }}
{{ __('frontstaticword.Bythenumbers') }}
- {{ __('frontstaticword.studentsenrolled') }}:
@php
$data = App\Order::where('course_id', $course->id)->get();
if(count($data)>0){
echo count($data);
}
else{
echo "0";
}
@endphp
@if($course->language_id == !NULL)
- {{ __('frontstaticword.Languages') }}: {{ $course->language->name }}
@endif
- {{ __('frontstaticword.Classes') }}:
@php
$data = App\CourseClass::where('course_id', $course->id)->get();
if(count($data)>0){
echo count($data);
}
else{
echo "0";
}
@endphp
{{ __('frontstaticword.Description') }}
{{ __('frontstaticword.Aboutthiscourse') }}
{{ $course->short_detail }}
{{ __('frontstaticword.Description') }}
{!! $course->detail !!}
{{ __('frontstaticword.Instructor') }}
@if($course->user->user_img != null || $course->user->user_img !='')
 }})
@else
}})
@endif
{{ $course->user->email }}
@if($course->user->twitter_url != NULL)
@endif
@if($course->user->fb_url != NULL)
@endif
@if($course->user->linkedin_url != NULL)
@endif
@if($course->user->youtube_url != NULL)
@endif
{!! $course->user->detail !!}
@if($announsments->isEmpty())
{{ __('frontstaticword.Noannouncements') }}
{{ __('frontstaticword.Noannouncementsdetail') }}
@else
@foreach($announsments as $announsment)
@if($announsment->status == 1)
{!! $announsment->announsment !!}
@endif
@endforeach
@endif
@php
$topics = App\QuizTopic::where('course_id', $course->id)->get();
@endphp
@if(count($topics)>0 )
@foreach ($topics as $topic)
@if($topic->status == 1)
@if(Auth::User()->role == 'instructor' || Auth::User()->role == 'user')
id)->where('user_id', '=', Auth::user()->id)->first();
$days = $topic->due_days;
$orderDate = $order['created_at'];
$startDate = date("Y-m-d", strtotime("$orderDate +$days days"));
?>
@else
@endif
@php
$mytime = Carbon\Carbon::now();
@endphp
@if($mytime >= $startDate)
{{$topic->title}}
{{str_limit($topic->description, 120)}}
- {{ __('frontstaticword.PerQuestionMark') }}
- {{ __('frontstaticword.TotalMarks') }}
- {{ __('frontstaticword.TotalQuestions') }}
- {{ __('frontstaticword.QuizPrice') }}
- {{$topic->per_q_mark}}
-
@php
$qu_count = 0;
$quizz = App\Quiz::get();
@endphp
@foreach($quizz as $quiz)
@if($quiz->topic_id == $topic->id)
@php
$qu_count++;
@endphp
@endif
@endforeach
{{$topic->per_q_mark*$qu_count}}
-
{{$qu_count}}
-
{{ __('frontstaticword.Free') }}
@php
$users = App\QuizAnswer::where('topic_id',$topic->id)->where('user_id',Auth::user()->id)->first();
$quiz_question = App\Quiz::where('course_id',$course->id)->get();
@endphp
@if(empty($users))
@if($quiz_question != null || $quiz_question!= '')
{{ __('frontstaticword.StartQuiz') }}
@endif
@else
{{ __('frontstaticword.ShowQuizReport') }}
@if($topic->quiz_again == '1')
{{ __('frontstaticword.TryAgain') }}
@endif
@endif
@endif
@endif
@endforeach
@else
{{ __('frontstaticword.Noquiz') }}
{{ __('frontstaticword.Noquizsdetail') }}
@endif
{{ __('frontstaticword.YourAssignments') }}
@foreach($assignment as $assign)
@if($assign->type == 1)
@else
@endif
{{ __('frontstaticword.Title') }}:{{ $assign->title }}
|
@endforeach
{{ __('frontstaticword.YourAppointment') }}
@foreach($appointment as $appoint)
- {{ $appoint->title }}
- {!! $appoint->detail !!}
-
@if($appoint->accept == 1)
- Response
-
@if($appoint->user->user_img != null || $appoint->user->user_img !='')
 }})
@else
}})
@endif
-
{{ __('frontstaticword.Instructor') }}: {{ $appoint->instructor->fname }} {{ $appoint->instructor->lname }}
-
{{ __('frontstaticword.Email') }}: {{ $appoint->instructor->email }}
-
{{ __('frontstaticword.Response') }}: {!! $appoint->reply !!}
@endif
@endforeach
@endsection
@section('custom-script')
@endsection