如何将所见即所得插入laravel

如何将所见即所得插入laravel,laravel,plugins,Laravel,Plugins,任何人都知道我的错误在哪里,我只是不能调用函数,有人能指出我的错误吗 <form method="post"> <label for="company_policy_policy_details">Policy Details<span class="required">*</span></label> <textarea id="summernote" name="company_policy_policy_de

任何人都知道我的错误在哪里,我只是不能调用函数,有人能指出我的错误吗

<form method="post">
    <label for="company_policy_policy_details">Policy Details<span class="required">*</span></label>
    <textarea id="summernote" name="company_policy_policy_details"  class="form-control" cols="139" rows="10" placeholder="Please Enter the Policy Details"></textarea>
    <script>
        $(document).ready(function() {
            $('#summernote').summernote();
        });
    </script>
</form>
            <div class="form-group">
                <label for="company_policy_version-no">Version-no<span class="required"> :
            <div class="form-group">
                <label for="company_policy_policy_details">Policy Details<span class="required"> : (Required Field)</span></label>
                <textarea name="policy_details" input id="content"  class="form-control" cols="139" rows="10" placeholder="Please Enter
            <html lang="en">
            <head>
                <meta charset="UTF-8">
                <title>Summernote with Bootstrap 4</title>
                <script src="https://code.jquery.com/jquery-3.4.1.min.js"
                <link rel="stylesheet" href="https://stackpath.bootstrapcdn.com/bootstrap/4.4.1/css/bootstrap.min.css"
                <link href="https://cdn.jsdelivr.net/npm/summernote@0.8.15/dist/summernote-bs4.min.css"
            <div class="form-group">
                <label for="company_policy_expiry_date">Expiry Date<span class="required"> : (Required Field)</span></label>
                <input id="company_policy_expiry_date" type="datetime-local" name="expiry_date" class="form-control"
            <div class="form-group">
                <label for="company_policy_file_path">Policy File Path<span class="required"> : (Required Field)</span></label>
                <input id="company_policy_file_path" type="text" name="file_path" class="form-control" placeholder="Please Enter the
            <div class="form-group">
                <input type="submit"  class="btn btn btn-primary"  />
                <a href="{{url('/policy')}}" ><span class="mj btn btn btn-danger">Back</span></a>
                <a href="{{url('/')}}" ><span class="mj btn btn btn-danger">Back to home</span></a>
            </div>
        </form>
    </div>
</div>

保单详情*
$(文档).ready(函数(){
$('#summernote').summernote();
});
我想把WYSIWYG编辑器功能调用到laravel中,只是我刚刚试了16个小时,但还是失败了。 这是我遵循的教程/ 链接如下:

            <div class="form-group">
                <label for="company_policy_version-no">Version-no<span class="required"> :
            <div class="form-group">
                <label for="company_policy_policy_details">Policy Details<span class="required"> : (Required Field)</span></label>
                <textarea name="policy_details" input id="content"  class="form-control" cols="139" rows="10" placeholder="Please Enter
            <html lang="en">
            <head>
                <meta charset="UTF-8">
                <title>Summernote with Bootstrap 4</title>
                <script src="https://code.jquery.com/jquery-3.4.1.min.js"
                <link rel="stylesheet" href="https://stackpath.bootstrapcdn.com/bootstrap/4.4.1/css/bootstrap.min.css"
                <link href="https://cdn.jsdelivr.net/npm/summernote@0.8.15/dist/summernote-bs4.min.css"
            <div class="form-group">
                <label for="company_policy_expiry_date">Expiry Date<span class="required"> : (Required Field)</span></label>
                <input id="company_policy_expiry_date" type="datetime-local" name="expiry_date" class="form-control"
            <div class="form-group">
                <label for="company_policy_file_path">Policy File Path<span class="required"> : (Required Field)</span></label>
                <input id="company_policy_file_path" type="text" name="file_path" class="form-control" placeholder="Please Enter the
            <div class="form-group">
                <input type="submit"  class="btn btn btn-primary"  />
                <a href="{{url('/policy')}}" ><span class="mj btn btn btn-danger">Back</span></a>
                <a href="{{url('/')}}" ><span class="mj btn btn btn-danger">Back to home</span></a>
            </div>
        </form>
    </div>
