@foreach ($posts as $post) @php $content = $post->content; @endphp

{{ $content->title }}

{{ $post->writerName }}
{{ $post->enrollment?->module }}
{{ date("y.m.d" , strtotime($post->created_at)) }}

수강상품

{{ $post->product?->name }} / {{ $post->productOption?->name }}

수강상품

{{ $post->productOption?->name }}

추천 선생님

@foreach ($post->teachers as $teacher) {{ $teacher->teacher->name }} @endforeach

수업시간

{{ $classTimes[$post->class_time] }}

수업 난이도

{{ $difficulties[$post->difficulty] }}
@if ($post->getAttachments()->count() > 0)
@if ($post->attachments->count() > 1)
{{ $post->attachments->count() }}
@endif @foreach ($post->getAttachments() as $attachment) 이미지 설명글 @endforeach
@endif
@endforeach