@extends('layouts.app') @section('title', 'Materi Belajar · SmartPenF') @section('content')
{{-- ── Header Navigasi ─────────────────────────────────── --}}

Ruang Belajar Materi Belajar

Materi Belajar

{{ $student->className }} @if($period) · TP {{ $period->tahun_pelajaran }} · Semester {{ $period->semester }} @endif

{{ $materials->count() }} Modul Tersedia
@if (session('status'))
{{ session('status') }}
@endif @if (! $period)

Periode Akademik Belum Aktif

Pengelola akademik belum mengaktifkan tahun pelajaran berjalan.

@else {{-- ── Dropdown Pemilih Mata Pelajaran (Teks Putih) ─────── --}}
{{-- ── Kondisi Materi Kosong ──────────────────────────── --}} @if ($materials->isEmpty())

Belum Ada Materi

Belum ada modul atau dokumen materi belajar yang diterbitkan untuk mata pelajaran dan tingkatan kelas Anda.

@else {{-- ── Daftar Kartu Bab Sesuai Referensi Gambar ────────── --}}
{{-- Daftar Bab --}} @foreach($materiByBab as $key => $grup) @php $collapseId = 'babCollapse_' . md5($key); $countItems = count($grup['items']); @endphp
{{-- Isi Materi Saat Bab Dibuka (Gaya Classroom Sesuai materi_siswa.php) --}}
@endforeach {{-- Materi Lainnya (Tanpa Bab) --}} @if(!empty($materiTanpaBab)) @php $countTanpaBab = count($materiTanpaBab); @endphp
@endif
@endif @endif
{{-- ═══════════════════════════════════════════════════════════════ MODAL LIHAT MATERI (Teks, Video & Slide Interaktif) ═══════════════════════════════════════════════════════════════ --}} @endsection