@extends('layouts.app') @section('content')

Diálogos do MMM

@foreach ($inscricoes_abertas as $key => $evento)
@if (!$inscricoes_abertas)

Nenhum evento encerrado

@else

{{$evento->title}}

@if ($evento->startdate) {!! Helper::getDateEvent($evento->startdate, $evento->enddate) !!} @endif

@if ($local = $evento->city) {{$local}} @endif

id}")}}" class="link-programacao ">Programação @if($linkGaleria = $evento->campos->where('slug', 'link_galeria_flickr')->first()) value))}}">Fotos @endif @if ($linkInscricao = $evento->campos->where('slug', 'link_inscricao_eventos')->first()) @php $googleAgenda = "http://www.google.com/calendar/event?action=TEMPLATE&text=".urlencode($evento->title)."&dates=".$evento->startdate->format('Ymd\\THi00\\Z')."/".$evento->enddate->format('Ymd\\THi00\\Z')."&details=".urlencode($evento->shortdesc)."&location=".urlencode($evento->place)."&trp=false&sprop=".url("eventos/{$evento->id}")."&sprop=name:".urlencode('Ação Municipalista'); @endphp Inscreva-se {{-- Inscreva-se --}} @endif @endif
@endforeach
@foreach ($eventos_encerrados as $key => $evento)
@if (!$eventos_encerrados)

Nenhum evento encerrado

@else

{{$evento->title}}

@if ($evento->startdate) {!! Helper::getDateEvent($evento->startdate, $evento->enddate) !!} @endif

@if ($local = $evento->city) {{$local}} @endif

id}")}}" class="link-programacao ">Programação @if($linkGaleria = $evento->campos->where('slug', 'link_galeria_flickr')->first()) value))}}">Fotos @endif @if ($linkCertificado = $evento->campos->where('slug', 'certificado')->first()) Certificado @endif @endif
@endforeach
@endsection