@extends(layoutTenant()) @section('content')

Contribuícoes enviadas para a Licitação Nº {{ $licitacao->numero }}

@if ($errors->any())
@endif @if (session('success'))
{{ session('success') }}
@endif
Empresas
@php $cont = 0; @endphp @foreach ($categories as $category) @php $cont++; $idData = 'data' . $cont; $idContribuicao = 'contribuicao' . $cont; $idJustificativa = 'justificativa' . $cont; $idDispositivo = 'dispositivo' . $cont; $idParticipante = 'participante' . $cont; @endphp @endforeach
Participante/Instituicao CPF/CNPJ Telefone E-mail Cidade Data Dispositivo Contribuição Justificativa
{{ $category->participante }}
@php $cpf = $category->cpf; if (strlen($cpf) === 11) { $cpf = substr_replace($cpf, '.', 3, 0); $cpf = substr_replace($cpf, '.', 7, 0); $cpf = substr_replace($cpf, '-', 11, 0); } elseif (strlen($cpf) === 14) { $cpf = substr_replace($cpf, '.', 2, 0); $cpf = substr_replace($cpf, '.', 6, 0); $cpf = substr_replace($cpf, '/', 10, 0); $cpf = substr_replace($cpf, '-', 15, 0); } @endphp {{ $cpf }} @php $telefone = $category->telefone; if (strlen($telefone) === 11) { $telefone = substr_replace($telefone, '(', 0, 0); $telefone = substr_replace($telefone, ')', 3, 0); $telefone = substr_replace($telefone, ' ', 4, 0); $telefone = substr_replace($telefone, ' ', 6, 0); $telefone = substr_replace($telefone, '-', 11, 0); } @endphp
{{ $telefone }}
{{ $category->email }}
{{ $category->cidade }}
{{ $category->created_at->format('d/m/Y') }}
{!! substr($category->dispositivo, 0, 115) !!} {!! substr($category->contribuicao, 0, 115) !!} {!! substr($category->justificativa, 0, 115) !!}
Exibindo página {{ $categories->currentPage() }} de @if ($categories->lastPage() > 0) {{ $categories->lastPage() }} @else 1 @endif de um total de {{ $categories->total() }} registros - máximo de {{ $categories->perPage() }} registros por página
@if (isset($dataform)) {!! $categories->appends($dataform)->links() !!} @else {!! $categories->links() !!} @endif
{{-- MODAL-CONSULTA --}}
@endsection @section('post-script') @endsection