@php $boardCount = $boards->count(); $postCount = $boards->sum('posts_count'); $privateBoardCount = $boards->where('is_private_inquiry', true)->count(); @endphp
게시판 추가 전체 {{ $boardCount }} 게시글 {{ $postCount }} @if ($boards->isEmpty()) @else
공개 {{ $boards->where('is_private_inquiry', false)->count() }} 비공개 {{ $privateBoardCount }}
@foreach ($boards as $board)
{{ $board->is_private_inquiry ? '비공개' : '공개' }} Tagmoa @if ($board->isPagesBoard()) — @elseif ($board->tagmoa_collect_allowed) 수집 @else 미수집 @endif
게시글
{{ $board->posts_count }}
수정
⋯
@csrf @method('DELETE')
@endforeach
@endif