@php function limpaValor($valor) { $valor = trim($valor); $valor = str_replace('R', '', $valor); $valor = str_replace("$", '', $valor); $valor = str_replace('.', '', $valor); $valor = str_replace(':', '', $valor); return $valor; } @endphp {{ $portal->name }} LICITAÇAO DETALHES

@foreach($licitacaoTipos as $tipo) @if($licitacao->categorias == $tipo->id){{$tipo->name}} @endif @endforeach nº {{ $licitacao->numero }}

@if ($errors->any())
{{ $errors->first() }}
@endif

Cadastre-se aqui e receba comunicados sobre esta licitação

{!! Form::open(['url' => routeTenant('site.licitacao.acompanhar'), 'class' => '']) !!}

Cadastre aqui a sua proposta comercial da licitação

{!! Form::open([ 'url' => routeTenant('site.licitacao.proposta'), 'enctype' => 'multipart/form-data', 'class' => '', ]) !!}
{!! Form::label('Nome', 'Documento da proposta:') !!}
@php $i = 0; @endphp @foreach ($itens as $item)
@php $check = "check".$i; @endphp @php $value = "valorUnitario".$i; @endphp @php $id = "itemPropostas_id".$i; @endphp
{!! Form::label('active', 'Ativar:') !!}
@php $quantidade = "quantidade".$i; $descricao = "description".$i; $buttonDescription = "buttonDescription".$i; $cont = 0; $tamanhoLinha = 100; @endphp
{!! Form::label('Descricao', 'Descrição do item:') !!} @if(strlen($item->descricao) > $tamanhoLinha) ver mais @endif
{!! Form::label('Descricao', $item->descricao) !!}
{!! Form::label('Nome2', 'Quantidade:') !!} {!! Form::label('Nome2', $item->quantidade, ['id' => "$quantidade"]) !!}
{!! Form::label('Nome3', 'Valor unitário:') !!}
{!! Form::label('Nome', 'Unidade:') !!} {!! Form::label('Nome', $item->unidade) !!}
@php $name = "subTotal".$i; @endphp
{!! Form::label('Nome3', 'Subtotal:') !!} {!! Form::label('subTotal', 'R$: x.xx', ['id' => "$name"]) !!}
@php $i++; @endphp @endforeach
{{-- PROPOSTA COM ITENS --}} @if ($licitacao->itens != 0)
Itens
@php $i = 0;@endphp @foreach ($itens as $item)
@php $qtPropostas = DB::table('licitacao_proposta_items') ->where('itemPropostas_id', $item->id) ->count(); @endphp
Descrição: {{ $item->descricao }} Quantidade: {{ $item->quantidade }} Unidade: {{ $item->unidade }} Quantidade de propostas cadastradas: {{ $qtPropostas }}
@php $divID = "item".$i++ @endphp
@endforeach {{-- PROPOSTA SEM ITENS --}} @else
Empresas
@foreach ($categories as $category) @endforeach
Nome VALOR TOTAL DA PROPOSTA
{{ $category->nome }}
@php $valor = limpaValor($category->valortotal); $tamanhoValor = strlen($valor); if ($tamanhoValor > 2 && $valor[$tamanhoValor - 3] != ',') { $valor = substr_replace($valor, ',', $tamanhoValor, 0); $valor = substr_replace($valor, '0', $tamanhoValor + 1, 0); $valor = substr_replace($valor, '0', $tamanhoValor + 2, 0); } $tamanhoValor = strlen($valor); if ($tamanhoValor > 6) { $valor = substr_replace($valor, '.', -6, 0); } if ($tamanhoValor > 10) { $valor = substr_replace($valor, '.', -10, 0); } if ($tamanhoValor > 15) { $valor = substr_replace($valor, '.', -15, 0); } $valor = substr_replace($valor, ' ', 0, 0); $valor = substr_replace($valor, '$', 0, 0); $valor = substr_replace($valor, 'R', 0, 0); @endphp {{ $valor }}
@endif
@if ($licitacao->empresavencer != '')
Empresa(s) Vencedora(s): {{ $licitacao->empresavencer }}
CNPJ Nº {{ $licitacao->empresavencer_cnpj }}
@endif
@if($errors->any())
{{$errors->first()}}
@endif
Objeto: {{ $licitacao->objeto }}
Modalidade: @foreach($licitacaoTipos as $tipo) @if($licitacao->categorias == $tipo->id){{$tipo->name}} @endif @endforeach
Status: {{ $licitacao->status }}
Data de Publicação: {{ $licitacao->datapublicar->format('d/m/Y') }}
Data da Abertura: {{ $licitacao->data->format('d/m/Y - H:i') }}
N° do Processo: {{ $licitacao->numero }}
Local da Licitação: {{ $licitacao->account->name }}
Telefone: {{ $licitacao->account->telefone }}
E-mail: {{ $licitacao->account->emaillicitacao }}
Responsável: {{ $licitacao->user->name }}

