@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