全日历日历未显示

时间:2018-08-26 14:38:33

标签: laravel fullcalendar

我有一块刀片calendar.blade.php,用于显示事件。我在2018年8月23日得到了它的支持,但即使在程序的旧版本中也已消失。它什么也没显示。我错过了什么吗?或添加了什么? It's only showing this。希望您能帮到我。这是我的代码:

    <!-- calendar.blade.php -->
    <!doctype html>
    <html lang="en">
    <head>
    <link rel="stylesheet" href="{{ asset('Admin/bower_components/bootstrap/dist/css/bootstrap.min.css')}}">
    <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/fullcalendar/3.1.0/fullcalendar.min.css"/>
    </head>
    <body>
    <div class="container">
    @if (\Session::has('success'))
          <div class="alert alert-success">
            <p>{{ \Session::get('success') }}</p>
          </div><br />
         @endif
       <div class="panel panel-default">
             <div class="panel-heading">
                 <h2>Schedules</h2>
             </div>
             <div class="panel-body" >


                <div id='calendar'></div>

                <!-- <script src="{{asset('js/jquery-1.11.3.min.js')}}"></script>
                <script src="{{asset('js/moment.min.js')}}"></script>
                <script src="{{asset('js/fullcalendar.min.js')}}"></script> -->

              <script src="//cdnjs.cloudflare.com/ajax/libs/jquery/2.1.3/jquery.min.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/moment.js/2.9.0/moment.min.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/fullcalendar/2.2.7/fullcalendar.min.js"></script>



                <script>

                  $(document).ready(function(){
                    $('#calendar').fullCalendar({
                      events:[
                      @foreach($events as $event)
                      {
                        title: '{{$event->pxID}}',
                        start: '{{$event->vacSchedule}}',
                        url: "{{url('doctor/details',$event->id)}}"
                      },
                      @endforeach
                      ]
                    })
                  });
                </script>

            </div>

        </div>
        <a href="{{url('doctor/home')}}" class="btn btn-primary">Back</a>
    </div>

    </body>
    </html>

0 个答案:

没有答案