Notifikasi Tugas
@if ($notif_tugas->count() > 0) @foreach ($notif_tugas as $ts)

{{ $ts->tugas->nama_tugas }}

{{ $ts->tugas->mapel->nama_mapel }}

Due Date
{{ $ts->tugas->due_date }}

@endforeach @else

WOoHOO.. Belum Ada Tugas

@endif
Notifikasi Materi
@if ($notif_materi->count() > 0) @foreach ($notif_materi as $nm)

{{ $nm->materi->nama_materi }}

{{ $nm->materi->mapel->nama_mapel }}

@endforeach @else

Heeemm.. Belum Ada Materi

@endif
Notifikasi Ujian
@if ($notif_ujian->count() > 0) @foreach ($notif_ujian as $nu) @if ($nu->ujian->jenis === 0)

{{ $nu->ujian->nama }}

{{ $nu->ujian->mapel->nama_mapel }}

@else

{{ $nu->ujian->nama }}

{{ $nu->ujian->mapel->nama_mapel }}

@endif @endforeach @else

YahoOo.. Tidak ada ujian

@endif
Total Tugas

{{ $tugas->count() }}

@php $tugas_telat = 0; $tugas_tidak_telat = 0; @endphp @foreach ($tugas as $t) @if ($t->is_telat === 1) @php $tugas_telat++; @endphp @endif @if ($t->is_telat === 0) @php $tugas_tidak_telat++; @endphp @endif @endforeach

{{ $tugas_tidak_telat }} Tugas Sukses Dikerjakan

{{ $tugas_telat }} Tugas Terlambat Dikerjakan

Total Materi

{{ $materi->count() }}

Ada {{ $materi->count() }} Materi Dikelas Kamu