@extends('admin.layout') @section('content') {{$courseDetails->name}} Dashboard {{$users->name}} Enrolled Courses Complete Report Viewed / Total (Videos) {{(int)$totalVideoDurationPlay['totalVideosPlay']}} / {{(int)$totalVideoDuration['totalVideos']}} Overall Progress {{ round(((int)$totalVideoDurationPlay['totalVideosPlayDuration']/(int)$totalVideoDuration['totalVideosDuration'])*100,1) }} % Total Time Spent {{round((int)$totalVideoDurationPlay['totalVideosPlayDuration']/60)}} Minutes @if (count($courseContents)>0) Chapter Item Type Progress Video Duration Time Spent Action @foreach ($courseContents as $cc) {{$cc->cat_name}} {{-- VIDEO --}} @if ($cc->type=='video') {{$cc->item_name}} @endif {{-- PDF --}} @if ($cc->type=='pdf') {{$cc->item_name}} @endif {{-- EBOOK --}} @if ($cc->type=='ebook') {{$cc->item_name}} @endif {{-- MCQ --}} @if ($cc->type=='practice_test') {{$cc->item_name}} @endif {{$cc->type}} @if ((int)$cc->play_duration>0) {{ min(round((((int)$cc->play_duration/60)/((int)$cc->video_duration/60))*100),100) }} % @else 0 % @endif @if ($cc->type=='video') {{(int)$cc->video_duration/60}} mins @endif @if ($cc->type=='video') {{ round((int)$cc->play_duration/60)}} mins @endif @endforeach @endif @endsection @push('footer-script') @endpush