@extends('layouts.app') @section('title', 'Learning Materials') @push('styles') @endpush @section('content')

Learning materials

Total: {{ count($materials) }} items

Export CSV
@if(request()->anyFilled(['search', 'category'])) Clear @endif
@foreach (['All', 'pdf', 'note', 'assignment', 'other'] as $cat) @endforeach
@forelse ($materials as $material)

{{ $material->title }}

{{ $material->category }} {{ $material->subject }} {{ $material->batch->name ?? '' }}

{{ $material->description ?? '' }}

@if($material->file_path) Download @endif
@empty
No materials uploaded yet.
@endforelse
@if(method_exists($materials, 'links'))
{{ $materials->appends(request()->query())->links() }}
@endif

Confirm Delete

Are you sure? This cannot be undone.

@csrf @method('DELETE')
@endsection