@extends('master/index') @section('content')
{{$course->course_title}}
@php $completion = explode('--X--',CompletedPercentage($course->course_id)); @endphp @php $total = json_decode($course->curriculum); @endphp @if($total)
@php ($tot_count = 1 ) @for ($tot=0; $tot < count($total->MainTitle); $tot++) @if($total->MainTitle[$tot] != 'Section') @php $couting = $tot_count++; @endphp @endif @endfor @if(count($completion) == 1) @php ( $completionCount = 0 ) @else @php ( $completionCount = count($completion)) @endif @php ( $percentage = round(($completionCount / $couting ) * 100) )
{{$percentage}}%
@if($percentage == '100') @else @endif
{!! Lang::get('core.Curriculum') !!}
    @for ($j=0; $j < $curri_count; $j++) @if($curriculum->MainTitle[$j] == 'Section') @else @endif
  • @if($curriculum->MainTitle[$j] == 'Lecture')
    @for($k=0; $k < $file_count; $k++) @if($curriculum->file_type[$j][$k] != '')
    @if (strpos(CompletedPercentage($course->course_id),$curriculum->file_name[$j][$k])) @else @endif
    @endif @endfor
    @elseif($curriculum->MainTitle[$j] == 'Quiz')
    {{count($curriculum->file_type[$j])}} {{$curriculum->MainTitle[$j]}}
    @endif @if($curriculum->MainTitle[$j] == 'Section') @php ( $count = 1 ) {{$curriculum->MainTitle[$j]}} :

    {{$curriculum->title[$j]}}

    @else @php ( $count++ )

    {{$curriculum->title[$j]}}

    @for($k=0; $k < $file_count; $k++) @if($curriculum->file_type[$j][$k] != '')