Start Learning

@foreach($topics as $topic) @php $limit_id = $topic->id; $row = DB::table('react_topics_detail')->where('id_topics', $limit_id)->first(); $rowArray = (array) $row; if ($row) { $rows = $row->id; } @endphp
{{ $topic->description }}
@endforeach

Topic Finished

Topic Finished as user : @php echo Auth::user()->name; @endphp

@if($role == "student")
@foreach($completedTopics as $topic) @endforeach
Tanggal Selesai Nama User Nama Topic
{{ $topic->created_at }} {{ $topic->user_name }} {{ $topic->description}}
@endif @if($role == "teacher")
@foreach($completedTopics as $topic) @endforeach
Tanggal Selesai Nama User Nama Topic
{{ $topic->created_at }} {{ $topic->user_name }} {{ $topic->description}}
@endif

Progress Topic Finished

This is the content for the Topic Finished.

@foreach($progress as $userId => $userProgress) @endforeach
User Name Progress (%) Progress Bar
{{ $userProgress['name'] }} {{ $userProgress['percent'] }}%
{{ $userProgress['percent'] }}%