@php $URL_ATUAL = "http://$_SERVER[HTTP_HOST]$_SERVER[REQUEST_URI]"; $dominio = explode('.', parse_url($URL_ATUAL, PHP_URL_HOST)); $subdomain = strtoupper($dominio[0]); @endphp @extends('templates.prefeitura4.layout') @section('content') {{-- CAROUSEL --}} @php $madara = 0 @endphp @php $madara1 = 0 @endphp {{-- BOX CAROUSEL --}} @if (isset($links[0])) @endif {{-- NOTICIAS --}} @if (isset($noticia3s) && isset($noticia3s[0]))

Notícias Recentes

{{-- ATENTION --}}

{{ $noticia3s[0]->name }}

{{ $noticia3s[0]->titulo }} @endif

@if (isset($noticia3s[0])) @php $notice = str_replace('<', ' ', $notice); @endphp {!! $notice !!} @endif
@php $cont = 0; @endphp
@foreach ($noticia3s as $noticia) @if ($cont > 0 && $cont < 5) @if(file_exists(public_path($noticia->url)))

{{ $noticia->name }}

{{ $noticia->titulo }}

@php $cont++; @endphp @endif @endif @endforeach
@endif {{-- SERVIÇOS --}} @if (isset($links[0]))

Serviços mais acessados

@endif {{-- TV PREFEITURA --}} @if (isset($videos[0]))

TV {{$account->tipo}}

@php parse_str(parse_url($videos[0]->url)['query'], $params); @endphp
@if (isset($videos[1]))
@php parse_str(parse_url($videos[1]->url)['query'], $params); @endphp
@if (isset($videos[2]))
@php parse_str(parse_url($videos[2]->url)['query'], $params); @endphp
@endif
@endif
@endif {{-- EVENTOS --}} @if (isset($eventos[0]))

calendário de eventos e publicações

@php $cont = 0; @endphp
@php $i = 0; @endphp @foreach ($eventos as $evento) @if ($cont < 4)

{{ $evento->name }}

{{ $evento->data }}

{{ $evento->title }}

@endif @php $cont++; @endphp @endforeach
@endif {{-- BANNER --}} @if (isset($banner->img)) @endif {{-- SECRETARIAS --}} @if (isset($secretarias[0]))

Secretarias

@endif {{-- PRINCIPAIS PROJETOS --}} @if (isset($projetos[0])) @php $cont = 0; @endphp
Principais Projetos
@foreach ($projetos as $projeto) @if ($cont < 3)
{{ $projeto->titulo }}
@php $notice = str_replace('<', ' ', $notice); @endphp {!! $notice !!}
@endif @php $cont++; @endphp @endforeach
@endif {{-- MODAL-EVENTO --}} @endsection @section('post-script') {{-- ICON-BOX-SLIDER --}} @endsection