@if (session('status'))

{{ session('status') }}

@endif @if (session('error'))

{{ session('error') }}

@endif

{{ $page->title }}

{{ $page->getStatusLabel() }}
{{ $page->content }}
@if($page->children->count() > 0)

子頁面

@foreach($page->children as $child)
{{ $child->title }} {{ $child->getStatusLabel() }}
@endforeach
@endif

頁面資訊

網址代碼
{{ $page->slug }}
@if($page->template)
模板
{{ $page->template }}
@endif @if($page->parent) @endif
排序
{{ $page->sort_order }}
建立者
{{ $page->creator->name ?? 'N/A' }}
建立時間
{{ $page->created_at->format('Y-m-d H:i:s') }}
@if($page->published_at)
發布時間
{{ $page->published_at->format('Y-m-d H:i:s') }}
@endif @if($page->lastUpdatedBy)
最後更新者
{{ $page->lastUpdatedBy->name }}
@endif @if($page->meta_description)
SEO 描述
{{ $page->meta_description }}
@endif

操作

@if($page->isDraft() && auth()->user()->can('publish_pages'))
@csrf
@endif @if(auth()->user()->can('delete_pages'))
@csrf @method('DELETE')
@endif