@extends('relatorios.default') @section('content') @if($data_inicial && $data_final)

Periodo: {{$data_inicial}} - {{$data_final}}

@endif @if($status)

Status: {{strtoupper($status)}}

@endif @php $somaPendente = 0; $somaRecebido = 0; @endphp @foreach($contas as $key => $c) @php if($c->status) $somaRecebido += $c->valor_integral; else $somaPendente += $c->valor_integral; @endphp @endforeach
Cliente Valor Categoria Estado Banco NÂș Boleto
@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 {{ number_format($c->valor_integral, 2, ',', '.') }} {{ $c->categoria->nome }} @if($c->status == true) Recebido @else Pendente @endif {{ $c->boleto->banco->banco }} {{ $c->boleto->numero }}
Soma Pendente: R$ {{number_format($somaPendente, 2, ',', '.')}} Soma Recebido: R$ {{number_format($somaRecebido, 2, ',', '.')}}
@endsection