FullCalendar事件无法填充。即使能够var_dump变量

时间:2017-04-11 07:04:48

标签: javascript database laravel laravel-5 fullcalendar

以下是为fullcalendar生成事件的代码

events: [
    <?php $count=count($getBooking);$i=1;foreach($getBooking as $singleBooking){ ?>
    {
        title:'{{$singleBooking->roomLocation}}',
        start:'{{$singleBooking->bookingDate}}T{{$singleBooking->bookingTime}}',
        msg: 'Time: {{$singleBooking->bookingTime}} to {{$singleBooking->bookingTime+'03:00:00'}}:00:00<br>Course Name: {{$singleBooking->courseName}}<br>Room Name: {{$singleBooking->roomName}}<br>Service: {{$singleBooking->serviceName}}',
    }
    <?php if ($count > $i) { echo ',';}?><?php $i++; }?>
]

0 个答案:

没有答案