@php $tenant = \App\Support\Facades\Tenancy::get(); $brandStyle = $tenant->brand_primary_color ? ":root { --color-brand-600: {$tenant->brand_primary_color}; } .dark { --color-brand-600: {$tenant->brand_primary_color}; }" : null; $isUniversity = $tenant->institution_type === 'university'; $navGroups = \App\Support\Navigation\StudentNav::groups('materials'); $typeLabels = ['recorded_video' => 'Recorded Video', 'live_class_link' => 'Live Class Link', 'document' => 'Document', 'link' => 'Link']; @endphp @forelse($materialsBySubject as $subjectName => $materials)

{{ $subjectName }}

@foreach($materials as $material)

{{ $loop->iteration }}.{{ $material->title }}

{{ $typeLabels[$material->type] }} ยท {{ $material->published_at?->format('M j, Y') }}

@if($material->url) Open @elseif($material->file_path) View @endif
@endforeach
@empty
No course materials published yet.
@endforelse