@extends('layouts.app') @php($editing = $material->exists) @section('title', $editing ? 'Edit Resource' : 'Add Resource') @section('subtitle', $editing ? $material->title : 'Upload to the learning library') @section('content') Cancel
@csrf @if ($editing) @method('PUT') @endif

Resource details

@error('title')
{{ $message }}
@enderror
@error('url')
{{ $message }}
@enderror
Use a link for hosted videos, or upload a file below.

File upload

@if ($material->file_path)
A file is attached. Uploading a new file replaces it.
@endif @error('file')
{{ $message }}
@enderror
PDF, MP4, PPT, DOC or images up to 30 MB.

is_published ?? true))>
Cancel
@endsection