@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