{{ $nome_relatorio }}
|
|
Data: {{ \Carbon\Carbon::now()->format('d/m/Y H:i:s') }}
Período de pagamento:
{{ \Carbon\Carbon::parse($dt_ini)->format('d/m/Y') }}
à
{{ \Carbon\Carbon::parse($dt_fim)->format('d/m/Y') }}
|
|
Item Centro
Valor total
|
@forelse( $groupby_nm_centro as $item )
|
Centro custo: {{ $item->nm_centro }}
Departamento: {{ $item->ds_departamento }}
Tipo: {{ ($item->tp_centro == "C") ? "CRÉDITO" : "DÉBITO" }}
|
@foreach ($temp_centrocusto as $temp)
@php
$vr_mov = App\Models\TempCentroCusto::where("nm_centro", $item->nm_centro)->where("nm_itemcentro", $temp->nm_itemcentro)->sum("vr_mov");
$total_cc = App\Models\TempCentroCusto::where("nm_centro", $item->nm_centro)->sum("vr_mov");
@endphp
@if ($temp->nm_centro == $item->nm_centro)
|
{{ $temp->nm_itemcentro }}
R$ {{ number_format($vr_mov, 2, ',', '.') }}
|
@endif
@endforeach
|
Total centro custo: R$ {{ number_format($total_cc, 2, ',', '.') }}
|
@empty
| Nenhum registro encontrado |
@endforelse
|
Total geral: R$ {{ number_format($total_geral, 2, ',', '.') }}
|
| SALDO DE ACORDO COM O PERÍODO |
|
Total crédito: R$ {{ number_format($total_cred_atual, 2, ',', '.') }}
Total débito: R$ {{ number_format($total_deb_atual, 2, ',', '.') }}
Saldo: R$ {{ number_format($vr_saldo, 2, ',', '.') }}
|
@if($sd_anterior == 1)
| SALDO ANTERIOR |
|
Total crédito: R$ {{ number_format($total_cred_sdAnt, 2, ',', '.') }}
Total débito: R$ {{ number_format($total_deb_sdAnt, 2, ',', '.') }}
Saldo: R$ {{ number_format($vr_saldoAnt, 2, ',', '.') }}
|
| RESULTADO |
|
Total crédito: R$ {{ number_format(($total_cred_atual + $total_cred_sdAnt), 2, ',', '.') }}
Total débito: R$ {{ number_format(($total_deb_atual + $total_deb_sdAnt), 2, ',', '.') }}
Saldo: R$ {{ number_format(($vr_saldo + $vr_saldoAnt), 2, ',', '.') }}
|
@endif