@extends('academia.layouts.dashboard') @section('content')

{{ $totalcursos }} Cursos

@php $total = 0; @endphp @foreach($cursos as $curso) @php $total = ($total + $curso->comentarios->count()); @endphp @endforeach

{{ $total }} Comentarios

Estudiantes Inscritos en mis cursos

Materiales de Estudio

@foreach ($cursos as $cur) @php $support = DB::table('support_material')->select('id','title','type')->where('course_id', '=', $cur->id)->first(); @endphp @endforeach
# Curso Título del material Tipo de material Acciones
{{ $cur->id }} {{ $cur->title }} @if($support != null) {{ $support->title }} @endif @if($support != null) {{ $support->type }} @endif @if($support != null) @endif
@include('usuario.componentes.scritpTable') @endsection {{-- Apexcharts --}} @push('script') @endpush