Publicação @if(App\LicitacaoDocumento::where('licitacao_id', $licitacao->id)->where('nome', 2)->count() >= 1) Recurso Edital @if(App\LicitacaoDocumento::where('licitacao_id', $licitacao->id)->where('nome', 3)->count() >= 1) Resposta do Recurso @endif @if(App\LicitacaoDocumento::where('licitacao_id', $licitacao->id)->where('nome', 4)->count() >= 1) Ata de Jugamento @endif @if(App\LicitacaoDocumento::where('licitacao_id', $licitacao->id)->where('nome', 5)->count() >= 1) Edital Retificado @endif @if(App\LicitacaoDocumento::where('licitacao_id', $licitacao->id)->where('nome', 5)->count() >= 1) Edital Retificado @endif @if(App\LicitacaoDocumento::where('licitacao_id', $licitacao->id)->where('nome', 6)->count() >= 1) Republicação Edital @endif @if(App\LicitacaoDocumento::where('licitacao_id', $licitacao->id)->where('nome', 7)->count() >= 1) Recurso Jugamento @endif @if(App\LicitacaoDocumento::where('licitacao_id', $licitacao->id)->where('nome', 8)->count() >= 1) Contra Recurso @endif @endif @if(App\LicitacaoDocumento::where('licitacao_id', $licitacao->id)->where('nome', 9)->count() >= 1) Adjudicação/Homologação @endif @if($licitacao->status === 'Homologada')
Homologada
@endif @if($licitacao->status === 'Cancelada')
Cancelada
@endif
@foreach($documetos as $documento) @if($documento->cadastro == 1) @else @endif @endforeach
@if($documento->nome == 1) PUBLICAÇÃO @endif @if($documento->nome == 2) RECURSO EDITAL @endif @if($documento->nome == 3) RESPOSTA DO RECURSO @endif @if($documento->nome == 4) ATA DE JUGAMENTO @endif @if($documento->nome == 5) EDITAL RETIFICADO @endif @if($documento->nome == 6) REPUBLICAÇÂO EDITAL @endif @if($documento->nome == 7) RECURSO JUGAMANTO @endif @if($documento->nome == 8) CONTRA RECURSO @endif @if($documento->nome == 9) ADJUDICAÇÃO/HOMOLOGAÇÃO @endif @if($documento->nome == 10) EDITAL DE LICITAÇÃO @endif @if($documento->nome == 11) RETIFICAÇÃO DO EDITAL @endif @if($documento->nome == 12) ANEXOS DO EDITAL @endif @if($documento->nome == 13) ESCLARECIMENTOS @endif @if($documento->nome == 14) IMPUGNAÇÃO DO EDITAL @endif @if($documento->nome == 15) PARECER SOBRE IMPUGNAÇÃO @endif @if($documento->nome == 16) ARQUIVO DE PROPOSTA @endif @if($documento->nome == 17) OUTROS @endif VISUALIZAR
@if($documento->nome == 1) PUBLICAÇÃO @endif @if($documento->nome == 2) RECURSO EDITAL @endif @if($documento->nome == 3) RESPOSTA DO RECURSO @endif @if($documento->nome == 4) ATA DE JUGAMENTO @endif @if($documento->nome == 5) EDITAL RETIFICADO @endif @if($documento->nome == 6) REPUBLICAÇÂO EDITAL @endif @if($documento->nome == 7) RECURSO JUGAMANTO @endif @if($documento->nome == 8) CONTRA RECURSO @endif @if($documento->nome == 9) ADJUDICAÇÃO/HOMOLOGAÇÃO @endif @if($documento->nome == 10) EDITAL DE LICITAÇÃO @endif @if($documento->nome == 11) RETIFICAÇÃO DO EDITAL @endif @if($documento->nome == 12) ANEXOS DO EDITAL @endif @if($documento->nome == 13) ESCLARECIMENTOS @endif @if($documento->nome == 14) IMPUGNAÇÃO DO EDITAL @endif @if($documento->nome == 15) PARECER SOBRE IMPUGNAÇÃO @endif @if($documento->nome == 16) ARQUIVO DE PROPOSTA @endif @if($documento->nome == 17) OUTROS @endif VISUALIZAR