@extends($service.'.layout') @section($service.'-css') {!! resource('css/'.$service.'/sub.css') !!} {!! resource('css/myclass/my_class_mo.css') !!} @if($service === 'academy') {!! resource('css/myclass/my_class_mo_academy.css') !!} @endif @endsection @php $content = $post->content; $comments = $post->getComments()->get(); @endphp @section($service."-content") @if(!in_array($board['page'], ['teacher', 'test']))
목록 @if ($board['page'] == 'study' && $comments->isEmpty()) 수정 삭제 @endif

강좌명

{{$post->enrollmentCourse?->course?->name}}

작성일 {{ date('y.m.d', strtotime($post->created_at)) }}

{!! nl2br($content->content) !!}
@if ( $post->getAttachments()->isNotEmpty() ) @endif
@else
{{ $content->title }}
작성자 {{ $content->writer->name }}
작성일 {{ date('y.m.d', strtotime($post->created_at)) }}
{!! nl2br($content->content) !!}
@if ( $post->getAttachments()->isNotEmpty() ) @endif
@endif @endsection @section($service.'-script') @if ( $board['page'] == 'study') {!! resource('js/common/board/default.js') !!} @else {!! resource('js/common/board/comment.js') !!} @endif @endsection