@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="useExp_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_exp" id="useExp_1" class="form-check-input" value="1" @if($boardMetaData->use_exp ?? old('use_exp')) checked @endif/>
                    <label for="useExp_1" class="form-check-label">예</label>
                </div>
                <div class="form-check form-check-inline">
                    <input type="radio" name="use_exp" id="useExp_0" class="form-check-input" value="0" @if(!($boardMetaData->use_exp ?? old('use_exp'))) checked @endif/>
                    <label for="useExp_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_exp]" id="grpUseExp" class="form-check-input" value="1" />
                    <label for="grpUseExp" class="form-check-label">
                        그룹적용
                    </label>
                </div>
                <div class="form-check form-check-inline">
                    <input type="checkbox" name="all[use_exp]" id="allUseExp" class="form-check-input" value="1" />
                    <label for="allUseExp" class="form-check-label">
                        전체적용
                    </label>
                </div>
            </div>
        </div>
        <div class="row mb-3">
            <label for="useExpInfo_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_exp_info" id="useExpInfo_1" class="form-check-input" value="1" @if($boardMetaData->use_exp_info ?? old('use_exp_info')) checked @endif/>
                    <label for="useExpInfo_1" class="form-check-label">예</label>
                </div>
                <div class="form-check form-check-inline">
                    <input type="radio" name="use_exp_info" id="useExpInfo_0" class="form-check-input" value="0" @if(!($boardMetaData->use_exp_info ?? old('use_exp_info'))) checked @endif/>
                    <label for="useExpInfo_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_exp_info]" id="grpUseExpInfo" class="form-check-input" value="1" />
                    <label for="grpUseExpInfo" class="form-check-label">
                        그룹적용
                    </label>
                </div>
                <div class="form-check form-check-inline">
                    <input type="checkbox" name="all[use_exp_info]" id="allUseExpInfo" class="form-check-input" value="1" />
                    <label for="allUseExpInfo" class="form-check-label">
                        전체적용
                    </label>
                </div>
            </div>
        </div>
        <div class="row mb-3">
            <label for="expWrite" class="col-sm-2 col-form-label">게시글 작성</label>
            <div class="col-sm-8">
                <div class="form-inline">
                    <input type="text" name="exp_write" id="expWrite" class="form-control only-digits-input" value="{{ $boardMetaData->exp_write ?? old('exp_write') }}" />
                </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[exp_write]" id="grpExpWrite" class="form-check-input" value="1" />
                    <label for="grpExpWrite" class="form-check-label">
                        그룹적용
                    </label>
                </div>
                <div class="form-check form-check-inline">
                    <input type="checkbox" name="all[exp_write]" id="allExpWrite" class="form-check-input" value="1" />
                    <label for="allExpWrite" class="form-check-label">
                        전체적용
                    </label>
                </div>
            </div>
        </div>
        <div class="row mb-3">
            <label for="expComment" class="col-sm-2 col-form-label">댓글 작성</label>
            <div class="col-sm-8">
                <div class="form-inline">
                    <input type="text" name="exp_comment" id="expComment" class="form-control only-digits-input" value="{{ $boardMetaData->exp_comment ?? old('exp_comment') }}" />
                </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[exp_comment]" id="grpExpComment" class="form-check-input" value="1" />
                    <label for="grpExpComment" class="form-check-label">
                        그룹적용
                    </label>
                </div>
                <div class="form-check form-check-inline">
                    <input type="checkbox" name="all[exp_comment]" id="allExpComment" class="form-check-input" value="1" />
                    <label for="allExpComment" class="form-check-label">
                        전체적용
                    </label>
                </div>
            </div>
        </div>
        <div class="row mb-3">
            <label for="expPostDelete" class="col-sm-2 col-form-label">작성자 본인이 게시글 삭제</label>
            <div class="col-sm-8">
                <div class="d-inline-block">
                    게시글 작성 시 지급했던 경험치 횟수 +
                </div>
                <div class="d-inline-block">
                    <input type="text" name="exp_post_delete" id="expPostDelete" class="form-control only-digits-input" value="{{ $boardMetaData->exp_post_delete ?? old('exp_post_delete') }}" />
                </div>
                <div class="d-inline-block">
                    경험치를 추가로 차감
                </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[exp_post_delete]" id="grpExpPostDelete" class="form-check-input" value="1" />
                    <label for="grpExpPostDelete" class="form-check-label">
                        그룹적용
                    </label>
                </div>
                <div class="form-check form-check-inline">
                    <input type="checkbox" name="all[exp_post_delete]" id="allExpPostDelete" class="form-check-input" value="1" />
                    <label for="allExpPostDelete" class="form-check-label">
                        전체적용
                    </label>
                </div>
            </div>
        </div>
        <div class="row mb-3">
            <label for="expAdminPostDelete" class="col-sm-2 col-form-label">관리자가 게시글 삭제</label>
            <div class="col-sm-8">
                <div class="d-inline-block">
                    게시글 작성 시 지급했던 경험치 횟수 +
                </div>
                <div class="d-inline-block">
                    <input type="text" name="exp_admin_post_delete" id="expAdminPostDelete" class="form-control only-digits-input" value="{{ $boardMetaData->exp_admin_post_delete ?? old('exp_admin_post_delete') }}">
                </div>
                <div class="d-inline-block">
                    경험치를 추가로 차감
                </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[exp_admin_post_delete]" id="grpExpAdminPostDelete" class="form-check-input" value="1" />
                    <label for="grpExpAdminPostDelete" class="form-check-label">
                        그룹적용
                    </label>
                </div>
                <div class="form-check form-check-inline">
                    <input type="checkbox" name="all[exp_admin_post_delete]" id="allExpAdminPostDelete" class="form-check-input" value="1" />
                    <label for="allExpAdminPostDelete" class="form-check-label">
                        전체적용
                    </label>
                </div>
            </div>
        </div>
        <div class="row mb-3">
            <label for="expCommentDelete" class="col-sm-2 col-form-label">작성자 본인이 댓글 삭제</label>
            <div class="col-sm-8">
                <div class="d-inline-block">
                    댓글작성 시 지급했던 경험치 횟수 +
                </div>
                <div class="d-inline-block">
                    <input type="text" name="exp_comment_delete" id="expCommentDelete" class="form-control only-digits-input" value="{{ $boardMetaData->exp_comment_delete ?? old('exp_comment_delete') }}" />
                </div>
                <div class="d-inline-block">
                    경험치를 추가로 차감
                </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[exp_comment_delete]" id="grpExpCommentDelete" class="form-check-input" value="1" />
                    <label for="grpExpCommentDelete" class="form-check-label">
                        그룹적용
                    </label>
                </div>
                <div class="form-check form-check-inline">
                    <input type="checkbox" name="all[exp_comment_delete]" id="allExpCommentDelete" class="form-check-input" value="1" />
                    <label for="allExpCommentDelete" class="form-check-label">
                        전체적용
                    </label>
                </div>
            </div>
        </div>
        <div class="row mb-3">
            <label for="expAdminCommentDelete" class="col-sm-2 col-form-label">관리자가 댓글 삭제</label>
            <div class="col-sm-8">
                <div class="d-inline-block">
                    댓글작성 시 지급했던 경험치 횟수 +
                </div>
                <div class="d-inline-block">
                    <input type="text" name="exp_admin_comment_delete" id="expAdminCommentDelete" class="form-control only-digits-input" value="{{ $boardMetaData->exp_admin_comment_delete ?? old('exp_admin_comment_delete') }}" />
                </div>
                <div class="d-inline-block">
                    경험치를 추가로 차감
                </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[exp_admin_comment_delete]" id="grpExpAdminCommentDelete" class="form-check-input" value="1" />
                    <label for="grpExpAdminCommentDelete" class="form-check-label">
                        그룹적용
                    </label>
                </div>
                <div class="form-check form-check-inline">
                    <input type="checkbox" name="all[exp_admin_comment_delete]" id="allExpAdminCommentDelete" class="form-check-input" value="1" />
                    <label for="allExpAdminCommentDelete" class="form-check-label">
                        전체적용
                    </label>
                </div>
            </div>
        </div>
        <div class="row mb-3">
            <label for="expFileUpload" class="col-sm-2 col-form-label">파일 업로드</label>
            <div class="col-sm-8">
                <div class="form-inline">
                    <input type="text" name="exp_file_upload" id="expFileUpload" class="form-control only-digits-input" value="{{ $boardMetaData->exp_file_upload ?? old('exp_file_upload') }}" />
                </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[exp_file_upload]" id="grpExpFileUpload" class="form-check-input" value="1" />
                    <label for="grpExpFileUpload" class="form-check-label">
                        그룹적용
                    </label>
                </div>
                <div class="form-check form-check-inline">
                    <input type="checkbox" name="all[exp_file_upload]" id="allExpFileUpload" class="form-check-input" value="1" />
                    <label for="allExpFileUpload" class="form-check-label">
                        전체적용
                    </label>
                </div>
            </div>
        </div>
        <div class="row mb-3">
            <label for="expFileDownload" class="col-sm-2 col-form-label">파일 다운로드</label>
            <div class="col-sm-8">
                <div class="form-inline">
                    <input type="text" name="exp_file_download" id="expFileDownload" class="form-control only-digits-input" value="{{ $boardMetaData->exp_file_download ?? old('exp_file_download') }}" />
                </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[exp_file_download]" id="grpExpFileDownload" class="form-check-input" value="1" />
                    <label for="grpExpFileDownload" class="form-check-label">
                        그룹적용
                    </label>
                </div>
                <div class="form-check form-check-inline">
                    <input type="checkbox" name="all[exp_file_download]" id="allExpFileDownload" class="form-check-input" value="1" />
                    <label for="allExpFileDownload" class="form-check-label">
                        전체적용
                    </label>
                </div>
            </div>
        </div>
        <div class="row mb-3">
            <label for="expFileDownloadUploader" class="col-sm-2 col-form-label">파일 다운로드 시 업로더에게</label>
            <div class="col-sm-8">
                <div class="form-inline">
                    <input type="text" name="exp_file_download_uploader" id="expFileDownloadUploader" class="form-control only-digits-input" value="{{ $boardMetaData->exp_file_download_uploader ?? old('exp_file_download_uploader') }}" />
                </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[exp_file_download_uploader]" id="grpExpFileDownloadUploader" class="form-check-input" value="1" />
                    <label for="grpExpFileDownloadUploader" class="form-check-label">
                        그룹적용
                    </label>
                </div>
                <div class="form-check form-check-inline">
                    <input type="checkbox" name="all[exp_file_download_uploader]" id="allExpFileDownloadUploader" class="form-check-input" value="1" />
                    <label for="allExpFileDownloadUploader" class="form-check-label">
                        전체적용
                    </label>
                </div>
            </div>
        </div>
        <div class="row mb-3">
            <label for="expRead" class="col-sm-2 col-form-label">게시글 조회</label>
            <div class="col-sm-8">
                <div class="form-inline">
                    <input type="text" name="exp_read" id="expRead" class="form-control only-digits-input" value="{{ $boardMetaData->exp_read ?? old('exp_read') }}" />
                </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[exp_read]" id="grpExpRead" class="form-check-input" value="1" />
                    <label for="grpExpRead" class="form-check-label">
                        그룹적용
                    </label>
                </div>
                <div class="form-check form-check-inline">
                    <input type="checkbox" name="all[exp_read]" id="allExpRead" class="form-check-input" value="1" />
                    <label for="allExpRead" class="form-check-label">
                        전체적용
                    </label>
                </div>
            </div>
        </div>
        <div class="row mb-3">
            <label for="expPostLike" class="col-sm-2 col-form-label">게시글 좋아요함</label>
            <div class="col-sm-8">
                <div class="form-inline">
                    <input type="text" name="exp_post_like" id="expPostLike" class="form-control only-digits-input" value="{{ $boardMetaData->exp_post_like ?? old('exp_post_like') }}" />
                </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[exp_post_like]" id="grpExpPostLike" class="form-check-input" value="1" />
                    <label for="grpExpPostLike" class="form-check-label">
                        그룹적용
                    </label>
                </div>
                <div class="form-check form-check-inline">
                    <input type="checkbox" name="all[exp_post_like]" id="allExpPostLike" class="form-check-input" value="1" />
                    <label for="allExpPostLike" class="form-check-label">
                        전체적용
                    </label>
                </div>
            </div>
        </div>
        <div class="row mb-3">
            <label for="expPostDislike" class="col-sm-2 col-form-label">게시글 싫어요함</label>
            <div class="col-sm-8">
                <div class="form-inline">
                    <input type="text" name="exp_post_dislike" id="expPostDislike" class="form-control only-digits-input" value="{{ $boardMetaData->exp_post_dislike ?? old('exp_post_dislike') }}" />
                </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[exp_post_dislike]" id="grpExpPostDislike" class="form-check-input" value="1" />
                    <label for="grpExpPostDislike" class="form-check-label">
                        그룹적용
                    </label>
                </div>
                <div class="form-check form-check-inline">
                    <input type="checkbox" name="all[exp_post_dislike]" id="allExpPostDislike" class="form-check-input" value="1" />
                    <label for="allExpPostDislike" class="form-check-label">
                        전체적용
                    </label>
                </div>
            </div>
        </div>
        <div class="row mb-3">
            <label for="expPostLiked" class="col-sm-2 col-form-label">게시글 좋아요 받음</label>
            <div class="col-sm-8">
                <div class="form-inline">
                    <input type="text" name="exp_post_liked" id="expPostLiked" class="form-control only-digits-input" value="{{ $boardMetaData->exp_post_liked ?? old('exp_post_liked') }}" />
                </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[exp_post_liked]" id="grpExpPostLiked" class="form-check-input" value="1" />
                    <label for="grpExpPostLiked" class="form-check-label">
                        그룹적용
                    </label>
                </div>
                <div class="form-check form-check-inline">
                    <input type="checkbox" name="all[exp_post_liked]" id="allExpPostLiked" class="form-check-input" value="1" />
                    <label for="allExpPostLiked" class="form-check-label">
                        전체적용
                    </label>
                </div>
            </div>
        </div>
        <div class="row mb-3">
            <label for="expPostDisliked" class="col-sm-2 col-form-label">게시글 싫어요 받음</label>
            <div class="col-sm-8">
                <div class="form-inline">
                    <input type="text" name="exp_post_disliked" id="expPostDisliked" class="form-control only-digits-input" value="{{ $boardMetaData->exp_post_disliked ?? old('exp_post_disliked') }}" />
                </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[exp_post_disliked]" id="grpExpPostDisliked" class="form-check-input" value="1" />
                    <label for="grpExpPostDisliked" class="form-check-label">
                        그룹적용
                    </label>
                </div>
                <div class="form-check form-check-inline">
                    <input type="checkbox" name="all[exp_post_disliked]" id="allExpPostDisliked" class="form-check-input" value="1" />
                    <label for="allExpPostDisliked" class="form-check-label">
                        전체적용
                    </label>
                </div>
            </div>
        </div>
        <div class="row mb-3">
            <label for="expCommentLike" class="col-sm-2 col-form-label">댓글 좋아요함</label>
            <div class="col-sm-8">
                <div class="form-inline">
                    <input type="text" name="exp_comment_like" id="expCommentLike" class="form-control only-digits-input" value="{{ $boardMetaData->exp_comment_like ?? old('exp_comment_like') }}" />
                </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[exp_comment_like]" id="grpExpCommentLike" class="form-check-input" value="1" />
                    <label for="grpExpCommentLike" class="form-check-label">
                        그룹적용
                    </label>
                </div>
                <div class="form-check form-check-inline">
                    <input type="checkbox" name="all[exp_comment_like]" id="allExpCommentLike" class="form-check-input" value="1" />
                    <label for="allExpCommentLike" class="form-check-label">
                        전체적용
                    </label>
                </div>
            </div>
        </div>
        <div class="row mb-3">
            <label for="expCommentDislike" class="col-sm-2 col-form-label">댓글 싫어요함</label>
            <div class="col-sm-8">
                <div class="form-inline">
                    <input type="text" name="exp_comment_dislike" id="expCommentDislike" class="form-control only-digits-input" value="{{ $boardMetaData->exp_comment_dislike ?? old('exp_comment_dislike') }}" />
                </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[exp_comment_dislike]" id="grpExpCommentDislike" class="form-check-input" value="1" />
                    <label for="grpExpCommentDislike" class="form-check-label">
                        그룹적용
                    </label>
                </div>
                <div class="form-check form-check-inline">
                    <input type="checkbox" name="all[exp_comment_dislike]" id="allExpCommentDislike" class="form-check-input" value="1" />
                    <label for="allExpCommentDislike" class="form-check-label">
                        전체적용
                    </label>
                </div>
            </div>
        </div>
        <div class="row mb-3">
            <label for="expCommentLiked" class="col-sm-2 col-form-label">댓글 좋아요 받음</label>
            <div class="col-sm-8">
                <div class="form-inline">
                    <input type="text" name="exp_comment_liked" id="expCommentLiked" class="form-control only-digits-input" value="{{ $boardMetaData->exp_comment_liked ?? old('exp_comment_liked') }}" />
                </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[exp_comment_liked]" id="grpExpCommentLiked" class="form-check-input" value="1" />
                    <label for="grpExpCommentLiked" class="form-check-label">
                        그룹적용
                    </label>
                </div>
                <div class="form-check form-check-inline">
                    <input type="checkbox" name="all[exp_comment_liked]" id="allExpCommentLiked" class="form-check-input" value="1" />
                    <label for="allExpCommentLiked" class="form-check-label">
                        전체적용
                    </label>
                </div>
            </div>
        </div>
        <div class="row mb-3">
            <label for="expCommentDisliked" class="col-sm-2 col-form-label">댓글 싫어요 받음</label>
            <div class="col-sm-8">
                <div class="form-inline">
                    <input type="text" name="exp_comment_disliked" id="expCommentDisliked" class="form-control only-digits-input" value="{{ $boardMetaData->exp_comment_disliked ?? old('exp_comment_disliked') }}" />
                </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[exp_comment_disliked]" id="grpExpCommentDisliked" class="form-check-input" value="1" />
                    <label for="grpExpCommentDisliked" class="form-check-label">
                        그룹적용
                    </label>
                </div>
                <div class="form-check form-check-inline">
                    <input type="checkbox" name="all[exp_comment_disliked]" id="allExpCommentDisliked" class="form-check-input" value="1" />
                    <label for="allExpCommentDisliked" 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_exp: {required: true, number: true}, // 경험치 기능 사용
        use_exp_info: {required: true, number: true}, // 경험치 안내
        exp_write: {required: true, number: true}, // 게시글 작성
        exp_comment: {required: true, number: true}, // 댓글 작성
        exp_post_delete: {required: true, number: true}, // 작성자 본인이 게시글 삭제
        exp_admin_post_delete: {required: true, number: true}, // 관리자가 게시글 삭제
        exp_comment_delete: {required: true, number: true}, // 작성자 본인이 댓글 삭제
        exp_admin_comment_delete: {required: true, number: true}, // 관리자가 댓글 삭제
        exp_file_upload: {required: true, number: true}, // 파일 업로드
        exp_file_download: {required: true, number: true}, // 파일 다운로드
        exp_file_download_uploader: {required: true, number: true}, // 파일 다운로드 시 업로더에게
        exp_read: {required: true, number: true}, // 게시글 조회
        exp_post_like: {required: true, number: true}, // 게시글 좋아요함
        exp_post_dislike: {required: true, number: true}, // 게시글 싫어요함
        exp_post_liked: {required: true, number: true}, // 게시글 좋아요 받음
        exp_post_disliked: {required: true, number: true}, // 게시글 싫어요 받음
        exp_comment_like: {required: true, number: true}, // 댓글 좋아요함
        exp_comment_dislike: {required: true, number: true}, // 댓글 싫어요함
        exp_comment_liked: {required: true, number: true}, // 댓글 좋아요 받음
        exp_comment_disliked: {required: true, number: true} // 댓글 싫어요 받음
    }
});
</script>
@endsection
