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