@php $boardLabel = $boardSlug !== '' ? $boardSlug : '전체'; $statusLabel = match ($status) { \App\Models\Tenant\Post::MODERATION_HIDDEN => '숨김', \App\Models\Tenant\Post::MODERATION_BLOCKED => '차단', \App\Models\Tenant\Post::MODERATION_NORMAL => '정상', default => '전체', }; @endphp
@if (session('status')) {{ session('status') }} @endif 게시판 {{ $boardLabel }} 상태 {{ $statusLabel }} 전체 {{ $posts->total() }}
@foreach ($boards as $board) @endforeach 검색
@if ($posts->isEmpty()) @else
@foreach ($posts as $post) @php $collection = $post->tagmoa_collection ?? null; $isCollected = (bool) data_get($collection, 'exists', false); $collectionVariant = data_get($collection, 'variant', 'secondary'); $collectionStateLabel = data_get($collection, 'state_label'); $statusVariant = $post->moderationVariant(); $postUrl = tenant_url(null, $post->board->slug . '/' . $post->slug); @endphp
{{ $post->board?->title ?? '-' }} {{ $isCollected ? '수집됨' : '미수집' }} @if ($collectionStateLabel) {{ $collectionStateLabel }} @endif

{{ $post->title }}

@if ($post->meta_description)

{{ $post->meta_description }}

@endif
작성자 {{ $post->authorLabel() }}
발행일 {{ $post->publishedAtLabel() }}
수정일 {{ $post->updatedAtLabel() }}
태그모아
{{ $isCollected ? '수집됨' : '미수집' }} @if ($collectionStateLabel) {{ $collectionStateLabel }} @endif
상태 {{ $post->moderationLabel() }}
글 보기 @if ($post->isModerationNormal())
@csrf 숨김
@csrf 차단
@elseif ($post->isModerationHidden())
@csrf 정상으로 변경
@csrf 차단
@else
@csrf 정상으로 변경
@csrf 숨김
@endif
@endforeach
{{ $posts->links() }}
@endif