@extends("board.layout.layout-boards") @section("board-search") @endsection @section("board-content") @foreach ($posts as $post) @php $course = null; $courseCnt = 0; if ($post->courses) { $course = $post->courses?->first(); $courseCnt = $post->courses?->count(); } @endphp service])> @endforeach
번호 등록일시 전시상태 상단고정 제목 강좌명 강사명 댓글 조회수 작성자 관리
{{ $post->id }} {{ $post->created_at }} {{ $post->enable?->activated == 1 ? "전시" : "비전시" }}
enable?->is_fixed)>
{{ $post->content->title }} @if ($course) {{ $course?->name }} 외 {{ $courseCnt }} 건 @else - @endif {{ $post->teacher?->name }} {{ number_format($post->comments->count()) }} {{ number_format($post->content->views) }} {{ $post->content->writer?->name }}
@endsection