@extends('layouts.site')

@section('content')

<div class="within {{ ($res[0]['public_status'] !== 0 ? ' wny' : '') }}">
  <div class="bar {{ ($res[0]['public_status'] !== 0 ? ' bny' : '') }}">{{ $res[0]['title'] }}</div>
  <div class="meta">
    <a href="/profile/{{$res[0]['user_id']}}">
      <img src="/{{ $res[0]['avatar'] }}" width="20" height="20" alt="{{ $res[0]['showname'] }}のアイコン" />
      <span style="{{ $res[0]['showcol'] }}">{{ $res[0]['showname'] }}</span>
    </a>、
    <span>{{ $res[0]['publish_date'] }}で公開</span>
  </div>
  <div class="back" style="white-space: pre-wrap;">
    {!! $res[0]['message'] !!}
  </div>
  <div class="comment">
    <div class="container-fluid">
      <div class="row">
        <div class="col">
          <comments slug="{{$res[0]['slug']}}" :comments="{{json_encode($res[0]['comments'])}}" />
        </div>
      </div>
    </div>
  </div>
</div>

@endsection
