@if(isset($fatura->canal->nome_canal)){{ $fatura->canal->nome_canal }}@endif |
{{-- @if($fatura->origem == "IM" and isset($fatura->cliente_im->nome))
{{ $fatura->cliente_im->nome }} |
@elseif($fatura->origem =="TFUEL" and isset($fatura->cliente_tfuel->nome))
{{ $fatura->cliente_tfuel->nome }} |
@else
Cliente Não encontrado |
@endif --}}
{{ $fatura->num_documento }} |
{{ number_format($fatura->valor_total, 2, ',', '.') }} |
{{--
Perguntar o que é mvalor, se é calculado
| --}}
{{ date('d/m/Y', strtotime($fatura->dt_emissao)) }} |
{{ date('d/m/Y', strtotime($fatura->dt_vencimento)) }} |
{{ \Carbon\Carbon::now()->diffInDays($fatura->dt_emissao) }} |
@if ($fatura->status == "Pendente")
@if($fatura->dt_vencimento < \Carbon\Carbon::now())
Sim
|
@else
Não
|
@endif
@else
|
@endif
@if ($fatura->status == "Pendente")
@if(\Carbon\Carbon::parse($fatura->dt_vencimento)->diffInDays(null, false) < 1)
@elseif(\Carbon\Carbon::parse($fatura->dt_vencimento)->diffInDays(null, false) < 30)
@else
@endif
{{ \Carbon\Carbon::parse($fatura->dt_vencimento)->diffInDays(null, false) }}
{{-- @if(\Carbon\Carbon::now()->diffInDays($fatura->dt_vencimento) < 1) --}}
{{-- {{ \Carbon\Carbon::now()->diffInDays($fatura->dt_vencimento) }} --}}
@else
@endif
|
@if ($cliente->sinistro == "Sim")
Sinistrado
|
@else
status == "Paga") class="bg-success" @endif>
{{ $fatura->status }}
|
@endif
@if($fatura->data_promessa_pagamento)
{{ date('d/m/Y', strtotime($fatura->data_promessa_pagamento)) }}
@endif
|
@if($fatura->cheque_transferencia and $fatura->cheque_transferencia != "noimage.png" )
@endif
|
@if($fatura->comprovante_pagamento and $fatura->comprovante_pagamento != "noimage.png" )
@endif
|
|
@endforeach