@extends('layouts.app') @section('title', 'Dashboard Guru') @section('content')

Selamat Datang, {{ auth()->user()->name }}

{{ now()->translatedFormat('l, d F Y') }}

@if (optional($teacher)->photo_url) {{ $teacher->full_name }} @else
{{ strtoupper(substr(auth()->user()->name, 0, 1)) }}
@endif

{{ optional($teacher)->full_name ?? auth()->user()->name }}

NIP: {{ optional($teacher)->employee_number ?? '–' }}

{{ optional($teacher)->specialization ?? 'Guru' }}

Trend Kehadiran 14 Hari

Hadir/Terlambat = 100%

Distribusi Status Bulan Ini

Jadwal Hari Ini

Lihat semua →
@forelse($todaySchedules ?? [] as $schedule)

{{ substr((string) $schedule->start_time, 0, 5) }}

{{ substr((string) $schedule->end_time, 0, 5) }}

{{ $schedule->subject->name ?? 'Mapel' }}

{{ $schedule->classroom->name ?? 'Kelas' }}

{{ $schedule->today_teaching_count > 0 ? 'Selesai' : 'Belum' }}
@empty

Tidak ada jadwal hari ini

@endforelse

Notifikasi Terbaru

@forelse($recentNotifications ?? [] as $notif)

{{ $notif->data['title'] ?? 'Notifikasi' }}

{{ $notif->created_at->diffForHumans() }}

@empty

Tidak ada notifikasi baru

@endforelse
@endsection @push('scripts') @endpush