@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 => '전체', }; $currentUserId = (int) auth('tenant')->id(); $moveBoards = $boards->map(fn ($board) => [ 'id' => (int) $board->id, 'title' => (string) $board->title, 'categories' => $board->activeCategories->map(fn ($category) => [ 'id' => (int) $category->id, 'name' => (string) $category->name, ])->values()->all(), ])->values()->all(); @endphp
@if (session('status')) {{ session('status') }} @endif 게시판 {{ $boardLabel }} 상태 {{ $statusLabel }} 전체 {{ $posts->total() }}
@foreach ($boards as $board) @endforeach 검색
@if ($posts->isEmpty()) @else
@csrf
0개 선택
공개 숨김 이동 삭제
@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() }}
글 보기
@endforeach
{{ $posts->links() }}
@endif