@extends('layouts.app')
@section('title', 'Rekap Mengajar Saya')
@section('content')
Rekap Mengajar Saya
Riwayat dan statistik sesi mengajar per semester
{{-- Filter --}}
{{-- Summary Cards --}}
{{-- Progress Bar --}}
@php $pct = $summary['pct'] ?? 0; @endphp
Persentase Kehadiran Mengajar
{{
$pct }}%
{{-- Tabel Detail --}}
| Tanggal |
Mata Pelajaran |
Kelas |
Sesi |
Status |
Catatan |
@forelse($teachingRecords ?? [] as $record)
@php
$statusMap = [
'teaching' => ['color' => 'green', 'label' => 'Mengajar'],
'not_teaching' => ['color' => 'red', 'label' => 'Tidak Mengajar'],
];
$statusValue = $record->status?->value ?? (string) $record->status;
$s = $statusMap[$statusValue] ?? ['color' => 'gray', 'label' => ucfirst(str_replace('_', ' ',
$statusValue))];
@endphp
|
{{ $record->date->translatedFormat('D, d M Y') }}
|
{{
$record->schedule->subject->name ?? '–' }} |
{{ $record->schedule->classroom->name ?? '–' }}
|
Sesi {{
$record->schedule->session_order ?? '–' }} |
{{ $s['label'] }}
|
{{
$record->notes ?? '–' }} |
@empty
| Tidak ada data mengajar untuk filter
yang dipilih |
@endforelse
@if(isset($teachingRecords) && method_exists($teachingRecords, 'hasPages') && $teachingRecords->hasPages())
{{ $teachingRecords->withQueryString()->links() }}
@endif
@endsection