@extends('layouts.app') @section('title', 'Edit Session - ' . $session->title) @section('content')

Edit Session

{{ $session->title }}

@csrf @method('PUT')

Session Information

@error('session_number')
{{ $message }}
@enderror
@error('title')
{{ $message }}
@enderror
@error('description')
{{ $message }}
@enderror
@error('duration_minutes')
{{ $message }}
@enderror
is_published) ? 'checked' : '' }}>

Session Content

This is the main content that students will see. Additional materials can be managed separately.
@error('content')
{{ $message }}
@enderror
@if($session->materials && count($session->materials) > 0)

Session Materials

{{ count($session->materials) }} materials attached Manage Materials
@foreach(array_slice($session->materials, 0, 3) as $material)
{{ Str::limit($material['title'], 20) }}
@endforeach @if(count($session->materials) > 3)
+{{ count($session->materials) - 3 }} more
@endif
@endif
Danger Zone

Once you delete a session, there is no going back. Please be certain.

@endsection