@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; $navGroups = \App\Support\Navigation\TeacherNav::groups('materials'); $typeLabels = ['recorded_video' => 'Recorded Video', 'live_class_link' => 'Live Class Link', 'document' => 'Document', 'link' => 'Link']; @endphp
@if($classes->isNotEmpty())
All grades @foreach($classes as $class) {{ $class->name }} @endforeach
@endif
@forelse($materials as $material) @empty @endforelse
# Title Subject / Section Type Link
{{ $loop->iteration }} {{ $material->title }} {{ $material->courseOffering->subject->name }} · {{ $material->courseOffering->section->label() }} {{ $typeLabels[$material->type] }} @if($material->url) Open link @elseif($material->file_path) View file @else — @endif
No materials yet.
@csrf

Uploading a new file replaces the current one.

File preview