@extends('admin.layouts.master') @section('title','All ProgressView') @section('maincontent') @component('components.breadcumb',['secondaryactive' => 'active']) @slot('heading') {{ __('Progress View') }} @endslot @slot('menu1') {{ __('Progress View') }} @endslot @endcomponent
{{ __('adminstaticword.User') }} | {{ __('adminstaticword.Course') }} | {{ __('Progress') }} | @foreach($progress as $progres) @if(!is_null($progres->user) && !is_null($progres->courses)) @php if(Auth::user()->role == "instructor") { $check = $progres->courses->user_id == Auth::user()->id; } else{ $check = $progres->courses; } @endphp @if($check) @php $total_class = $progres->all_chapter_id; $total_count = count($total_class); $total_per = 100; $read_class = $progres->mark_chapter_id; $read_count = count($read_class); $progres_total = ($read_count/$total_count) * 100; @endphp
---|---|---|
{{ optional($progres->user)->fname}} | {{ optional($progres->courses)->title}} |
{{ $progres_total }}%
|