@php $thumbClass = 'materi-thumb-t' . ($row->id % 5); $tipe = $row->tipe_efektif ?? 'teks'; if ($tipe === 'file') { $tipeLabel = 'File PDF'; $tipeIcon = 'bi-file-earmark-pdf-fill'; } elseif ($tipe === 'slide') { $tipeLabel = 'Slide'; $tipeIcon = 'bi-easel2-fill'; } else { $tipeLabel = 'Teks'; $tipeIcon = 'bi-file-text-fill'; } $babLabel = (!empty($row->nama_bab)) ? 'Bab ' . $row->bab_ke . ': ' . $row->nama_bab : null; @endphp
{{-- Thumbnail --}}
{{ $tipeLabel }}
{{-- Body --}}
@if($babLabel)
{{ $babLabel }} · Pertemuan {{ $row->pertemuan ?: '-' }}
@endif
{{ $row->judul }}
{{ $row->nama_guru ?: 'Administrator' }}
{{ $row->tanggal_tampil ? date('d M Y', strtotime($row->tanggal_tampil)) : '-' }}
@if($tipe === 'file') Unduh Lampiran Berkas @else @endif
{{-- Footer --}}