@php
$diasRecebimento = $item->diasDaEmissaoAoRecebimento();
@endphp
@if($item->estaPaga())
{{ $diasRecebimento }}
@else
{{ \Carbon\Carbon::now()->diffInDays($item->dt_emissao) }}
@endif
|
@if($item->estaPaga())
|
@elseif($item->dt_vencimento < \Carbon\Carbon::now())
Sim |
@else
Não |
@endif
@if($item->estaPaga())
{{ $diasRecebimento }}
@else
@if(\Carbon\Carbon::parse($item->dt_vencimento)->diffInDays(null, false) < 1)
@elseif(\Carbon\Carbon::parse($item->dt_vencimento)->diffInDays(null, false) < 30)
@else
@endif
{{ \Carbon\Carbon::parse($item->dt_vencimento)->diffInDays(null, false) }}
@endif
|