@foreach($contas as $c)
|
@if($c->venda_id != null || $c->venda_caixa_id != null)
@if($c->venda_id != null)
{{ $c->venda->cliente->razao_social }}
@else
@if($c->vendaCaixa->cliente)
{{ $c->vendaCaixa->cliente->razao_social }}
@else
--
@endif
@endif
@else
@if($c->cliente_id != null)
{{ $c->cliente->razao_social }}
@else
--
@endif
@endif
|
{{$c->categoria->nome}}
|
R$ {{number_format($c->valor_integral, $casasDecimais, ',', '.')}}
|
R$ {{number_format($c->valor_recebido, $casasDecimais, ',', '.')}}
|
{{ \Carbon\Carbon::parse($c->created_at)->format('d/m/Y H:i:s')}}
|
@if($c->status)
{{ \Carbon\Carbon::parse($c->data_recebimento)->format('d/m/Y')}}
@else
--
@endif
|
{{ \Carbon\Carbon::parse($c->data_vencimento)->format('d/m/Y')}}
|
@if($c->status == true)
Recebido
@else
Pendente
@endif
|
@if($c->tipo_pagamento)
{{$c->tipo_pagamento}}
@else
--
@endif
|
@if(!$c->boleto)
@endif
@if($c->status == false)
@endif
@if(!$c->boleto)
@else
@endif
@if($c->venda_id != null || $c->venda_caixa_id != null)
@endif
|
@endforeach