Raport Guru
{{-- ===== Header kartu semester ===== --}}
{{-- ===== Kelas sebagai PIC ===== --}}
@php
$tKelasPic = $kelasPic->count();
$tSesiPic = $logbookPic->count();
$tSesiPicC = $logbookPic->where('status', 'completed')->count();
$tSesiPicL = $logbookPic->where('status', '!=', 'completed')->filter(fn($i) => !empty($i->jenis_libur))->count();
$tSesiPicB = $logbookPic->where('status', '!=', 'completed')->filter(fn($i) => empty($i->jenis_libur))->count();
@endphp
{{-- ===== Logbook Kelas PIC ===== --}}
{{-- /#info-pic --}}
{{-- /.card-body --}}
{{-- /.card --}}
@php
$tSesiP = $logbookPengajar->count();
$tSesiPC = $logbookPengajar->where('status', 'completed')->count();
$tSesiPL = $logbookPengajar->where('status', '!=', 'completed')->filter(fn($i) => !empty($i->jenis_libur))->count();
$tSesiPB = $logbookPengajar->where('status', '!=', 'completed')->filter(fn($i) => empty($i->jenis_libur))->count();
@endphp
{{-- ===== Logbook Sebagai Pengajar ===== --}}
{{-- /#info-pgj --}}
{{-- /.card-body --}}
{{-- /.card --}}
{{-- /section-body --}}
@if($guru->foto)
@elseif($guru->jenis_kelamin == 'P')
@else
@endif
@else
@endif
{{ $guru->nama }}
{{ $guru->jabatan ?? '' }}{{ $guru->divisi ? ' · '.$guru->divisi : '' }}
Periode
Semester {{ $semester }}
{{ $tahun_ajaran }}
Kelas Sebagai PIC (Penanggung Jawab)
@if($kelasPic->isEmpty())Tidak ada kelas PIC di semester ini.
@else
@foreach($kelasPic as $k)
{{ $k->nama_kelas ?? $k->kode_kelas }}
@if($k->status_selesai)
Selesai
@endif
@endforeach
@endif
Daftar Logbook PIC
Resume Sesi PIC
@if($logbookPic->isEmpty())
{{-- /#raport-pic --}}
Belum ada logbook yang tercatat.
@else
{{-- Grup per bulan --}}
@php
$picGrouped = $logbookPic->groupBy(function($lb) {
return $lb->Kelas->nama_kelas ?? ($lb->Kelas->kode_kelas ?? 'Tanpa Kelas');
});
@endphp
@foreach($picGrouped as $bulan => $items)
@php $loop2idx = $loop->index; @endphp
@endforeach
@endif
| # | Tanggal | Pengajar | Materi | Catatan | Foto | Status |
|---|---|---|---|---|---|---|
| {{ $idx + 1 }} |
{{ $lb->tanggal ? \Carbon\Carbon::parse($lb->tanggal)->locale('id')->translatedFormat('d M Y') : 'Belum diset' }}
@if($lb->start && $lb->end)
{{ \Carbon\Carbon::parse($lb->start)->format('H:i') }} – {{ \Carbon\Carbon::parse($lb->end)->format('H:i') }} @endif |
@forelse($lb->Pengajar as $p)
{{ $p->Guru->nama ?? '-' }} @empty - @endforelse |
@if($lb->materi) {{ $lb->materi }} @else Belum diset @endif | {{ $lb->catatan ?? 'Belum diisi' }} | @if($lb->status === 'completed') Completed @elseif($lb->jenis_libur) Libur @else Belum Diisi @endif |
Resume Logbook Sebagai PIC
| Jumlah Kelas PIC | : | {{ $tKelasPic }} Kelas |
| Total Sesi Logbook | : | {{ $tSesiPic }} Sesi |
| Sesi Completed | : | {{ $tSesiPicC }} Sesi |
| Sesi Belum Diisi | : | {{ $tSesiPicB }} Sesi |
| Sesi Libur | : | {{ $tSesiPicL }} Sesi |
Daftar Logbook Pengajar
Resume Sesi Pengajar
@if($logbookPengajar->isEmpty())
{{-- /#raport-pgj --}}
Belum ada logbook sebagai pengajar.
@else
@php
$pengajarGrouped = $logbookPengajar->groupBy(function($lb) {
return $lb->Kelas->nama_kelas ?? ($lb->Kelas->kode_kelas ?? 'Tanpa Kelas');
});
@endphp
@foreach($pengajarGrouped as $bulan => $items)
@php $loop3idx = $loop->index; @endphp
@endforeach
@endif
| # | Tanggal | Pengajar | Materi | Catatan | Foto | Status |
|---|---|---|---|---|---|---|
| {{ $idx + 1 }} |
{{ $lb->tanggal ? \Carbon\Carbon::parse($lb->tanggal)->locale('id')->translatedFormat('d M Y') : 'Belum diset' }}
@if($lb->start && $lb->end)
{{ \Carbon\Carbon::parse($lb->start)->format('H:i') }} – {{ \Carbon\Carbon::parse($lb->end)->format('H:i') }} @endif |
@forelse($lb->Pengajar as $p)
{{ $p->Guru->nama ?? '-' }} @empty - @endforelse |
@if($lb->materi) {{ $lb->materi }} @else Belum diset @endif | {{ $lb->catatan ?? 'Belum diisi' }} | @if($lb->status === 'completed') Completed @elseif($lb->jenis_libur) Libur @else Belum Diisi @endif |
Resume Logbook Sebagai Pengajar
| Total Sesi Mengajar | : | {{ $tSesiP }} Sesi |
| Sesi Completed | : | {{ $tSesiPC }} Sesi |
| Sesi Belum Diisi | : | {{ $tSesiPB }} Sesi |
| Sesi Libur | : | {{ $tSesiPL }} Sesi |