@extends('relatorios.v2.base') @section('report_name', 'Relatório de Contas a Receber') @section('report_name_subtitle') Período: {{$data_inicial}} - {{$data_final}} @endsection @section('main_container', 'container-fluid') @section('content')
| CLIENTE | REFERÊNCIA | CATEGORIA | DATA DE REGISTRO | DATA DE VENCIMENTO | VALOR TOTAL | VALOR RECEBIDO | STATUS |
|---|---|---|---|---|---|---|---|
| {{ $conta->venda->cliente->razao_social ?? '--' }} | {{ $conta->referencia }} | {{ $conta->categoria->nome ?? '--' }} | {{ $conta->dataRegistro }} | {{ $conta->dataVencimentoFormatado }} | R$ {{ number_format($conta->valor_integral, 2, ',', '.') }} | R$ {{ number_format($conta->valor_recebido, 2, ',', '.') }} | {{ $conta->status ? 'RECEBIDO' : 'PENDENTE' }} |
VALOR A RECEBER: R$ {{ number_format($contas->where('status', false)->sum('valor_integral'), 2 , ',', '.') }}
VALOR A RECEBIDO: R$ {{ number_format($contas->sum('valor_recebido'), 2 , ',', '.') }}