@php $URL_ATUAL = "http://$_SERVER[HTTP_HOST]$_SERVER[REQUEST_URI]"; @endphp @extends('templates.prefeitura4.layout') @section('header') @endsection @section('content')

{{ $pages->titulo }}

{{$pages->descricao}}
@php $entrada = new DateTime(date('Y-m-d H:i:s')); $saida = new DateTime($pages->updated_at); $intervalo = $saida->diff($entrada); // dd($intervalo); // $intervalo = DateTime::createFromFormat($formato, $intervalo); @endphp {{ $pages->created_at }} Atualizado há @if ($intervalo->y != 0) {{ $intervalo->y }} anos @endif @if ($intervalo->m != 0) {{ $intervalo->m }} meses @endif @if ($intervalo->d != 0) {{ $intervalo->d }} dias @endif @if ($intervalo->h != 0) {{ $intervalo->h }} horas @endif @if ($intervalo->i != 0) {{ $intervalo->i }} minutos @endif @if ($intervalo->s != 0) {{ $intervalo->s }} segundos @endif

{{ $pages->name }}

{{ $pages->url }} {!! $pages->conteudo !!}
@if (isset($imagens)) @endif
@endsection @section('post-script') @endsection