@php $user = Auth::user(); $mahasiswa = \App\Model\mahasiswa::wherePembimbing($user->ref_id) ->mahasiswaAktif() ->select('nim') ->get() ->pluck('nim') ->toArray(); $semester = \App\Model\semester::getSemesterBySystemVariable('IdSemKrs'); $semester_id = 0; if ($semester['exist']) { $semester_id = $semester['semester']->id; } $summary_dashboard_dosen = [ 'mahasiswa_bimbingan' => count($mahasiswa), 'sudah_krs' => \App\Model\krs::whereSemester($semester_id)->whereIn('nim',$mahasiswa) ->where('krs.post_status',1) ->get()->count(), 'sudah_bimbingan' => \App\Model\krs::whereSemester($semester_id)->whereIn('nim',$mahasiswa) ->where('krs.post_status',1) ->where('krs.is_validasi_pa',1) ->get()->count(), ]; @endphp

{{ $summary_dashboard_dosen['mahasiswa_bimbingan'] }}

Mahasiswa Bimbingan

More info

{{ $summary_dashboard_dosen['sudah_krs'] }}

Sudah KRS

More info

{{ $summary_dashboard_dosen['sudah_bimbingan'] }}

Sudah Bimbingan

More info
@if($semester['exist']) @php $kelas = \App\Model\kelas::getDataBasic() ->getDataDosenKelas() ->where('kd.dosen_id',$user->ref_id) ->whereSemester($semester_id) ->get(); @endphp

Jadwal ajar dosen semester {{ $semester['semester']->labelSelect2() }}

@foreach ($kelas as $i => $v) @endforeach
# Matakuliah Kelas

SKS

T/P/L

Prodi Semester Terisi Jadwal Dosen Pengampu
{{ $i+1 }} {{ $v->mk_code_univ.' - '.$v->mk_nama_resmi }} {{ $v->nama_singkat }} {{ $v->labelSks() }} {{ $v->prodi_name }} {{ $v->semester_name }} {{ $v->terisi }} {!! $v->markJadwal(1) !!}
@if ($v->is_jadwalganda==1) {!! $v->markJadwal(2) !!} @endif
@foreach ($v->dosen as $x => $y) @if ($y->id==$user->ref_id)

{{ $y->nama }}

@else

{{ $y->nama }}

@endif @endforeach
@endif