status === 'published' && ($page->published_at === null || $page->published_at->isPast()), 404); return view('content.show', compact('page')); } }