<?php /*{{--
@if(empty($events) || $events->isEmpty())
    <tr>
        <td colspan="3">
            No Events Listed For This Month
        </td>
    </tr>
@else
    @foreach($events as $event)
        <tr class="event-row event_link" data-link="{{ $event->url }}">
            <td>
                 <p style="font-size:13px;line-height:16px;text-transform:uppercase;">
				@php
                        print date("F",strtotime($event->started_at));
						
                        @endphp
						</p>
						
						<p  style="font-size:60px;line-height:24px;">
						@php
                        print date("d",strtotime($event->started_at));
						
                        @endphp
						</p>
						  <p style="line-height:19px;font-size:18px;letter-spacing:5px;font-weight:100;margin:0;">
						@php
                        print date("Y",strtotime($event->started_at));
						
                        @endphp 
						</p>
            </td>
            <td>{{ $event->location }}</td>
            <td>
                <a class="color-event">{{ $event->name }}</a>
            </td>
        </tr>
    @endforeach
@endif
--}}
*/ ?>
@if(empty($events) || $events->isEmpty())
    <li class="row">
       
            No Events Listed For This Month
        
    </li>
@else
 @foreach($events as $event)
<li class="row">
						<div class="col-sm-3">
                            <div class="time">
                                <span class="day">@php
                        print date("d",strtotime($event->started_at));
						
                        @endphp</span>
                                <span class="month">@php
                        print date("M",strtotime($event->started_at));
						
                        @endphp</span>
                            </div>
						</div>
						<div class="col-sm-9">
							<h3 class="titles">{{ $event->name }}</h3>
							<p class="desc"><span class="fa fa-map-marker"></span> {{ $event->location }} 
						</p>
						<p class="desc"><span class="fa fa-clock"></span> 
							@php $date1=date_create($event->ended_at);
$date2=date_create($event->started_at);
$diff=date_diff($date1,$date2); 
							print $diff->format("%a")+1; @endphp Day Event | @php
                        print date("M d",strtotime($event->started_at));
						@endphp - @php
                        print date("M d",strtotime($event->ended_at));
						@endphp
						
						</p>
						 <div class="addeventweb">
						<span> <a href="{{ $event->url }}" target="_blank" class="event_links"><i class="glyphicon glyphicon-globe "></i> Visit Website</a></span> </div>  
                            <!-- Button code -->
                           <div class="addevent" data-event='{
                                "title":"{{ $event->name }}", 
                                "start":"@php print date("Y/m/d",strtotime($event->started_at)) @endphp", 
                                "end":"@php print date("Y/m/d",strtotime($event->ended_at)) @endphp", 
                                "desc":"Description of One Day Workshop",
                                "location":"{{ $event->location }}"
                                }'>
                                <span><i class="fa fa-calendar "></i> Add to Calendar</span>
                            </div>
						</div>
					</li>
	@endforeach
	@endif