<!DOCTYPE html>
<html>

@include('admin.common.commonMedia')
<script src="{{ asset('xadmin/extra/datepicker/js/moment.js')}}"></script>
<body>

<!--====================================================
                         MAIN NAVBAR
======================================================-->
@include('admin.common.header')

<!--====================================================
                        PAGE CONTENT
======================================================-->
<div class="page-content d-flex align-items-stretch">

    <!--***** SIDE NAVBAR *****-->
    @include('admin.common.left')

    <div class="content-inner chart-cont">

        <div class="card form">
            <div class="card-header">
                <h3>激活码列表</h3>
            </div>
            <br>

            <!--***** CONTENT *****-->
            <div class="row ml20" style="margin-bottom: 20px;">
                <div class="xblock">
                    <form>
                        <input type="text" style="min-width: 280px" name="doc_id" class="form-input" placeholder="文件编号" value="{{$doc_id}}" autocomplete="off">
                        <input type="hidden" name="category_id" value="{{$category_id}}">
                        <input type="hidden" name="appid" value="{{$appid}}">
                        <button type="submit" class="btn btn-primary">查找</button>
                    </form>
                </div>

                <div class="active_code" style="margin: 20px 0;">

                    @if(count($activity_codes) > 0)
                        <div class="userinfo">
                            加密人员：{{$mobile}}
                        </div>
                        <div class="active_code_list">
                            <table class="table table-hover">
                                <thead>
                                <tr class="bg-info text-white">
                                    <th>序号</th>
                                    <th>编号</th>
                                </tr>
                                </thead>
                                <tbody>

                                @foreach ($activity_codes as $key => $activity_code)
                                    <tr>
                                        <td>{{$key+1}}</td>
                                        <td >{{$activity_code}}</td>
                                    </tr>
                                @endforeach
                                </tbody>
                            </table>
                        </div>

                    @else
                        @if($doc_id)
                            <div>未查到相关数据</div>
                        @endif
                    @endif
                </div>


            </div>
        </div>


    </div>
</div>

<!--Global Javascript -->
@include('admin.common.foot')

<!--Core Javascript -->
<link rel="stylesheet" href="{{ asset('xadmin/extra/jqueryConfirm/css/jquery-confirm.css')}}">
<script src="{{ asset('xadmin/extra/jqueryConfirm/js/jquery-confirm.min.js')}}"></script>

<script src="{{ asset('xadmin/extra/toast/js/toast.js')}}"></script>
{{--<link rel="stylesheet" href="{{ asset('xadmin/extra/toast/css/toast.css')}}">--}}

<script src="{{ asset('xadmin/js/jquery.validate.js')}}"></script>


</body>

</html>