@extends($layoutPath ?? 'sitemanager::layouts.app') @section('title', $post->title . ' - ' . $board->name) @push('head') @if($post->isSecret()) @endif {{-- 로그인 상태 정보 전달 --}} {!! resource('sitemanager::js/image-optimizer.js') !!} @if ($board->getSetting('enable_likes', false)) {!! resource('sitemanager::js/board/like.js') !!} @endif @if($board->getSetting('allow_comments', true)) {!! resource('sitemanager::js/board/comment.js') !!} @endif {!! resource('sitemanager::js/board/show.js') !!} {!! resource('sitemanager::css/board.default.css') !!} {!! resource('sitemanager::css/pagination.css') !!} @endpush @section('content')
@if($post->category)
@foreach($post->categories as $category) {{ $category }} @endforeach
@endif

@if($post->isSecret()) @endif {{ $post->title }}

@if ($board->getSetting('show_info')) @endif @if ($post->header_image)
{{ $post->header_image['alt'] }} @if($post->header_image['description'])

{{ $post->header_image['description'] }}

@endif
@endif
{!! $post->content !!} {{-- Tags --}} @if($post->tags && count($post->tags) > 0)
@foreach($post->tags as $tag) {{ $tag }} @endforeach
@endif
{{-- Attachments --}} @if($attachments && $attachments->count() > 0)
Attachments ({{ $attachments->count() }})
@foreach($attachments as $attachment)
@if($attachment->is_image)
Preview
@else
@endif
{{ $attachment->original_name }}
@if($attachment->description)

{{ $attachment->description }}

@endif
{{ $attachment->file_size_human }} {{ $attachment->published_at->format('M j, Y') }} @if($attachment->download_count > 0) {{ $attachment->download_count }} downloads @endif
@endforeach
@endif {{-- Action Buttons --}}
@if($post->canEdit()) Edit @endif @if($post->canDelete())
@csrf @method('DELETE')
@endif
{{-- Post Navigation --}} @if($prevPost || $nextPost)
@if($prevPost) @endif @if($nextPost) @endif
@endif {{-- Comments Section --}} @if($board->getSetting('allow_comments', true) && can('readComments', $board))
Comments {{ $post->comment_count ? $post->comment_count:'' }}
{{-- Comment Form --}} @if(can('writeComments', $board))
@csrf @if(!auth()->check()) @include('sitemanager::board.partials.guest-author-form', ['comments' => $comments, 'board' => $board]) @endif @if(can('uploadCommentFiles', $board))
@endif
@endif {{-- Comments List with Pagination --}}
@include('sitemanager::board.partials.comments', ['comments' => $comments, 'board' => $board])
@endif
@if ($board->getSetting('index_in_show', true)) @if($posts->count() > 0) @include('sitemanager::board.partials.posts', ['posts' => $posts, 'notices' => $notices, 'board' => $board]) @endif @endif {{-- Back to List --}}
@endsection @if($board->getSetting('allow_comments', true)) @push('scripts') @endpush @endif