@props([ 'post' => null, 'categories', 'allTags' => null, // Passed in by the controller rather than read from a view composer: // SiteComposer only binds to frontend views, so admin templates have no // $generalSettings of their own. 'defaultAuthor' => null, ]) @php $tagValue = old('tags', $post?->tags->pluck('name')->implode(', ') ?? ''); $publishedAtValue = old('published_at', $post?->published_at?->format('Y-m-d\TH:i') ?? ''); @endphp