@extends('default.layout') @section('content')
Novo Conta a Receber Débito por Cliente @isset($paraImprimir)
@csrf
@endisset


Lista de Contas a Receber

*{{$infoDados}}
Remessas de Boleto

Tabela

Grade

@foreach($contas as $c) @endforeach
CLIENTE CATEGORIA VALOR INTEGRAL VALOR RECEBIDO DATA DE REGISTRO DATA DE RECEBIMENTO DATA VENCIMENTO ESTADO TIPO DE PAG. AÇÕES
@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)
{{ $c->diasAtraso() }} @endif
@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
@if(isset($links)) {{$contas->links()}} @endif

Valor a Receber: R$ {{number_format($somaPendente, 2, ',', '.') }}

Valor Recebido: R$ {{number_format($somaRecebido, 2, ',', '.') }}

@section('javascript') @endsection @endsection