@extends('layouts.app')
@section('title')日志详情{{$log['id']}}@endsection

@section('content')
    <div id="nav2">
        @component('maintenance.menu')@endcomponent
        @component('maintenance.log.menu')
            <li class="nav-item">
                <a class="nav-link active" href="{{URL::current()}}" >显示</a>
            </li>
        @endcomponent
    </div>
    <div class="container-fluid" id="container">
        {{--@include("maintenance.log._taskModal")--}}
        <div class="card ">
            <pre class="card-body">
                <table class="table table-striped">
                    <tr>
                        <td>ID</td>
                        <td>{{$log['id']}}</td>
                    </tr>
                    <tr>
                        <td>类名</td>
                        <td>{{$log['class']}}</td>
                    </tr>
                    <tr>
                        <td>类型</td>
                        <td>{{$log['method']}}</td>
                    </tr>
                    <tr>
                        <td>IP</td>
                        <td>{{$log['ip']}}</td>
                    </tr>
                    <tr>
                        <td>详细</td>
                        <td style="word-break: break-all;">
                            {{--<button v-if="log.exception_mark == 'Y'" class="btn btn-sm btn-success ml-2" data-toggle="modal" data-target="#task">重新分发</button>--}}
                            <pre>@{{ log.description }}</pre>
                        </td>
                    </tr>
                    <tr>
                        <td>用户</td>
                        <td><span v-if="log.user">@{{log.user.name}}</span></td>
                    </tr>
                    <tr>
                        <td>时间</td>
                        <td>{{$log['created_at']}}</td>
                    </tr>
                </table>
            </div>
        </div>
    </div>
@endsection

@section('lastScript')
<script>
    new Vue({
        el:"#container",
        data:{
            log:{!! $log??'""' !!},
        },
    });
</script>
@stop
