@extends('template.portal.layout') @section('content-body')

Eventos

@if(!empty($eventos) && count($eventos) > 0) @for($i = 0; $i < count($eventos); $i++)
@if(($i+1) % 2 == 1)
evento
{{ $eventos[$i]['nombre'] }}

{{ $eventos[$i]['detalle'] }}

Ubicacion: {{ $eventos[$i]['lugar'] }}
@if ($eventos[$i]['fecha_inicio'] != $eventos[$i]['fecha_fin'])
Fecha: {{ \Jenssegers\Date\Date::parse($eventos[$i]['fecha_inicio'])->format('l j, F Y') }} - {{ \Jenssegers\Date\Date::parse($eventos[$i]['fecha_fin'])->format('l j, F Y') }}
@else
Fecha: {{ \Jenssegers\Date\Date::parse($eventos[$i]['fecha_inicio'])->format('l j, F Y') }}
@endif
@else
{{ $eventos[$i]['nombre'] }}

{{ $eventos[$i]['detalle'] }}

Ubicacion: {{ $eventos[$i]['lugar'] }}
@if ($eventos[$i]['fecha_inicio'] != $eventos[$i]['fecha_fin'])
Fecha: {{ \Jenssegers\Date\Date::parse($eventos[$i]['fecha_inicio'])->format('l j, F Y') }} - {{ \Jenssegers\Date\Date::parse($eventos[$i]['fecha_fin'])->format('l j, F Y') }}
@else
Fecha: {{ \Jenssegers\Date\Date::parse($eventos[$i]['fecha_inicio'])->format('l j, F Y') }}
@endif
evento
@endif
@endfor
{{ $eventos->links() }}
@else @endif
@endsection