@php($date = null)@php($now = new \DateTime("now")) @foreach($schedule as $item) @if(($formattedDate = Formatter::fullDate($item['starttime'], 'W d m')) != $date) @php($date = $formattedDate) @if($date != null) @endif

{{$formattedDate}}

@endif @php($isCurrent = ($now >= $item['starttime']) && ($now <= $item['endtime'])) @php($class =( $item['program']->priority < 2 ? 'bg-primary' :( $item['program']->nonstop || $item['program']->rerun ? 'text-muted' :( $isCurrent ? 'bg-info active text-primary' :( '' ))))) @endforeach

{{$item['starttime']->format('H:i')}} – {{$item['endtime']->format('H:i')}} uur

{{$item['program']->name}} @if($isCurrent) Nu op NH Gooi @endif

{{Formatter::excerpt(strip_tags($item['program']->description), 200)}}