@php $ops = DB::connection('another')->table($accont.'_transparencia_ops')->where('nroOP',$transparencia->nroOP)->first(); if(isset($ops->nroDocumento_11)){ $pessoa = DB::connection('another')->table('transparencia_pessoas')->where('nroDocumento',$ops->nroDocumento_11)->where('account_id',$ops->account_id)->first(); $emp = DB::connection('another')->table($accont.'_transparencia_emps')->where('codigo_emp',$ops->codigo_emp_11)->where('tipoRegistro','10')->where('account_id',$ops->account_id)->first(); } if(isset($pessoa)){ if($pessoa != null) { if ($pessoa->nomeRazaoSocial == null) {$favorecido = 'FAVORECIDO NÃO CADASTRADO'; } else {$favorecido = $pessoa->nomeRazaoSocial;} } else {$favorecido = 'FAVORECIDO NÃO CADASTRADO'; } }else{ $favorecido = 'FAVORECIDO NÃO CADASTRADO'; } @endphp

PAGAMENTO {{substr($transparencia->nroOP, -4)}}/{{date('Y', strtotime($transparencia->dtPagamento)) }}

{{-- --}} {{-- --}} {{-- --}} {{-- --}} {{-- --}} {{-- --}} {{-- --}} {{-- --}} {{-- --}} {{-- --}} {{-- --}} {{-- --}} {{-- --}} {{-- --}} {{-- --}}
Número do Pagamento: {{substr($transparencia->nroOP, -4)}}/{{date('Y', strtotime($transparencia->dtPagamento)) }} Data do Pagamento: {{date('d/m/Y', strtotime($transparencia->dtPagamento)) }}
Número da Liquidação: @if(isset($ops)){{$ops->nroLiquidacao_11}}/{{date('Y', strtotime($transparencia->dtPagamento)) }}@endif Número do Empenho: @if(isset($ops)){{$ops->nroEmpenho_11}}/{{date('Y', strtotime($ops->dtEmpenho)) }}@endif
Favorecido: {{$favorecido}} CPF/CNPJ do Favorecido: @if(isset($ops)){{$ops->nroDocumento_11}}@endif
Bem adquirido / Serviço Prestado: {{$transparencia->especificacaoOP}}
Valor: R$ {{number_format(preg_replace('/(?<=\d),+(?=\d)/', '.', $transparencia->vlOP),2,",",".")}}
Função: 01 - Legislativa Subfunção: 031 - Ação Legislativa
Modalidade Licitatória: Pregão Presencial N° Licitação: --}} {{-- #####--}} {{--
Processo: #####