@extends('admin.layouts.app')

@section('content')
<div class="container-fluid">
    <h2>휴지통 댓글 - 상세보기</h2>
    <hr/>
    @include('admin.messages')

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

        <div class="row mb-3">
            <label class="col-sm-2">PK</label>
            <div class="col-sm-10">
                {{ $deleted->id }}
            </div>
        </div>
        <div class="row mb-3">
            <label class="col-sm-2">게시판</label>
            <div class="col-sm-10">
                {{ $deleted->board->name }}
            </div>
        </div>
        <div class="row mb-3">
            <label class="col-sm-2">게시글</label>
            <div class="col-sm-10">
                {{ $deleted->post->subject }}
            </div>
        </div>
        <div class="row mb-3">
            <label class="col-sm-2">회원</label>
            <div class="col-sm-10">
                {{ $deleted->user->id }} / {{ $deleted->user->name }} / {{ $deleted->user->email }}
            </div>
        </div>
        <div class="row mb-3">
            <label class="col-sm-2">내용</label>
            <div class="col-sm-10">
                <div class="card">
                    <div class="card-body">
                        {!! $deleted->comment->content !!}
                    </div>
                </div>
            </div>
        </div>
        <div class="row mb-3">
            <label class="col-sm-2">작성일시</label>
            <div class="col-sm-10">
                {{ $deleted->post->created_at }}
            </div>
        </div>
        <div class="row mb-3">
            <label class="col-sm-2">IP</label>
            <div class="col-sm-10">
                {{ $deleted->ip_address }}
            </div>
        </div>
        <div class="row mb-3">
            <label class="col-sm-2">Device</label>
            <div class="col-sm-10">
                {{ $deleted->device }}
            </div>
        </div>
        <div class="row mb-3">
            <label class="col-sm-2">Platform</label>
            <div class="col-sm-10">
                {{ $deleted->platform }}
            </div>
        </div>
        <div class="row mb-3">
            <label class="col-sm-2">Browser</label>
            <div class="col-sm-10">
                {{ $deleted->browser }}
            </div>
        </div>
        <div class="row mb-3">
            <label class="col-sm-2">UserAgent</label>
            <div class="col-sm-10">
                {{ $deleted->user_agent }}
            </div>
        </div>
        <div class="row mb-3">
            <label class="col-sm-2">삭제일시</label>
            <div class="col-sm-10">
                {{ $deleted->created_at }}
            </div>
        </div>
        <hr/>
        <div class="text-end">
            <button type="button" class="btn btn-success btn-write-cancel" value="{{ route('admin.board.trash.comment.index') }}">뒤로가기</button>
        </div>
    </form>
</div>
@endsection
