Commit e5177eb6 authored by sandroresende's avatar sandroresende

consulta de proposta pelo num transferegov

parent 9560a811
......@@ -213,7 +213,7 @@ class SelecaoController extends Controller
$where[] = ['ente_publico_id', str_pad($request->entepublico, 14, "0", STR_PAD_LEFT)];
}
$propostas = ViewPropostasCadastradas::where($where)->get();
return $propostas = ViewPropostasCadastradas::where($where)->get();
if(count($propostas) == 0){
flash()->erro("Erro", "Não existem propostas para os parâmetros selecionados.");
......@@ -246,7 +246,7 @@ class SelecaoController extends Controller
}
$propostaSelecionada = ViewPropostasSelecionadas::where('proposta_id', $proposta->id)->firstOrFail();
$propostaSelecionada = ViewPropostasSelecionadas::where('proposta_id', $proposta->id)->first();
$dadosTransfereGov = DadosTransferegov::where('proposta_id', $proposta->id)->get();
......
......@@ -128,17 +128,17 @@
@if(!empty($proposta->situacao_proposta_id == 5))
<div class="titulo"><h3>Dados da Seleção</h3> </div>
<div class="row">
<div class="col col-xs-12 col-sm-4 br-input input-highlight">
<div class="col col-xs-12 col-sm-6 br-input input-highlight">
<p><strong>1. Ação</strong></p>
<input id="input-highlight-labeless" type="text" placeholder="Placeholder" value="{{$propostaSelecionada->acao_programa_id}}- {{$propostaSelecionada->txt_acao_programa}}"/>
</div>
<div class="col col-xs-12 col-sm-4 br-input input-highlight">
<div class="col col-xs-12 col-sm-3 br-input input-highlight">
<p><strong>2. Valor Repasse</strong></p>
<input id="input-highlight-labeless" type="text" placeholder="Placeholder" value="{{number_format( ($propostaSelecionada->vlr_repasse), 2, ',' , '.')}}" />
</div>
<div class="col col-xs-12 col-sm-4 br-input input-highlight">
<div class="col col-xs-12 col-sm-3 br-input input-highlight">
<p><strong>2. Valor Transferegov</strong></p>
<input id="input-highlight-labeless" type="text" placeholder="Placeholder" value="{{number_format( ($propostaSelecionada->vlr_final_transferegov), 2, ',' , '.')}}" />
</div>
......
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