@extends('layouts.portal')
@php
$preBatch = $batches->firstWhere('id', (int) request('batch'));
$preCourse = old('course_id', $preBatch?->course_id ?? ($courses->count() === 1 ? $courses->first()->id : null));
$preBatchId = old('batch_id', $preBatch?->id);
$maxVideo = min($limits['video'], $limits['server']);
$maxFile = min($limits['file'], $limits['server']);
$kindIcons = ['video' => 'video', 'pdf' => 'file-text', 'file' => 'paperclip', 'link' => 'link'];
@endphp
@section('title', 'Course materials')
@section('subtitle', 'Upload lecture videos, PDFs and lab guides. Learners see them instantly in their course page.')
@section('actions')
| Material | Course | Visible to | Size | Uploaded | |
|---|---|---|---|---|---|
{{ $r->title }} {{ strtoupper($r->kind) }}@if(! $r->published) · unpublished @endif |
{{ $r->course?->title }} | {{ $r->batch?->batch_code ? 'Batch '.$r->batch->batch_code : 'All course learners' }} | {{ $r->humanSize() ?: '—' }} | {{ $r->created_at->format('d M Y') }} |
@if($r->path || $r->external_url)path) target="_blank" rel="noopener" @endif> |
| You have not uploaded any material yet. | |||||