Commit a19a7866 authored by sandroresende's avatar sandroresende

inclusao consulta carteira investimento

parent 1dc2e38a
......@@ -6,6 +6,7 @@ use App\Corporativo\Mcid_corporativo\ViewCarteiraInvestimento;
use Illuminate\Http\Request;
use App\Http\Controllers\Controller;
use App\IndicadoresHabitacionais\Municipio;
use App\IndicadoresHabitacionais\Uf;
use App\ViewArquivosEnviados;
......@@ -23,7 +24,7 @@ class CarteiraInvestimentoController extends Controller
*/
public function __construct()
{
$this->middleware('auth');
// $this->middleware('auth');
}
......@@ -80,7 +81,8 @@ class CarteiraInvestimentoController extends Controller
}
if(!empty($request->municipio)){
$where[] = ['municipio_id', $request->municipio];
$municipio = Municipio::where('id',$request->municipio)->firstOrFail();
$where[] = ['ibge', $municipio->cod_ibge_7_dig];
}
$dadosContratos = ViewCarteiraInvestimento::where($where)->get();
......
......@@ -38,15 +38,11 @@
<th>UF</th>
<th>Município</th>
<th>Código Contrato</th>
<th>Código SACI</th>
<th>Tipo Instrumento</th>
<th>Area de Investimento</th>
<th>Situaçáo do Contrato</th>
<th>Execuçäo Física</th>
<th>Valor Investimento</th>
<th>Valor Repasse</th>
<th>Valor Contrapartida</th>
<th>Valor Pago</th>
<th>Data Atualização</th>
<th class="text-center">Ação</th>
......@@ -59,16 +55,11 @@
<td>{{$dados->uf}}</td>
<td>{{$dados->municipio}}</td>
<td>{{$dados->cod_contrato}}</td>
<td>{{$dados->cod_saci}}</td>
<td>{{$dados->tipo_instrumento}}</td>
<td>{{$dados->dsc_area_investimento}}</td>
<td>{{$dados->dsc_situacao_objeto_mdr}}</td>
<td>{{number_format($dados->prc_execucao, 2, ',' , '.')}}</td>
<td>{{number_format($dados->vlr_investimento_ajustado, 2, ',' , '.')}}</td>
<td>{{number_format($dados->vlr_repasse, 2, ',' , '.')}}</td>
<td>{{number_format($dados->vlr_contrapartida_ajustado, 2, ',' , '.')}}</td>
<td>{{number_format($dados->vlr_pago_conta, 2, ',' , '.')}}</td>
<td>{{date('d/m/Y',strtotime($dados->dte_controle))}}</td>
<td>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment