@php $missing = $missing ?? session('publish_missing', []); $currentStatus = $course->status ?? 'draft'; @endphp

{{ $meta['title'] }}

{{ $meta['description'] }}

Current status {{ ucfirst($currentStatus) }} @if($settings->published_at) Published {{ $settings->published_at->format('M j, Y g:i A') }} @endif
@if(!empty($missing))

Complete these requirements before publishing:

@endif
@csrf
@error('status')

{{ $message }}

@enderror
@error('confirm')

{{ $message }}

@enderror
Cancel

Confirm status change

Set course status to ?

Publication history

@if($history->isEmpty())

No status changes recorded yet.

@else
    @foreach($history as $entry)
  1. {{ $entry->from_status ?? '—' }} → {{ $entry->to_status }}

    {{ optional($entry->changedBy)->name ?? 'System' }} · {{ optional($entry->created_at)->format('M j, Y g:i A') }}

    @if($entry->notes)

    {{ $entry->notes }}

    @endif
  2. @endforeach
@endif