@extends("board.layout.layout-board") @section("board-content") @php $content = $post->content; $messages = json_decode($content->content, 1); @endphp
  • {{ $post->type }}
  • {{ $content->writer->name }}
    {{ $post->type }}
    {{ date("Y-m-d", strtotime($post->created_at)) }}
    @foreach($messages as $message)
    $message['type'] == 'image'])> @if ($message['type'] == 'text')
    {{ $message['message'] }}
    @else @php $file = $post->attachments[$message['message']] @endphp
    @endif {{ date('H:i', $message['timer']) }}
    @endforeach
  • @endsection