</div>
>
> 
>href=”https://stackpath.bootstrapcdn.com/bootstrap/3.3.7/css/bootstrap.min.css"
>rel=“样式表”>src=”https://code.jquery.com/jquery-3.4.1.min.js“>src=”https://stackpath.bootstrapcdn.com/bootstrap/3.3.7/js/bootstrap.min.js">
> 
>href=”https://cdn.jsdelivr.net/npm/summernote@0.8.15/dist/summernote.min.css“
>rel=“样式表”>src=”https://cdn.jsdelivr.net/npm/summernote@0.8.15/dist/summernote.min.js“>
> 
> 
> 
> 
>@yield('styles')@扩展('master')@节('content'))
> 
> 
>     
>         
>
>创建策略 >
>@if(计数($errors)>0) > >
    >@foreach($errors->all()作为$error) >
  • {{$error}
  • >@endforeach >
> >@endif >@if(\Session::has('success')) > >{{\Session::get('success')}

            <div class="form-group">
                <label for="company_policy_version-no">Version-no<span class="required"> :
            <div class="form-group">
                <label for="company_policy_policy_details">Policy Details<span class="required"> : (Required Field)</span></label>
                <textarea name="policy_details" input id="content"  class="form-control" cols="139" rows="10" placeholder="Please Enter
            <html lang="en">
            <head>
                <meta charset="UTF-8">
                <title>Summernote with Bootstrap 4</title>
                <script src="https://code.jquery.com/jquery-3.4.1.min.js"
                <link rel="stylesheet" href="https://stackpath.bootstrapcdn.com/bootstrap/4.4.1/css/bootstrap.min.css"
                <link href="https://cdn.jsdelivr.net/npm/summernote@0.8.15/dist/summernote-bs4.min.css"
            <div class="form-group">
                <label for="company_policy_expiry_date">Expiry Date<span class="required"> : (Required Field)</span></label>
                <input id="company_policy_expiry_date" type="datetime-local" name="expiry_date" class="form-control"
            <div class="form-group">
                <label for="company_policy_file_path">Policy File Path<span class="required"> : (Required Field)</span></label>
                <input id="company_policy_file_path" type="text" name="file_path" class="form-control" placeholder="Please Enter the
            <div class="form-group">
                <input type="submit"  class="btn btn btn-primary"  />
                <a href="{{url('/policy')}}" ><span class="mj btn btn btn-danger">Back</span></a>
                <a href="{{url('/')}}" ><span class="mj btn btn btn-danger">Back to home</span></a>
            </div>
        </form>
    </div>
</div>
> >@endif >@if(会话::has('failed')) > >{{\Session::get('failed')}

            <div class="form-group">
                <label for="company_policy_version-no">Version-no<span class="required"> :
            <div class="form-group">
                <label for="company_policy_policy_details">Policy Details<span class="required"> : (Required Field)</span></label>
                <textarea name="policy_details" input id="content"  class="form-control" cols="139" rows="10" placeholder="Please Enter
            <html lang="en">
            <head>
                <meta charset="UTF-8">
                <title>Summernote with Bootstrap 4</title>
                <script src="https://code.jquery.com/jquery-3.4.1.min.js"
                <link rel="stylesheet" href="https://stackpath.bootstrapcdn.com/bootstrap/4.4.1/css/bootstrap.min.css"
                <link href="https://cdn.jsdelivr.net/npm/summernote@0.8.15/dist/summernote-bs4.min.css"
            <div class="form-group">
                <label for="company_policy_expiry_date">Expiry Date<span class="required"> : (Required Field)</span></label>
                <input id="company_policy_expiry_date" type="datetime-local" name="expiry_date" class="form-control"
            <div class="form-group">
                <label for="company_policy_file_path">Policy File Path<span class="required"> : (Required Field)</span></label>
                <input id="company_policy_file_path" type="text" name="file_path" class="form-control" placeholder="Please Enter the
            <div class="form-group">
                <input type="submit"  class="btn btn btn-primary"  />
                <a href="{{url('/policy')}}" ><span class="mj btn btn btn-danger">Back</span></a>
                <a href="{{url('/')}}" ><span class="mj btn btn btn-danger">Back to home</span></a>
            </div>
        </form>
    </div>
</div>
> >@endif > > >{{csrf_field()}} >@csrf > >name=“策略\类别\标识” >value=“{{$id???”}” > /> > > >政策范畴 > >@foreach($parents作为$parent) >{{$parent->description} >@endforeach > > > > >保单名称* >占位符=“请输入保单标题”/> > > > >版本号class=“必需”>* > > > > > > >保单详情* > > > > > > > > > > > > >有效期* >占位符=“请输入到期日期和时间”/> > > > >策略文件路径* > > > > > > > > > > > > > > > > > >@if(会话::has('success')) >toastr.success(“{Session::get('success')}”) >@endif > >@if(会话::has('info')) >toastr.info(“{Session::get('info')}”) >@endif > > >>@yield('脚本') > > > > > > > > >>@endsection

            <div class="form-group">
                <label for="company_policy_version-no">Version-no<span class="required"> :
            <div class="form-group">
                <label for="company_policy_policy_details">Policy Details<span class="required"> : (Required Field)</span></label>
                <textarea name="policy_details" input id="content"  class="form-control" cols="139" rows="10" placeholder="Please Enter
            <html lang="en">
            <head>
                <meta charset="UTF-8">
                <title>Summernote with Bootstrap 4</title>
                <script src="https://code.jquery.com/jquery-3.4.1.min.js"
                <link rel="stylesheet" href="https://stackpath.bootstrapcdn.com/bootstrap/4.4.1/css/bootstrap.min.css"
                <link href="https://cdn.jsdelivr.net/npm/summernote@0.8.15/dist/summernote-bs4.min.css"
            <div class="form-group">
                <label for="company_policy_expiry_date">Expiry Date<span class="required"> : (Required Field)</span></label>
                <input id="company_policy_expiry_date" type="datetime-local" name="expiry_date" class="form-control"
            <div class="form-group">
                <label for="company_policy_file_path">Policy File Path<span class="required"> : (Required Field)</span></label>
                <input id="company_policy_file_path" type="text" name="file_path" class="form-control" placeholder="Please Enter the
            <div class="form-group">
                <input type="submit"  class="btn btn btn-primary"  />
                <a href="{{url('/policy')}}" ><span class="mj btn btn btn-danger">Back</span></a>
                <a href="{{url('/')}}" ><span class="mj btn btn btn-danger">Back to home</span></a>
            </div>
        </form>
    </div>
</div>

            <div class="form-group">
                <label for="company_policy_version-no">Version-no<span class="required"> :
            <div class="form-group">
                <label for="company_policy_policy_details">Policy Details<span class="required"> : (Required Field)</span></label>
                <textarea name="policy_details" input id="content"  class="form-control" cols="139" rows="10" placeholder="Please Enter
            <html lang="en">
            <head>
                <meta charset="UTF-8">
                <title>Summernote with Bootstrap 4</title>
                <script src="https://code.jquery.com/jquery-3.4.1.min.js"
                <link rel="stylesheet" href="https://stackpath.bootstrapcdn.com/bootstrap/4.4.1/css/bootstrap.min.css"
                <link href="https://cdn.jsdelivr.net/npm/summernote@0.8.15/dist/summernote-bs4.min.css"
            <div class="form-group">
                <label for="company_policy_expiry_date">Expiry Date<span class="required"> : (Required Field)</span></label>
                <input id="company_policy_expiry_date" type="datetime-local" name="expiry_date" class="form-control"
            <div class="form-group">
                <label for="company_policy_file_path">Policy File Path<span class="required"> : (Required Field)</span></label>
                <input id="company_policy_file_path" type="text" name="file_path" class="form-control" placeholder="Please Enter the
            <div class="form-group">
                <input type="submit"  class="btn btn btn-primary"  />
                <a href="{{url('/policy')}}" ><span class="mj btn btn btn-danger">Back</span></a>
                <a href="{{url('/')}}" ><span class="mj btn btn btn-danger">Back to home</span></a>
            </div>
        </form>
    </div>
</div>

            <div class="form-group">
                <label for="company_policy_version-no">Version-no<span class="required"> :
            <div class="form-group">
                <label for="company_policy_policy_details">Policy Details<span class="required"> : (Required Field)</span></label>
                <textarea name="policy_details" input id="content"  class="form-control" cols="139" rows="10" placeholder="Please Enter
            <html lang="en">
            <head>
                <meta charset="UTF-8">
                <title>Summernote with Bootstrap 4</title>
                <script src="https://code.jquery.com/jquery-3.4.1.min.js"
                <link rel="stylesheet" href="https://stackpath.bootstrapcdn.com/bootstrap/4.4.1/css/bootstrap.min.css"
                <link href="https://cdn.jsdelivr.net/npm/summernote@0.8.15/dist/summernote-bs4.min.css"
            <div class="form-group">
                <label for="company_policy_expiry_date">Expiry Date<span class="required"> : (Required Field)</span></label>
                <input id="company_policy_expiry_date" type="datetime-local" name="expiry_date" class="form-control"
            <div class="form-group">
                <label for="company_policy_file_path">Policy File Path<span class="required"> : (Required Field)</span></label>
                <input id="company_policy_file_path" type="text" name="file_path" class="form-control" placeholder="Please Enter the
            <div class="form-group">
                <input type="submit"  class="btn btn btn-primary"  />
                <a href="{{url('/policy')}}" ><span class="mj btn btn btn-danger">Back</span></a>
                <a href="{{url('/')}}" ><span class="mj btn btn btn-danger">Back to home</span></a>
            </div>
        </form>
    </div>
</div>

查看我的回购协议。它完全起作用了

            <div class="form-group">
                <label for="company_policy_version-no">Version-no<span class="required"> :
            <div class="form-group">
                <label for="company_policy_policy_details">Policy Details<span class="required"> : (Required Field)</span></label>
                <textarea name="policy_details" input id="content"  class="form-control" cols="139" rows="10" placeholder="Please Enter
            <html lang="en">
            <head>
                <meta charset="UTF-8">
                <title>Summernote with Bootstrap 4</title>
                <script src="https://code.jquery.com/jquery-3.4.1.min.js"
                <link rel="stylesheet" href="https://stackpath.bootstrapcdn.com/bootstrap/4.4.1/css/bootstrap.min.css"
                <link href="https://cdn.jsdelivr.net/npm/summernote@0.8.15/dist/summernote-bs4.min.css"
            <div class="form-group">
                <label for="company_policy_expiry_date">Expiry Date<span class="required"> : (Required Field)</span></label>
                <input id="company_policy_expiry_date" type="datetime-local" name="expiry_date" class="form-control"
            <div class="form-group">
                <label for="company_policy_file_path">Policy File Path<span class="required"> : (Required Field)</span></label>
                <input id="company_policy_file_path" type="text" name="file_path" class="form-control" placeholder="Please Enter the
            <div class="form-group">
                <input type="submit"  class="btn btn btn-primary"  />
                <a href="{{url('/policy')}}" ><span class="mj btn btn btn-danger">Back</span></a>
                <a href="{{url('/')}}" ><span class="mj btn btn btn-danger">Back to home</span></a>
            </div>
        </form>
    </div>
</div>

            <div class="form-group">
                <label for="company_policy_version-no">Version-no<span class="required"> :
            <div class="form-group">
                <label for="company_policy_policy_details">Policy Details<span class="required"> : (Required Field)</span></label>
                <textarea name="policy_details" input id="content"  class="form-control" cols="139" rows="10" placeholder="Please Enter
            <html lang="en">
            <head>
                <meta charset="UTF-8">
                <title>Summernote with Bootstrap 4</title>
                <script src="https://code.jquery.com/jquery-3.4.1.min.js"
                <link rel="stylesheet" href="https://stackpath.bootstrapcdn.com/bootstrap/4.4.1/css/bootstrap.min.css"
                <link href="https://cdn.jsdelivr.net/npm/summernote@0.8.15/dist/summernote-bs4.min.css"
            <div class="form-group">
                <label for="company_policy_expiry_date">Expiry Date<span class="required"> : (Required Field)</span></label>
                <input id="company_policy_expiry_date" type="datetime-local" name="expiry_date" class="form-control"
            <div class="form-group">
                <label for="company_policy_file_path">Policy File Path<span class="required"> : (Required Field)</span></label>
                <input id="company_policy_file_path" type="text" name="file_path" class="form-control" placeholder="Please Enter the
            <div class="form-group">
                <input type="submit"  class="btn btn btn-primary"  />
                <a href="{{url('/policy')}}" ><span class="mj btn btn btn-danger">Back</span></a>
                <a href="{{url('/')}}" ><span class="mj btn btn btn-danger">Back to home</span></a>
            </div>
        </form>
    </div>
</div>
@屈服('styles')@扩展('master')@节('content'))
创建策略
@如果(计数($errors)>0)
    @foreach($errors->all()作为$error)
  • {{$error}}
  • @endforeach
@恩迪夫 @如果(\Session::has('success')) {{\Session::get('success')}

            <div class="form-group">
                <label for="company_policy_version-no">Version-no<span class="required"> :
            <div class="form-group">
                <label for="company_policy_policy_details">Policy Details<span class="required"> : (Required Field)</span></label>
                <textarea name="policy_details" input id="content"  class="form-control" cols="139" rows="10" placeholder="Please Enter
            <html lang="en">
            <head>
                <meta charset="UTF-8">
                <title>Summernote with Bootstrap 4</title>
                <script src="https://code.jquery.com/jquery-3.4.1.min.js"
                <link rel="stylesheet" href="https://stackpath.bootstrapcdn.com/bootstrap/4.4.1/css/bootstrap.min.css"
                <link href="https://cdn.jsdelivr.net/npm/summernote@0.8.15/dist/summernote-bs4.min.css"
            <div class="form-group">
                <label for="company_policy_expiry_date">Expiry Date<span class="required"> : (Required Field)</span></label>
                <input id="company_policy_expiry_date" type="datetime-local" name="expiry_date" class="form-control"
            <div class="form-group">
                <label for="company_policy_file_path">Policy File Path<span class="required"> : (Required Field)</span></label>
                <input id="company_policy_file_path" type="text" name="file_path" class="form-control" placeholder="Please Enter the
            <div class="form-group">
                <input type="submit"  class="btn btn btn-primary"  />
                <a href="{{url('/policy')}}" ><span class="mj btn btn btn-danger">Back</span></a>
                <a href="{{url('/')}}" ><span class="mj btn btn btn-danger">Back to home</span></a>
            </div>
        </form>
    </div>
</div>
@恩迪夫 @if(会话::has('failed')) {{\Session::get('failed')}

            <div class="form-group">
                <label for="company_policy_version-no">Version-no<span class="required"> :
            <div class="form-group">
                <label for="company_policy_policy_details">Policy Details<span class="required"> : (Required Field)</span></label>
                <textarea name="policy_details" input id="content"  class="form-control" cols="139" rows="10" placeholder="Please Enter
            <html lang="en">
            <head>
                <meta charset="UTF-8">
                <title>Summernote with Bootstrap 4</title>
                <script src="https://code.jquery.com/jquery-3.4.1.min.js"
                <link rel="stylesheet" href="https://stackpath.bootstrapcdn.com/bootstrap/4.4.1/css/bootstrap.min.css"
                <link href="https://cdn.jsdelivr.net/npm/summernote@0.8.15/dist/summernote-bs4.min.css"
            <div class="form-group">
                <label for="company_policy_expiry_date">Expiry Date<span class="required"> : (Required Field)</span></label>
                <input id="company_policy_expiry_date" type="datetime-local" name="expiry_date" class="form-control"
            <div class="form-group">
                <label for="company_policy_file_path">Policy File Path<span class="required"> : (Required Field)</span></label>
                <input id="company_policy_file_path" type="text" name="file_path" class="form-control" placeholder="Please Enter the
            <div class="form-group">
                <input type="submit"  class="btn btn btn-primary"  />
                <a href="{{url('/policy')}}" ><span class="mj btn btn btn-danger">Back</span></a>
                <a href="{{url('/')}}" ><span class="mj btn btn btn-danger">Back to home</span></a>
            </div>
        </form>
    </div>
</div>
@恩迪夫

        <form method="post" action="{{route('policy.store')}}">
            {{csrf_field()}}
            @csrf

            <input  type="hidden"
                    name="policy_category_id"
                    value="{{ $id ?? ''}}"
            />

            <div class="form-group">
                <label for="company_policy_policy_category_id">Policy's Category</label>
                <select id="bit_app_policy_category_id"  name="policy_category_id" class="form-control">
                    @foreach($parents as $parent)
                            <option value="{{ $parent->id}}" >{{$parent->description}} </option>
                    @endforeach
                </select>
            </div>

            <div class="<form-group">
                <label for="company_policy_policy_title">Policy Title<span class="required"> : (Required Field)</span></label>
                <input id="company_policy_policy_title" type="text" name="policy_title" class="form-control"
            <div class="form-group">
                <label for="company_policy_version-no">Version-no<span class="required"> :
            <div class="form-group">
                <label for="company_policy_policy_details">Policy Details<span class="required"> : (Required Field)</span></label>
                <textarea name="policy_details" input id="content"  class="form-control" cols="139" rows="10" placeholder="Please Enter
            <html lang="en">
            <head>
                <meta charset="UTF-8">
                <title>Summernote with Bootstrap 4</title>
                <script src="https://code.jquery.com/jquery-3.4.1.min.js"
                <link rel="stylesheet" href="https://stackpath.bootstrapcdn.com/bootstrap/4.4.1/css/bootstrap.min.css"
                <link href="https://cdn.jsdelivr.net/npm/summernote@0.8.15/dist/summernote-bs4.min.css"
            <div class="form-group">
                <label for="company_policy_expiry_date">Expiry Date<span class="required"> : (Required Field)</span></label>
                <input id="company_policy_expiry_date" type="datetime-local" name="expiry_date" class="form-control"
            <div class="form-group">
                <label for="company_policy_file_path">Policy File Path<span class="required"> : (Required Field)</span></label>
                <input id="company_policy_file_path" type="text" name="file_path" class="form-control" placeholder="Please Enter the
            <div class="form-group">
                <input type="submit"  class="btn btn btn-primary"  />
                <a href="{{url('/policy')}}" ><span class="mj btn btn btn-danger">Back</span></a>
                <a href="{{url('/')}}" ><span class="mj btn btn btn-danger">Back to home</span></a>
            </div>
        </form>
    </div>
</div>

{{csrf_field()}}
@csrf
政策范畴
@foreach($parents作为$parent)
{{$parent->description}
@endforeach
保单标题:(必填字段)

            <div class="form-group">
                <label for="company_policy_version-no">Version-no<span class="required"> :
            <div class="form-group">
                <label for="company_policy_policy_details">Policy Details<span class="required"> : (Required Field)</span></label>
                <textarea name="policy_details" input id="content"  class="form-control" cols="139" rows="10" placeholder="Please Enter
            <html lang="en">
            <head>
                <meta charset="UTF-8">
                <title>Summernote with Bootstrap 4</title>
                <script src="https://code.jquery.com/jquery-3.4.1.min.js"
                <link rel="stylesheet" href="https://stackpath.bootstrapcdn.com/bootstrap/4.4.1/css/bootstrap.min.css"
                <link href="https://cdn.jsdelivr.net/npm/summernote@0.8.15/dist/summernote-bs4.min.css"
            <div class="form-group">
                <label for="company_policy_expiry_date">Expiry Date<span class="required"> : (Required Field)</span></label>
                <input id="company_policy_expiry_date" type="datetime-local" name="expiry_date" class="form-control"
            <div class="form-group">
                <label for="company_policy_file_path">Policy File Path<span class="required"> : (Required Field)</span></label>
                <input id="company_policy_file_path" type="text" name="file_path" class="form-control" placeholder="Please Enter the
            <div class="form-group">
                <input type="submit"  class="btn btn btn-primary"  />
                <a href="{{url('/policy')}}" ><span class="mj btn btn btn-danger">Back</span></a>
                <a href="{{url('/')}}" ><span class="mj btn btn btn-danger">Back to home</span></a>
            </div>
        </form>
    </div>
</div>

版本号:
(必填字段)

            <div class="form-group">
                <label for="company_policy_version-no">Version-no<span class="required"> :
            <div class="form-group">
                <label for="company_policy_policy_details">Policy Details<span class="required"> : (Required Field)</span></label>
                <textarea name="policy_details" input id="content"  class="form-control" cols="139" rows="10" placeholder="Please Enter
            <html lang="en">
            <head>
                <meta charset="UTF-8">
                <title>Summernote with Bootstrap 4</title>
                <script src="https://code.jquery.com/jquery-3.4.1.min.js"
                <link rel="stylesheet" href="https://stackpath.bootstrapcdn.com/bootstrap/4.4.1/css/bootstrap.min.css"
                <link href="https://cdn.jsdelivr.net/npm/summernote@0.8.15/dist/summernote-bs4.min.css"
            <div class="form-group">
                <label for="company_policy_expiry_date">Expiry Date<span class="required"> : (Required Field)</span></label>
                <input id="company_policy_expiry_date" type="datetime-local" name="expiry_date" class="form-control"
            <div class="form-group">
                <label for="company_policy_file_path">Policy File Path<span class="required"> : (Required Field)</span></label>
                <input id="company_policy_file_path" type="text" name="file_path" class="form-control" placeholder="Please Enter the
            <div class="form-group">
                <input type="submit"  class="btn btn btn-primary"  />
                <a href="{{url('/policy')}}" ><span class="mj btn btn btn-danger">Back</span></a>
                <a href="{{url('/')}}" ><span class="mj btn btn btn-danger">Back to home</span></a>
            </div>
        </form>
    </div>
</div>

策略详细信息:(必填字段)

            <div class="form-group">
                <label for="company_policy_version-no">Version-no<span class="required"> :
            <div class="form-group">
                <label for="company_policy_policy_details">Policy Details<span class="required"> : (Required Field)</span></label>
                <textarea name="policy_details" input id="content"  class="form-control" cols="139" rows="10" placeholder="Please Enter
            <html lang="en">
            <head>
                <meta charset="UTF-8">
                <title>Summernote with Bootstrap 4</title>
                <script src="https://code.jquery.com/jquery-3.4.1.min.js"
                <link rel="stylesheet" href="https://stackpath.bootstrapcdn.com/bootstrap/4.4.1/css/bootstrap.min.css"
                <link href="https://cdn.jsdelivr.net/npm/summernote@0.8.15/dist/summernote-bs4.min.css"
            <div class="form-group">
                <label for="company_policy_expiry_date">Expiry Date<span class="required"> : (Required Field)</span></label>
                <input id="company_policy_expiry_date" type="datetime-local" name="expiry_date" class="form-control"
            <div class="form-group">
                <label for="company_policy_file_path">Policy File Path<span class="required"> : (Required Field)</span></label>
                <input id="company_policy_file_path" type="text" name="file_path" class="form-control" placeholder="Please Enter the
            <div class="form-group">
                <input type="submit"  class="btn btn btn-primary"  />
                <a href="{{url('/policy')}}" ><span class="mj btn btn btn-danger">Back</span></a>
                <a href="{{url('/')}}" ><span class="mj btn btn btn-danger">Back to home</span></a>
            </div>
        </form>
    </div>
</div>

带引导4的Summernote

            <div class="form-group">
                <label for="company_policy_version-no">Version-no<span class="required"> :
            <div class="form-group">
                <label for="company_policy_policy_details">Policy Details<span class="required"> : (Required Field)</span></label>
                <textarea name="policy_details" input id="content"  class="form-control" cols="139" rows="10" placeholder="Please Enter
            <html lang="en">
            <head>
                <meta charset="UTF-8">
                <title>Summernote with Bootstrap 4</title>
                <script src="https://code.jquery.com/jquery-3.4.1.min.js"
                <link rel="stylesheet" href="https://stackpath.bootstrapcdn.com/bootstrap/4.4.1/css/bootstrap.min.css"
                <link href="https://cdn.jsdelivr.net/npm/summernote@0.8.15/dist/summernote-bs4.min.css"
            <div class="form-group">
                <label for="company_policy_expiry_date">Expiry Date<span class="required"> : (Required Field)</span></label>
                <input id="company_policy_expiry_date" type="datetime-local" name="expiry_date" class="form-control"
            <div class="form-group">
                <label for="company_policy_file_path">Policy File Path<span class="required"> : (Required Field)</span></label>
                <input id="company_policy_file_path" type="text" name="file_path" class="form-control" placeholder="Please Enter the
            <div class="form-group">
                <input type="submit"  class="btn btn btn-primary"  />
                <a href="{{url('/policy')}}" ><span class="mj btn btn btn-danger">Back</span></a>
                <a href="{{url('/')}}" ><span class="mj btn btn btn-danger">Back to home</span></a>
            </div>
        </form>
    </div>
</div>

            <div class="form-group">
                <label for="company_policy_version-no">Version-no<span class="required"> :
            <div class="form-group">
                <label for="company_policy_policy_details">Policy Details<span class="required"> : (Required Field)</span></label>
                <textarea name="policy_details" input id="content"  class="form-control" cols="139" rows="10" placeholder="Please Enter
            <html lang="en">
            <head>
                <meta charset="UTF-8">
                <title>Summernote with Bootstrap 4</title>
                <script src="https://code.jquery.com/jquery-3.4.1.min.js"
                <link rel="stylesheet" href="https://stackpath.bootstrapcdn.com/bootstrap/4.4.1/css/bootstrap.min.css"
                <link href="https://cdn.jsdelivr.net/npm/summernote@0.8.15/dist/summernote-bs4.min.css"
            <div class="form-group">
                <label for="company_policy_expiry_date">Expiry Date<span class="required"> : (Required Field)</span></label>
                <input id="company_policy_expiry_date" type="datetime-local" name="expiry_date" class="form-control"
            <div class="form-group">
                <label for="company_policy_file_path">Policy File Path<span class="required"> : (Required Field)</span></label>
                <input id="company_policy_file_path" type="text" name="file_path" class="form-control" placeholder="Please Enter the
            <div class="form-group">
                <input type="submit"  class="btn btn btn-primary"  />
                <a href="{{url('/policy')}}" ><span class="mj btn btn btn-danger">Back</span></a>
                <a href="{{url('/')}}" ><span class="mj btn btn btn-danger">Back to home</span></a>
            </div>
        </form>
    </div>
</div>

$(“#内容”)。请注意({
占位符:“请输入策略详细信息”,
tabsize:2,
身高:100
});

            <div class="form-group">
                <label for="company_policy_version-no">Version-no<span class="required"> :
            <div class="form-group">
                <label for="company_policy_policy_details">Policy Details<span class="required"> : (Required Field)</span></label>
                <textarea name="policy_details" input id="content"  class="form-control" cols="139" rows="10" placeholder="Please Enter
            <html lang="en">
            <head>
                <meta charset="UTF-8">
                <title>Summernote with Bootstrap 4</title>
                <script src="https://code.jquery.com/jquery-3.4.1.min.js"
                <link rel="stylesheet" href="https://stackpath.bootstrapcdn.com/bootstrap/4.4.1/css/bootstrap.min.css"
                <link href="https://cdn.jsdelivr.net/npm/summernote@0.8.15/dist/summernote-bs4.min.css"
            <div class="form-group">
                <label for="company_policy_expiry_date">Expiry Date<span class="required"> : (Required Field)</span></label>
                <input id="company_policy_expiry_date" type="datetime-local" name="expiry_date" class="form-control"
            <div class="form-group">
                <label for="company_policy_file_path">Policy File Path<span class="required"> : (Required Field)</span></label>
                <input id="company_policy_file_path" type="text" name="file_path" class="form-control" placeholder="Please Enter the
            <div class="form-group">
                <input type="submit"  class="btn btn btn-primary"  />
                <a href="{{url('/policy')}}" ><span class="mj btn btn btn-danger">Back</span></a>
                <a href="{{url('/')}}" ><span class="mj btn btn btn-danger">Back to home</span></a>
            </div>
        </form>
    </div>
</div>

到期日期:(必填字段)

            <div class="form-group">
                <label for="company_policy_version-no">Version-no<span class="required"> :
            <div class="form-group">
                <label for="company_policy_policy_details">Policy Details<span class="required"> : (Required Field)</span></label>
                <textarea name="policy_details" input id="content"  class="form-control" cols="139" rows="10" placeholder="Please Enter
            <html lang="en">
            <head>
                <meta charset="UTF-8">
                <title>Summernote with Bootstrap 4</title>
                <script src="https://code.jquery.com/jquery-3.4.1.min.js"
                <link rel="stylesheet" href="https://stackpath.bootstrapcdn.com/bootstrap/4.4.1/css/bootstrap.min.css"
                <link href="https://cdn.jsdelivr.net/npm/summernote@0.8.15/dist/summernote-bs4.min.css"
            <div class="form-group">
                <label for="company_policy_expiry_date">Expiry Date<span class="required"> : (Required Field)</span></label>
                <input id="company_policy_expiry_date" type="datetime-local" name="expiry_date" class="form-control"
            <div class="form-group">
                <label for="company_policy_file_path">Policy File Path<span class="required"> : (Required Field)</span></label>
                <input id="company_policy_file_path" type="text" name="file_path" class="form-control" placeholder="Please Enter the
            <div class="form-group">
                <input type="submit"  class="btn btn btn-primary"  />
                <a href="{{url('/policy')}}" ><span class="mj btn btn btn-danger">Back</span></a>
                <a href="{{url('/')}}" ><span class="mj btn btn btn-danger">Back to home</span></a>
            </div>
        </form>
    </div>
</div>

策略文件路径:(必填字段)

            <div class="form-group">
                <label for="company_policy_version-no">Version-no<span class="required"> :
            <div class="form-group">
                <label for="company_policy_policy_details">Policy Details<span class="required"> : (Required Field)</span></label>
                <textarea name="policy_details" input id="content"  class="form-control" cols="139" rows="10" placeholder="Please Enter
            <html lang="en">
            <head>
                <meta charset="UTF-8">
                <title>Summernote with Bootstrap 4</title>
                <script src="https://code.jquery.com/jquery-3.4.1.min.js"
                <link rel="stylesheet" href="https://stackpath.bootstrapcdn.com/bootstrap/4.4.1/css/bootstrap.min.css"
                <link href="https://cdn.jsdelivr.net/npm/summernote@0.8.15/dist/summernote-bs4.min.css"
            <div class="form-group">
                <label for="company_policy_expiry_date">Expiry Date<span class="required"> : (Required Field)</span></label>
                <input id="company_policy_expiry_date" type="datetime-local" name="expiry_date" class="form-control"
            <div class="form-group">
                <label for="company_policy_file_path">Policy File Path<span class="required"> : (Required Field)</span></label>
                <input id="company_policy_file_path" type="text" name="file_path" class="form-control" placeholder="Please Enter the
            <div class="form-group">
                <input type="submit"  class="btn btn btn-primary"  />
                <a href="{{url('/policy')}}" ><span class="mj btn btn btn-danger">Back</span></a>
                <a href="{{url('/')}}" ><span class="mj btn btn btn-danger">Back to home</span></a>
            </div>
        </form>
    </div>
</div>

            <div class="form-group">
                <label for="company_policy_version-no">Version-no<span class="required"> :
            <div class="form-group">
                <label for="company_policy_policy_details">Policy Details<span class="required"> : (Required Field)</span></label>
                <textarea name="policy_details" input id="content"  class="form-control" cols="139" rows="10" placeholder="Please Enter
            <html lang="en">
            <head>
                <meta charset="UTF-8">
                <title>Summernote with Bootstrap 4</title>
                <script src="https://code.jquery.com/jquery-3.4.1.min.js"
                <link rel="stylesheet" href="https://stackpath.bootstrapcdn.com/bootstrap/4.4.1/css/bootstrap.min.css"
                <link href="https://cdn.jsdelivr.net/npm/summernote@0.8.15/dist/summernote-bs4.min.css"
            <div class="form-group">
                <label for="company_policy_expiry_date">Expiry Date<span class="required"> : (Required Field)</span></label>
                <input id="company_policy_expiry_date" type="datetime-local" name="expiry_date" class="form-control"
            <div class="form-group">
                <label for="company_policy_file_path">Policy File Path<span class="required"> : (Required Field)</span></label>
                <input id="company_policy_file_path" type="text" name="file_path" class="form-control" placeholder="Please Enter the
            <div class="form-group">
                <input type="submit"  class="btn btn btn-primary"  />
                <a href="{{url('/policy')}}" ><span class="mj btn btn btn-danger">Back</span></a>
                <a href="{{url('/')}}" ><span class="mj btn btn btn-danger">Back to home</span></a>
            </div>
        </form>
    </div>
</div>
@if(会话::has('success')) toastr.success(“{Session::get('success')}”) @恩迪夫

        <form method="post" action="{{route('policy.store')}}">
            {{csrf_field()}}
            @csrf

            <input  type="hidden"
                    name="policy_category_id"
                    value="{{ $id ?? ''}}"
            />

            <div class="form-group">
                <label for="company_policy_policy_category_id">Policy's Category</label>
                <select id="bit_app_policy_category_id"  name="policy_category_id" class="form-control">
                    @foreach($parents as $parent)
                            <option value="{{ $parent->id}}" >{{$parent->description}} </option>
                    @endforeach
                </select>
            </div>

            <div class="<form-group">
                <label for="company_policy_policy_title">Policy Title<span class="required"> : (Required Field)</span></label>
                <input id="company_policy_policy_title" type="text" name="policy_title" class="form-control"
            <div class="form-group">
                <label for="company_policy_version-no">Version-no<span class="required"> :
            <div class="form-group">
                <label for="company_policy_policy_details">Policy Details<span class="required"> : (Required Field)</span></label>
                <textarea name="policy_details" input id="content"  class="form-control" cols="139" rows="10" placeholder="Please Enter
            <html lang="en">
            <head>
                <meta charset="UTF-8">
                <title>Summernote with Bootstrap 4</title>
                <script src="https://code.jquery.com/jquery-3.4.1.min.js"
                <link rel="stylesheet" href="https://stackpath.bootstrapcdn.com/bootstrap/4.4.1/css/bootstrap.min.css"
                <link href="https://cdn.jsdelivr.net/npm/summernote@0.8.15/dist/summernote-bs4.min.css"
            <div class="form-group">
                <label for="company_policy_expiry_date">Expiry Date<span class="required"> : (Required Field)</span></label>
                <input id="company_policy_expiry_date" type="datetime-local" name="expiry_date" class="form-control"
            <div class="form-group">
                <label for="company_policy_file_path">Policy File Path<span class="required"> : (Required Field)</span></label>
                <input id="company_policy_file_path" type="text" name="file_path" class="form-control" placeholder="Please Enter the
            <div class="form-group">
                <input type="submit"  class="btn btn btn-primary"  />
                <a href="{{url('/policy')}}" ><span class="mj btn btn btn-danger">Back</span></a>
                <a href="{{url('/')}}" ><span class="mj btn btn btn-danger">Back to home</span></a>
            </div>
        </form>
    </div>
</div>
@if(会话::has('info'))
toastr.info(“{Session::get('info')}