@php $comments = $post->getComments()->get(); @endphp
@if ($comments->isNotEmpty()) @foreach($comments as $comment) @php $writer = BaseHelper::printBoardUser($comment->createdBy); $writer_name = $post->teacher?->name ?? $writer['writer_name']; @endphp
{{ $writer_name }}
{{ date('Y.m.d', strtotime($comment->created_at)) }} {{ date('H:i', strtotime($comment->created_at)) }}
$page == 'study'])>
@if ($comment->attachments->isNotEmpty())
@foreach ( $comment->attachments as $attachment ) {{ $attachment->name }} @endforeach
@endif
@endforeach @endif