<!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>

                @if(count($media_categories) > 0)

                    <div class="active_code" style="margin: 20px 0;">
                        <div class="userinfo">
                            加密人员：张三
                        </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 ($media_categories as $key => $media_category)
                                    <tr>
                                        <td>{{$key+1}}</td>
                                        <td >{{$media_category}}</td>
                                    </tr>
                                @endforeach
                                </tbody>
                            </table>
                        </div>
                    </div>

                @else


                @endif
            </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>