@extends('modstart::admin.frame')
@section('bodyContent')

    @if(!$canEdit)
        <div class="ub-alert ub-alert-danger">
            <i class="iconfont icon-bell"></i>
            由于该试卷已经有用户参加考试，因此只能修改“试卷标题”和“是否公开试卷”，其他信息的修改将会被忽略。
        </div>
    @endif
    
    <div class="ub-panel">
        <div class="head">
            <div class="title">{{$pageTitle}}</div>
        </div>
        <div class="body">
            <div id="app"></div>
        </div>
    </div>

    <div class="content-fixed-bottom-toolbox-placeholder"></div>

@endsection

@section('bodyAppend')
    <script src="@asset('asset/vendor/vue.js')"></script>
    <script src="@asset('asset/vendor/element-ui/index.js')"></script>
    <script>
        window.__data = {
            paper: {!! json_encode($data) !!},
            paperQuestions: {!! json_encode($paperQuestions) !!}
        }
    </script>
    <script src="@asset('vendor/Paper/entry/paperEdit.js')"></script>
@endsection