@extends('admin.layouts.app')

@section('content')
<div class="container-fluid">
    <h2>추천/비추천 관리 댓글 - 상세</h2>
    <hr/>
    @include('admin.messages')

    <form name="f_admin_search" id="fAdminSearch" method="post" action="{{ route('admin.board.like.comment.update', $like->id) }}">
        @csrf
        @method('PUT')
        <input type="hidden" name="comment_like_id" value="{{ $like->id }}"/>

        <div class="row mb-3">
            <label class="col-sm-2">PK</label>
            <div class="col-sm-10">
                {{ $like->id }}
            </div>
        </div>
        <div class="row mb-3">
            <label class="col-sm-2">게시판</label>
            <div class="col-sm-10">
                {{ $like->board->name }}
            </div>
        </div>
        <div class="row mb-3">
            <label class="col-sm-2">게시글</label>
            <div class="col-sm-10">
                {{ $like->post->subject }}
            </div>
        </div>
        <div class="row mb-3">
            <label class="col-sm-2">댓글</label>
            <div class="col-sm-10">
                {{ $like->comment->content }}
            </div>
        </div>
        <div class="row mb-3">
            <label class="col-sm-2">회원</label>
            <div class="col-sm-10">
                {{ $like->user->id }} / {{ $like->user->name }} / {{ $like->user->email }}
            </div>
        </div>
        <div class="row mb-3">
            <label class="col-sm-2">상태</label>
            <div class="col-sm-10">
                @if($like->type == 1)
                    <span class="badge text-bg-danger">추천</span>
                @else
                    <span class="badge text-bg-info text-white">비추천</span>
                @endif
            </div>
        </div>
        <div class="row mb-3">
            <label class="col-sm-2">IP</label>
            <div class="col-sm-10">
                {{ $like->ip_address }}
            </div>
        </div>
        <div class="row mb-3">
            <label class="col-sm-2">Device</label>
            <div class="col-sm-10">
                {{ $like->device }}
            </div>
        </div>
        <div class="row mb-3">
            <label class="col-sm-2">Platform</label>
            <div class="col-sm-10">
                {{ $like->platform }}
            </div>
        </div>
        <div class="row mb-3">
            <label class="col-sm-2">Browser</label>
            <div class="col-sm-10">
                {{ $like->browser }}
            </div>
        </div>
        <div class="row mb-3">
            <label class="col-sm-2">UserAgent</label>
            <div class="col-sm-10">
                {{ $like->user_agent }}
            </div>
        </div>
        <div class="row mb-3">
            <label class="col-sm-2">등록일시</label>
            <div class="col-sm-10">
                {{ $like->created_at }}
            </div>
        </div>
        <hr/>
        <div class="text-end">
            <button type="button" class="btn btn-success btn-write-cancel" value="{{ route('admin.board.like.comment.index') }}">뒤로가기</button>
        </div>
    </form>
</div>
@endsection
