@if(sizeof($member_certificates) > 0)
@php
$cert = $member_certificates[0]
@endphp
{{$cert->type == 'A' ? 'Agonistico' : 'Non agonistico'}}
Scadenza: {{$cert->expire_date ? date("d/m/Y", strtotime($cert->expire_date)) : ''}}
@if($cert->expire_date . " 23:59:59" < date("Y-m-d"))
scaduto
@endif
@if($cert->expire_date . " 23:59:59" >= date("Y-m-d") && $cert->expire_date < date("Y-m-d", strtotime("+1 month")))
in scadenza
@endif
@if($cert->expire_date . " 23:59:59" >= date("Y-m-d", strtotime("+1 month")))
valido
@endif
@endif