@if ($board->getSetting('show_name', false)) @endif @if ($board->getSetting('allow_comments', false)) @endif @if ($board->getSetting('enable_likes', false)) @endif @if($board->getSetting('enable_notice', false) && isset($notices) && $notices->count() > 0) @foreach($notices as $post) @if ($board->getSetting('show_name', false)) @endif @if ($board->getSetting('allow_comments', false)) @endif @if ($board->getSetting('enable_likes', false)) @endif @endforeach @endif @php $currentPostId = isset($post) ? $post->id : null; @endphp @foreach($posts as $row) $currentPostId && $row->id == $currentPostId])> @if ($board->getSetting('show_name', false)) @endif @if ($board->getSetting('allow_comments', false)) @endif @if ($board->getSetting('enable_likes', false)) @endif @endforeach
# Title Author Views Comments Likes Date
@if($post->category)
@foreach($post->categories as $category) {{ $category }} @endforeach
@endif @if($post->isSecret()) @endif {{ $post->title }}
@if($post->author_profile_photo) {{ $post->author }} @endif {{ $post->author }}
{{ $post->view_count ? number_format($post->view_count):'-' }} {{ $post->comment_count ? number_format($post->comment_count) : '-' }} {{ $post->like_count ? number_format($post->like_count) : '-' }}
{{ $row->id }}
@if($row->category)
@foreach($row->categories as $category) {{ $category }} @endforeach
@endif @if($row->isSecret()) @endif {{ $row->title }}
@if($row->author_profile_photo) {{ $row->author }} @else @endif {{ $row->author }}
{{ $row->view_count ? number_format($row->view_count):'-' }} {{ $row->comment_count ? number_format($row->comment_count) : '-' }} {{ $row->like_count ? number_format($row->like_count) : '-' }}
@if($posts->hasPages())
@php // pagination 링크를 목록 페이지로 연결 $posts->withPath(route('board.index', $board->slug)); @endphp {{ $posts->appends(request()->except('id'))->onEachSide(1)->links('sitemanager::pagination.default') }}
{{ $posts->appends(request()->except('id'))->links('sitemanager::pagination.simple') }}
@endif @push('scripts') {!! resource('sitemanager::js/sortable-table.js') !!} {!! resource('sitemanager::css/sortable-table.css') !!} @endpush