@foreach ( $messages as $key => $message)
@php
$time = ! isset($messages[$key + 1]) || date('H:i', $message['timer']) != date('H:i', $messages[$key + 1]['timer']) ? date('H:i', $message['timer']) : "";
@endphp
{{ $time }}
@if ($message['type'] == 'text')
{{ $message['message'] }}
@else
@php
$file = $post->attachments[$message['message']];
@endphp
@endif
@endforeach
@if ( $post->getComments()->count() > 0 )
@php
$comment = $post->getComments()->first();
@endphp
@if ( date("Y-m-d", strtotime($post->created_at)) != date("Y-m-d", strtotime($comment->created_at)) )
{{ date('Y-m-d', strtotime($comment->created_at)) }} {{ $dayOfWeek[date('w', strtotime($comment->created_at))] }}요일
@endif
{{ date('H:i', strtotime($comment->created_at)) }}
{!! nl2br($comment->content) !!}
@if ($comment->attachments->isNotEmpty())
@php
$data = $comment->getAttachmentByType();;
extract($data);
@endphp
@if ( count($images) > 0 )
{{ count($images) }}
@foreach ($images as $image)

@endforeach
@endif
@if ( count($files) > 0 )
@foreach($files as $file)
{{ $file['pathInfo']['filename'] }}
{{ $file['pathInfo']['extension'] }}
@if($file['is_expire'])
다운로드 유효기간 ~ {{ $file['expire_at'] }}
@else
다운로드 기간이 만료되었습니다.
@endif
용량 {{ $file['sizeText'] }}
@if($file['is_expire'])
파일 다운로드
@endif
@endforeach
@endif
@endif
답변이 종료되었습니다.
추가문의는 새로 등록해 주시기 바랍니다.
@endif