Unverified Commit a925c2e1 authored by Antônio Durval's avatar Antônio Durval Committed by GitHub
Browse files

Merge pull request #934 from antonioDurval/master

correção na lógica da verificação das datas
parents c20b6808 d767c5dc
......@@ -87,7 +87,11 @@
<td style="text-align: center">{{ date('d-m-Y \à\s H:i\h', strtotime($projeto->updated_at)) }}</td>
@if($projeto->status !=null)
@if($projeto->status === "aprovado")
@if( date('d-m-Y') > date('d-m-Y', strtotime($projeto->evento->fimProjeto)) )
@php
$hoje = \Carbon\Carbon::now();
$fimProjeto = \Carbon\Carbon::parse($projeto->evento->fimProjeto);
@endphp
@if($hoje->greaterThan($fimProjeto))
<td style="color: rgb(6, 85, 6); text-align: center;text-transform: capitalize;">Finalizado</td>
@else
<td style="color: rgb(6, 85, 6); text-align: center;text-transform: capitalize;">Em Execução</td>
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment