@version(2) @load('css/skin.css')
@if (($kin_question->status ?? 'open') === 'accepted') {{ $lang->kin_status_accepted }} @else {{ $lang->kin_status_open }} @endif @if (trim((string)$kin_category_title) !== '') {{ $kin_category_title }} @endif @if ($kin_use_point && (int)($kin_question->point ?? 0) > 0) {{ $lang->kin_point }} {{ number_format($kin_question->point) }} @endif

{{ $oDocument->getTitle() }}

@php $zmk_q_author_srl = abs((int)$oDocument->get('member_srl')); @endphp @php $zmk_q_stats = $kin_author_stats[$zmk_q_author_srl] ?? null; @endphp
{{ $lang->readed_count }} {{ number_format($oDocument->get('readed_count')) }} @if (trim((string)($kin_question->deadline ?? '')) !== '' && ($kin_question->status ?? 'open') === 'open') {{ $lang->kin_deadline }} {{ zdate($kin_question->deadline, 'Y.m.d') }} @endif
{{-- getContent(false) 로 코어가 붙이는 문서 기능 링크를 끈다 --}}
{!! $oDocument->getContent(false) !!}
@if ($oDocument->hasUploadedFiles())
{{ $lang->kin_files }} {{ count($oDocument->getUploadedFiles()) }}
@endif
@if ($kin_use_vote_up) @endif @if ($kin_use_vote_down) @endif {{ $lang->kin_list }} @if ($oDocument->isEditable()) {{ $lang->cmd_modify }} @endif @if ($oDocument->isGranted()) {{ $lang->cmd_delete }} @endif
{{-- 질문에 단 댓글 --}}

{{ $lang->kin_question_comments }} {{ count($oDocument->getComments() ?: []) }}

@foreach ($oDocument->getComments() ?: [] as $comment)
{{ $comment->getNickName() }} @if ($comment->isEditable()) {{ $lang->cmd_modify }} @endif @if ($comment->isGranted())
@csrf
@endif
{!! $comment->getContent(false) !!}
@endforeach @if ($grant->write_comment)
@csrf
@endif
{{-- 답변 --}}

{{ $lang->kin_answers }} {{ count($kin_answers) }}

@if ($kin_can_answer) {{ $lang->kin_write_answer }} @elseif ($grant->write_answer && !$is_logged) {{ $lang->cmd_login }} @endif
@if (!count($kin_answers))

{{ $lang->kin_no_answers }}

@endif @foreach ($kin_answers as $answer)
@if (($answer->kin_answer->is_accepted ?? 'N') === 'Y')
{{ $lang->kin_accepted_answer }}
@endif
@if ($answer->isEditable()) {{ $lang->cmd_modify }} @endif @if (($answer->isGranted() || $grant->manager) && ($answer->kin_answer->is_accepted ?? 'N') !== 'Y')
@csrf
@endif
{!! $answer->getContent(false) !!}
@if ($answer->hasUploadedFiles())
{{ $lang->kin_files }} {{ count($answer->getUploadedFiles()) }}
@endif
@if ($kin_use_vote_up) @endif @if ($kin_use_vote_down) @endif @if ($kin_can_accept) @endif
{{-- 답변에 단 댓글. 접어 두었다가 펼친다 --}}
@foreach ($answer->getComments() ?: [] as $comment)
{{ $comment->getNickName() }} @if ($comment->isEditable()) {{ $lang->cmd_modify }} @endif @if ($comment->isGranted())
@csrf
@endif
{!! $comment->getContent(false) !!}
@endforeach @if ($grant->write_comment)
@csrf
@endif
@endforeach