@extends('admin.layouts.app')

@section('content')
<div class="container-fluid">
    <h2>게시판 관리 - 열람</h2>
    <hr/>
    @include('admin.messages')
    @if($boardID)
        @include('admin.board.board.navTabs')
    @endif

    <form name="f_admin_write" id="fAdminWrite" method="post" action="{{ $actionURL }}" enctype="multipart/form-data">
        @csrf
        <input type="hidden" name="board_id" value="{{ $boardID }}" />
        <div class="row mb-3">
            <label for="useBookmark_1" class="col-sm-2">즐겨찾기 기능</label>
            <div class="col-sm-8">
                <div class="form-check form-check-inline">
                    <input type="radio" name="use_bookmark" id="useBookmark_1" class="form-check-input" value="1" @if($boardMetaData->use_bookmark ?? old('use_bookmark')) checked @endif/>
                    <label for="useBookmark_1" class="form-check-label">예</label>
                </div>
                <div class="form-check form-check-inline">
                    <input type="radio" name="use_bookmark" id="useBookmark_0" class="form-check-input" value="0" @if(!($boardMetaData->use_bookmark ?? old('use_bookmark'))) checked @endif/>
                    <label for="useBookmark_0" class="form-check-label">아니오</label>
                </div>
            </div>
            <div class="col-sm-2">
                <div class="form-check form-check-inline">
                    <input type="checkbox" name="grp[use_bookmark]" id="grpUserBookmark" class="form-check-input" value="1" />
                    <label for="grpUserBookmark" class="form-check-label">
                        그룹적용
                    </label>
                </div>
                <div class="form-check form-check-inline">
                    <input type="checkbox" name="all[use_bookmark]" id="allUserBookmark" class="form-check-input" value="1" />
                    <label for="allUserBookmark" class="form-check-label">
                        전체적용
                    </label>
                </div>
            </div>
        </div>
        <div class="row mb-3">
            <label for="usePostLike_1" class="col-sm-2">추천 기능</label>
            <div class="col-sm-8">
                <div class="form-check form-check-inline">
                    <input type="radio" name="use_post_like" id="usePostLike_1" class="form-check-input" value="1" @if($boardMetaData->use_post_like ?? old('use_post_like')) checked @endif/>
                    <label for="usePostLike_1" class="form-check-label">예</label>
                </div>
                <div class="form-check form-check-inline">
                    <input type="radio" name="use_post_like" id="usePostLike_0" class="form-check-input" value="0" @if(!($boardMetaData->use_post_like ?? old('use_post_like'))) checked @endif/>
                    <label for="usePostLike_0" class="form-check-label">아니오</label>
                </div>
            </div>
            <div class="col-sm-2">
                <div class="form-check form-check-inline">
                    <input type="checkbox" name="grp[use_post_like]" id="grpUsePostLike" class="form-check-input" value="1" />
                    <label for="grpUsePostLike" class="form-check-label">
                        그룹적용
                    </label>
                </div>
                <div class="form-check form-check-inline">
                    <input type="checkbox" name="all[use_post_like]" id="allUsePostLike" class="form-check-input" value="1" />
                    <label for="allUsePostLike" class="form-check-label">
                        전체적용
                    </label>
                </div>
            </div>
        </div>
        <div class="row mb-3">
            <label for="usePostDislike_1" class="col-sm-2">비추천 기능</label>
            <div class="col-sm-8">
                <div class="form-check form-check-inline">
                    <input type="radio" name="use_post_dislike" id="usePostDislike_1" class="form-check-input" value="1" @if($boardMetaData->use_post_dislike ?? old('use_post_dislike')) checked @endif/>
                    <label for="usePostDislike_1" class="form-check-label">예</label>
                </div>
                <div class="form-check form-check-inline">
                    <input type="radio" name="use_post_dislike" id="usePostDislike_0" class="form-check-input" value="0" @if(!($boardMetaData->use_post_dislike ?? old('use_post_dislike'))) checked @endif/>
                    <label for="usePostDislike_0" class="form-check-label">아니오</label>
                </div>
            </div>
            <div class="col-sm-2">
                <div class="form-check form-check-inline">
                    <input type="checkbox" name="grp[use_post_dislike]" id="grpPostDislike" class="form-check-input" value="1" />
                    <label for="grpPostDislike" class="form-check-label">
                        그룹적용
                    </label>
                </div>
                <div class="form-check form-check-inline">
                    <input type="checkbox" name="all[use_post_dislike]" id="allPostDislike" class="form-check-input" value="1" />
                    <label for="allPostDislike" class="form-check-label">
                        전체적용
                    </label>
                </div>
            </div>
        </div>
        <div class="row mb-3">
            <label for="usePrint_1" class="col-sm-2">본문 인쇄 기능</label>
            <div class="col-sm-8">
                <div class="form-check form-check-inline">
                    <input type="radio" name="use_print" id="usePrint_1" class="form-check-input" value="1" @if($boardMetaData->use_print ?? old('use_print')) checked @endif/>
                    <label for="usePrint_1" class="form-check-label">예</label>
                </div>
                <div class="form-check form-check-inline">
                    <input type="radio" name="use_print" id="usePrint_0" class="form-check-input" value="0" @if(!($boardMetaData->use_print ?? old('use_print'))) checked @endif/>
                    <label for="usePrint_0" class="form-check-label">아니오</label>
                </div>
            </div>
            <div class="col-sm-2">
                <div class="form-check form-check-inline">
                    <input type="checkbox" name="grp[use_print]" id="grpUsePrint" class="form-check-input" value="1" />
                    <label for="grpUsePrint" class="form-check-label">
                        그룹적용
                    </label>
                </div>
                <div class="form-check form-check-inline">
                    <input type="checkbox" name="all[use_print]" id="allUsePrint" class="form-check-input" value="1" />
                    <label for="allUsePrint" class="form-check-label">
                        전체적용
                    </label>
                </div>
            </div>
        </div>
        <div class="row mb-3">
            <label for="useSns_1" class="col-sm-2">SNS 보내기 버튼</label>
            <div class="col-sm-8">
                <div class="form-check form-check-inline">
                    <input type="radio" name="use_sns" id="useSns_1" class="form-check-input" value="1" @if($boardMetaData->use_sns ?? old('use_sns')) checked @endif/>
                    <label for="useSns_1" class="form-check-label">예</label>
                </div>
                <div class="form-check form-check-inline">
                    <input type="radio" name="use_sns" id="useSns_0" class="form-check-input" value="0" @if(!($boardMetaData->use_sns ?? old('use_sns'))) checked @endif/>
                    <label for="useSns_0" class="form-check-label">아니오</label>
                </div>
                <div class="form-text text-muted">
                   Facebook, Twitter, Reddit 공유 기능을 활성화 합니다.
                </div>
            </div>
            <div class="col-sm-2">
                <div class="form-check form-check-inline">
                    <input type="checkbox" name="grp[use_sns]" id="grpUseSns" class="form-check-input" value="1" />
                    <label for="grpUseSns" class="form-check-label">
                        그룹적용
                    </label>
                </div>
                <div class="form-check form-check-inline">
                    <input type="checkbox" name="all[use_sns]" id="allUseSns" class="form-check-input" value="1" />
                    <label for="allUseSns" class="form-check-label">
                        전체적용
                    </label>
                </div>
            </div>
        </div>
        <div class="row mb-3">
            <label for="usePrevNextPost_1" class="col-sm-2">이전글, 다음글 버튼</label>
            <div class="col-sm-8">
                <div class="form-check form-check-inline">
                    <input type="radio" name="use_prev_next_post" id="usePrevNextPost_1" class="form-check-input" value="1" @if($boardMetaData->use_prev_next_post ?? old('use_prev_next_post')) checked @endif/>
                    <label for="usePrevNextPost_1" class="form-check-label">예</label>
                </div>
                <div class="form-check form-check-inline">
                    <input type="radio" name="use_prev_next_post" id="usePrevNextPost_0" class="form-check-input" value="0" @if(!($boardMetaData->use_prev_next_post ?? old('use_prev_next_post'))) checked @endif/>
                    <label for="usePrevNextPost_0" class="form-check-label">아니오</label>
                </div>
                <div class="form-text text-muted">
                    게시글 이전, 다음 글 버튼을 활성화 합니다.
                </div>
            </div>
            <div class="col-sm-2">
                <div class="form-check form-check-inline">
                    <input type="checkbox" name="grp[use_prev_next_post]" id="grpUsePrevNextPost" class="form-check-input" value="1" />
                    <label for="grpUsePrevNextPost" class="form-check-label">
                        그룹적용
                    </label>
                </div>
                <div class="form-check form-check-inline">
                    <input type="checkbox" name="all[use_prev_next_post]" id="allUsePrevNextPost" class="form-check-input" value="1" />
                    <label for="allUsePrevNextPost" class="form-check-label">
                        전체적용
                    </label>
                </div>
            </div>
        </div>
        <div class="row mb-3">
            <label for="useBlame_1" class="col-sm-2">신고 기능</label>
            <div class="col-sm-8">
                <div class="form-check form-check-inline">
                    <input type="radio" name="use_blame" id="useBlame_1" class="form-check-input" value="1" @if($boardMetaData->use_blame ?? old('use_blame')) checked @endif/>
                    <label for="useBlame_1" class="form-check-label">예</label>
                </div>
                <div class="form-check form-check-inline">
                    <input type="radio" name="use_blame" id="useBlame_0" class="form-check-input" value="0" @if(!($boardMetaData->use_blame ?? old('use_blame'))) checked @endif/>
                    <label for="useBlame_0" class="form-check-label">아니오</label>
                </div>
            </div>
            <div class="col-sm-2">
                <div class="form-check form-check-inline">
                    <input type="checkbox" name="grp[use_blame]" id="grpUseBlame" class="form-check-input" value="1" />
                    <label for="grpUseBlame" class="form-check-label">
                        그룹적용
                    </label>
                </div>
                <div class="form-check form-check-inline">
                    <input type="checkbox" name="all[use_blame]" id="allUseBlame" class="form-check-input" value="1" />
                    <label for="allUseBlame" class="form-check-label">
                        전체적용
                    </label>
                </div>
            </div>
        </div>
        <div class="row mb-3">
            <label for="blameBlindCount" class="col-sm-2 col-form-label">신고 시 숨김</label>
            <div class="col-sm-8">
                <input type="text" name="blame_blind_count" id="blameBlindCount" class="form-control d-inline w-auto" value="{{ $boardMetaData->blame_blind_count ?? old('blame_blind_count') }}" /> 회
                <div class="form-text text-muted">
                    지정한 횟수 이상 신고가 발생하면 게시물을 숨김 처리합니다. 숨김된 게시물은 관리자와 본인만 열람이 가능합니다.
                </div>
            </div>
            <div class="col-sm-2">
                <div class="form-check form-check-inline">
                    <input type="checkbox" name="grp[blame_blind_count]" id="grpBlameBlindCount" class="form-check-input" value="1" />
                    <label for="grpBlameBlindCount" class="form-check-label">
                        그룹적용
                    </label>
                </div>
                <div class="form-check form-check-inline">
                    <input type="checkbox" name="all[blame_blind_count]" id="allBlameBlindCount" class="form-check-input" value="1" />
                    <label for="allBlameBlindCount" class="form-check-label">
                        전체적용
                    </label>
                </div>
            </div>
        </div>
        <div class="row mb-3">
            <label for="showPostIp" class="col-sm-2 col-form-label">IP 보이기</label>
            <div class="col-sm-8">
                <select name="show_post_ip" id="showPostIp" class="form-select w-auto">
                    <option value="">공개하지 않음</option>
                    <option value="1" {{ ($boardMetaData->show_post_ip ?? old('show_post_ip')) == '1' ? 'selected' : '' }} >일부 공개 (환경 기본설정에서 정한 방법)</option>
                    <option value="2" {{ ($boardMetaData->show_post_ip ?? old('show_post_ip')) == '2' ? 'selected' : '' }} >전체 공개</option>
                </select>
                <div class="form-text text-muted">
                    관리자에게는 IP 가 항상 보입니다.
                </div>
            </div>
            <div class="col-sm-2">
                <div class="form-check form-check-inline">
                    <input type="checkbox" name="grp[show_post_ip]" id="grpShowPostIp" class="form-check-input" value="1" />
                    <label for="grpShowPostIp" class="form-check-label">
                        그룹적용
                    </label>
                </div>
                <div class="form-check form-check-inline">
                    <input type="checkbox" name="all[show_post_ip]" id="allShowPostIp" class="form-check-input" value="1" />
                    <label for="allShowPostIp" class="form-check-label">
                        전체적용
                    </label>
                </div>
            </div>
        </div>
        <div class="row mb-3">
            <label for="contentTargetBlank_1" class="col-sm-2">Link 새창</label>
            <div class="col-sm-8">
                <div class="form-check form-check-inline">
                    <input type="radio" name="content_target_blank" id="contentTargetBlank_1" class="form-check-input" value="1" @if($boardMetaData->content_target_blank ?? old('content_target_blank')) checked @endif/>
                    <label for="contentTargetBlank_1" class="form-check-label">예</label>
                </div>
                <div class="form-check form-check-inline">
                    <input type="radio" name="content_target_blank" id="contentTargetBlank_0" class="form-check-input" value="0" @if(!($boardMetaData->content_target_blank ?? old('content_target_blank'))) checked @endif/>
                    <label for="contentTargetBlank_0" class="form-check-label">아니오</label>
                </div>
                <div class="form-text text-muted">
                    본문 안의 링크가 무조건 새창으로 열립니다.
                </div>
            </div>
            <div class="col-sm-2">
                <div class="form-check form-check-inline">
                    <input type="checkbox" name="grp[content_target_blank]" id="grpContentTargetBlank" class="form-check-input" value="1" />
                    <label for="grpContentTargetBlank" class="form-check-label">
                        그룹적용
                    </label>
                </div>
                <div class="form-check form-check-inline">
                    <input type="checkbox" name="all[content_target_blank]" id="allContentTargetBlank" class="form-check-input" value="1" />
                    <label for="allContentTargetBlank" class="form-check-label">
                        전체적용
                    </label>
                </div>
            </div>
        </div>
        <div class="row mb-3">
            <label for="useAutoUrl_1" class="col-sm-2">본문 URL Link 생성</label>
            <div class="col-sm-8">
                <div class="form-check form-check-inline">
                    <input type="radio" name="use_auto_url" id="useAutoUrl_1" class="form-check-input" value="1" @if($boardMetaData->use_auto_url ?? old('use_auto_url')) checked @endif/>
                    <label for="useAutoUrl_1" class="form-check-label">예</label>
                </div>
                <div class="form-check form-check-inline">
                    <input type="radio" name="use_auto_url" id="useAutoUrl_0" class="form-check-input" value="0" @if(!($boardMetaData->use_auto_url ?? old('use_auto_url'))) checked @endif/>
                    <label for="useAutoUrl_0" class="form-check-label">아니오</label>
                </div>
                <div class="form-text text-muted">
                    본문 내용 중 URL은 무조건 자동으로 Link를 생성합니다.
                </div>
            </div>
            <div class="col-sm-2">
                <div class="form-check form-check-inline">
                    <input type="checkbox" name="grp[use_auto_url]" id="grpUseAutoUrl" class="form-check-input" value="1" />
                    <label for="grpUseAutoUrl" class="form-check-label">
                        그룹적용
                    </label>
                </div>
                <div class="form-check form-check-inline">
                    <input type="checkbox" name="all[use_auto_url]" id="allUseAutoUrl" class="form-check-input" value="1" />
                    <label for="allUseAutoUrl" class="form-check-label">
                        전체적용
                    </label>
                </div>
            </div>
        </div>
        <div class="row mb-3">
            <label for="useCopyPostUrl_1" class="col-sm-2">주소 복사 버튼</label>
            <div class="col-sm-8">
                <div class="form-check form-check-inline">
                    <input type="radio" name="use_copy_post_url" id="useCopyPostUrl_1" class="form-check-input" value="1" @if($boardMetaData->use_copy_post_url ?? old('use_copy_post_url')) checked @endif/>
                    <label for="useCopyPostUrl_1" class="form-check-label">예</label>
                </div>
                <div class="form-check form-check-inline">
                    <input type="radio" name="use_copy_post_url" id="useCopyPostUrl_0" class="form-check-input" value="0" @if(!($boardMetaData->use_copy_post_url ?? old('use_copy_post_url'))) checked @endif/>
                    <label for="useCopyPostUrl_0" class="form-check-label">아니오</label>
                </div>
                <div class="form-text text-muted">
                    글 주소복사를 할 수 있는 버튼이 나타납니다.
                </div>
            </div>
            <div class="col-sm-2">
                <div class="form-check form-check-inline">
                    <input type="checkbox" name="grp[use_copy_post_url]" id="grpUseCopyPostUrl" class="form-check-input" value="1" />
                    <label for="grpUseCopyPostUrl" class="form-check-label">
                        그룹적용
                    </label>
                </div>
                <div class="form-check form-check-inline">
                    <input type="checkbox" name="all[use_copy_post_url]" id="allUseCopyPostUrl" class="form-check-input" value="1" />
                    <label for="allUseCopyPostUrl" class="form-check-label">
                        전체적용
                    </label>
                </div>
            </div>
        </div>
        <div class="row mb-3">
            <label for="useUrlQrcode_1" class="col-sm-2 col-form-label">글 주소 QR 코드</label>
            <div class="col-sm-8">
                <div class="form-check form-check-inline">
                    <input type="radio" name="use_url_qrcode" id="useUrlQrcode_1" class="form-check-input" value="1" @if($boardMetaData->use_url_qrcode ?? old('use_url_qrcode')) checked @endif/>
                    <label for="useUrlQrcode_1" class="form-check-label">예</label>
                </div>
                <div class="form-check form-check-inline">
                    <input type="radio" name="use_url_qrcode" id="useUrlQrcode_0" class="form-check-input" value="0" @if(!($boardMetaData->use_url_qrcode ?? old('use_url_qrcode'))) checked @endif/>
                    <label for="useUrlQrcode_0" class="form-check-label">아니오</label>
                </div>
                <div class="form-text text-muted">글주소 복사하는 버튼 우측에 현재 주소를 담은 QR 코드를 볼 수 있는 버튼이 생겨납니다.</div>
            </div>
            <div class="col-sm-2">
                <div class="form-check form-check-inline">
                    <input type="checkbox" name="grp[use_url_qrcode]" id="grpUseUrlQrcode" class="form-check-input" value="1" />
                    <label for="grpUseUrlQrcode" class="form-check-label">
                        그룹적용
                    </label>
                </div>
                <div class="form-check form-check-inline">
                    <input type="checkbox" name="all[use_url_qrcode]" id="allUseUrlQrcode" class="form-check-input" value="1" />
                    <label for="allUseUrlQrcode" class="form-check-label">
                        전체적용
                    </label>
                </div>
            </div>
        </div>
        <div class="row mb-3">
            <label for="useAttachedUrlQrcode_1" class="col-sm-2 col-form-label">첨부된 Link QR 코드</label>
            <div class="col-sm-8">
                <div class="form-check form-check-inline">
                    <input type="radio" name="use_attached_url_qrcode" id="useAttachedUrlQrcode_1" class="form-check-input" value="1" @if($boardMetaData->use_attached_url_qrcode ?? old('use_attached_url_qrcode')) checked @endif/>
                    <label for="useAttachedUrlQrcode_1" class="form-check-label">예</label>
                </div>
                <div class="form-check form-check-inline">
                    <input type="radio" name="use_attached_url_qrcode" id="useAttachedUrlQrcode_0" class="form-check-input" value="0" @if(!($boardMetaData->use_attached_url_qrcode ?? old('use_attached_url_qrcode'))) checked @endif/>
                    <label for="useAttachedUrlQrcode_0" class="form-check-label">아니오</label>
                </div>
                <div class="form-text text-muted">첨부된 Link 주소 우측에 해당 Link 주소를 담은 QR 코드를 볼 수 있는 버튼이 생겨납니다.</div>
            </div>
            <div class="col-sm-2">
                <div class="form-check form-check-inline">
                    <input type="checkbox" name="grp[use_attached_url_qrcode]" id="grpUseAttachedUrlQrcode" class="form-check-input" value="1" />
                    <label for="grpUseAttachedUrlQrcode" class="form-check-label">
                        그룹적용
                    </label>
                </div>
                <div class="form-check form-check-inline">
                    <input type="checkbox" name="all[use_attached_url_qrcode]" id="allUseAttachedUrlQrcode" class="form-check-input" value="1" />
                    <label for="allUseAttachedUrlQrcode" class="form-check-label">
                        전체적용
                    </label>
                </div>
            </div>
        </div>
        <div class="row mb-3">
            <label for="needLikeForDownload_1" class="col-sm-2">다운로드 제한 <br/>(추천 필수)</label>
            <div class="col-sm-8">
                <div class="form-check form-check-inline">
                    <input type="radio" name="need_like_for_download" id="needLikeForDownload_1" class="form-check-input" value="1" @if($boardMetaData->need_like_for_download ?? old('need_like_for_download')) checked @endif/>
                    <label for="needLikeForDownload_1" class="form-check-label">예</label>
                </div>
                <div class="form-check form-check-inline">
                    <input type="radio" name="need_like_for_download" id="needLikeForDownload_0" class="form-check-input" value="0" @if(!($boardMetaData->need_like_for_download ?? old('need_like_for_download'))) checked @endif/>
                    <label for="needLikeForDownload_0" class="form-check-label">아니오</label>
                </div>
                <div class="form-text text-muted">
                    첨부파일을 다운로드 받기 위해서는 댓글를 반드시 입력하셔야 합니다. (회원들에게만 적용)
                </div>
            </div>
            <div class="col-sm-2">
                <div class="form-check form-check-inline">
                    <input type="checkbox" name="grp[need_like_for_download]" id="grpNeedLikeForDownload" class="form-check-input" value="1" />
                    <label for="grpNeedLikeForDownload" class="form-check-label">
                        그룹적용
                    </label>
                </div>
                <div class="form-check form-check-inline">
                    <input type="checkbox" name="all[need_like_for_download]" id="allNeedLikeForDownload" class="form-check-input" value="1" />
                    <label for="allNeedLikeForDownload" class="form-check-label">
                        전체적용
                    </label>
                </div>
            </div>
        </div>
        <div class="row mb-3">
            <label for="needCommentForDownload_1" class="col-sm-2">다운로드 제한 <br/>(댓글 필수)</label>
            <div class="col-sm-8">
                <div class="form-check form-check-inline">
                    <input type="radio" name="need_comment_for_download" id="needCommentForDownload_1" class="form-check-input" value="1" @if($boardMetaData->need_comment_for_download ?? old('need_comment_for_download')) checked @endif/>
                    <label for="needCommentForDownload_1" class="form-check-label">예</label>
                </div>
                <div class="form-check form-check-inline">
                    <input type="radio" name="need_comment_for_download" id="needCommentForDownload_0" class="form-check-input" value="0" @if(!($boardMetaData->need_comment_for_download ?? old('need_comment_for_download'))) checked @endif/>
                    <label for="needCommentForDownload_0" class="form-check-label">아니오</label>
                </div>
                <div class="form-text text-muted">
                    첨부파일을 다운로드 받기 위해서는 추천을 반드시 하셔야 합니다. (회원들에게만 적용)
                </div>
            </div>
            <div class="col-sm-2">
                <div class="form-check form-check-inline">
                    <input type="checkbox" name="grp[need_comment_for_download]" id="grpNeedCommentForDownload" class="form-check-input" value="1" />
                    <label for="grpNeedCommentForDownload" class="form-check-label">
                        그룹적용
                    </label>
                </div>
                <div class="form-check form-check-inline">
                    <input type="checkbox" name="all[need_comment_for_download]" id="allNeedCommentForDownload" class="form-check-input" value="1" />
                    <label for="allNeedCommentForDownload" class="form-check-label">
                        전체적용
                    </label>
                </div>
            </div>
        </div>
        <div class="row mb-3">
            <label for="showUserThumbInPost_1" class="col-sm-2 col-form-label">회원 프로필 이미지</label>
            <div class="col-sm-8">
                <div class="form-check form-check-inline">
                    <input type="radio" name="show_user_thumb_in_post" id="showUserThumbInPost_1" class="form-check-input" value="1" @if($boardMetaData->show_user_thumb_in_post ?? old('show_user_thumb_in_post')) checked @endif/>
                    <label for="showUserThumbInPost_1" class="form-check-label">예</label>
                </div>
                <div class="form-check form-check-inline">
                    <input type="radio" name="show_user_thumb_in_post" id="showUserThumbInPost_0" class="form-check-input" value="0" @if(!($boardMetaData->show_user_thumb_in_post ?? old('show_user_thumb_in_post'))) checked @endif/>
                    <label for="showUserThumbInPost_0" class="form-check-label">아니오</label>
                </div>
                <div class="form-text text-muted">게시물 상단에 회원 사진이 노출됩니다.</div>
            </div>
            <div class="col-sm-2">
                <div class="form-check form-check-inline">
                    <input type="checkbox" name="grp[show_user_thumb_in_post]" id="grpShowUserThumbInPost" class="form-check-input" value="1" />
                    <label for="grpShowUserThumbInPost" class="form-check-label">
                        그룹적용
                    </label>
                </div>
                <div class="form-check form-check-inline">
                    <input type="checkbox" name="all[show_user_thumb_in_post]" id="allShowUserThumbInPost" class="form-check-input" value="1" />
                    <label for="allShowUserThumbInPost" class="form-check-label">
                        전체적용
                    </label>
                </div>
            </div>
        </div>
        <div class="row mb-3">
            <label for="showUserIconInPost_1" class="col-sm-2 col-form-label">회원 아이콘 이미지</label>
            <div class="col-sm-8">
                <div class="form-check form-check-inline">
                    <input type="radio" name="show_user_icon_in_post" id="showUserIconInPost_1" class="form-check-input" value="1" @if($boardMetaData->show_user_icon_in_post ?? old('show_user_icon_in_post')) checked @endif/>
                    <label for="showUserIconInPost_1" class="form-check-label">예</label>
                </div>
                <div class="form-check form-check-inline">
                    <input type="radio" name="show_user_icon_in_post" id="showUserIconInPost_0" class="form-check-input" value="0" @if(!($boardMetaData->show_user_icon_in_post ?? old('show_user_icon_in_post'))) checked @endif/>
                    <label for="showUserIconInPost_0" class="form-check-label">아니오</label>
                </div>
                <div class="form-text text-muted">게시물 상단에 회원 사진이 노출됩니다.</div>
            </div>
            <div class="col-sm-2">
                <div class="form-check form-check-inline">
                    <input type="checkbox" name="grp[show_user_icon_in_post]" id="grpShowUserIconInPost" class="form-check-input" value="1" />
                    <label for="grpShowUserIconInPost" class="form-check-label">
                        그룹적용
                    </label>
                </div>
                <div class="form-check form-check-inline">
                    <input type="checkbox" name="all[show_user_icon_in_post]" id="allShowUserIconInPost" class="form-check-input" value="1" />
                    <label for="allShowUserIconInPost" class="form-check-label">
                        전체적용
                    </label>
                </div>
            </div>
        </div>
        <div class="row mb-3">
            <label for="usePostUserRegdate_1" class="col-sm-2 col-form-label">회원 가입일</label>
            <div class="col-sm-8">
                <div class="form-check form-check-inline">
                    <input type="radio" name="use_post_user_regdate" id="usePostUserRegdate_1" class="form-check-input" value="1" @if($boardMetaData->use_post_user_regdate ?? old('use_post_user_regdate')) checked @endif/>
                    <label for="usePostUserRegdate_1" class="form-check-label">예</label>
                </div>
                <div class="form-check form-check-inline">
                    <input type="radio" name="use_post_user_regdate" id="usePostUserRegdate_0" class="form-check-input" value="0" @if(!($boardMetaData->use_post_user_regdate ?? old('use_post_user_regdate'))) checked @endif/>
                    <label for="usePostUserRegdate_0" class="form-check-label">아니오</label>
                </div>
                <div class="form-text text-muted">게시물 작성자의 가입일을 보여줍니다.</div>
            </div>
            <div class="col-sm-2">
                <div class="form-check form-check-inline">
                    <input type="checkbox" name="grp[use_post_user_regdate]" id="grpUsePostUserRegdate" class="form-check-input" value="1" />
                    <label for="grpUsePostUserRegdate" class="form-check-label">
                        그룹적용
                    </label>
                </div>
                <div class="form-check form-check-inline">
                    <input type="checkbox" name="all[use_post_user_regdate]" id="allUsePostUserRegdate" class="form-check-input" value="1" />
                    <label for="allUsePostUserRegdate" class="form-check-label">
                        전체적용
                    </label>
                </div>
            </div>
        </div>
        <hr/>
        <div class="text-end">
            <button type="submit" class="btn btn-success">저장하기</button>
            <button type="button" class="btn btn-light btn-write-cancel" value="{{ route('admin.board.board.list.index') }}">취소하기</button>
        </div>
    </form>
</div>

<script type="module">
$("#fAdminWrite").validate({
    rules: {
        use_bookmark: {required: true},
        use_post_like: {required: true},
        use_post_dislike: {required: true},
        use_print: {required: true},
        use_sns: {required: true},
        use_prev_next_post: {required: true},
        use_blame: {required: true},
        blame_blind_count: {required: true, number: true},
        show_post_ip: {required: false},
        content_target_blank: {required: true},
        use_auto_url: {required: true},
        use_copy_post_url: {required: true},
        use_url_qrcode: {required: true},
        use_attached_url_qrcode: {required: true},
        need_like_for_download: {required: true},
        need_comment_for_download: {required: true},
        show_user_thumb_in_post: {required: true},
        show_user_icon_in_post: {required: true},
        use_post_user_regdate: {required: true}
    }
});
</script>
@endsection
