Commit a22c954b authored by Lucas Henrique's avatar Lucas Henrique
Browse files

Ajusta página de resultados quando edital não possui discentes

parent 82461e86
...@@ -56,7 +56,9 @@ ...@@ -56,7 +56,9 @@
<th scope="col">N. Planos</th> <th scope="col">N. Planos</th>
<th scope="col">Avaliador</th> <th scope="col">Avaliador</th>
<th scope="col">Status</th> <th scope="col">Status</th>
@if ($evento->numParticipantes != 0)
<th scope="col">Bolsas</th> <th scope="col">Bolsas</th>
@endif
</tr> </tr>
</thead> </thead>
<tbody id="projetos"> <tbody id="projetos">
...@@ -76,7 +78,7 @@ ...@@ -76,7 +78,7 @@
{{$trabalho->area->nome}} {{$trabalho->area->nome}}
</td> </td>
<td> <td>
{{$trabalho->participantes->count()}} @if ($evento->numParticipantes != 0) {{$trabalho->participantes->count()}} @else {{$trabalho->proponente->count()}} @endif
</td> </td>
<td> <td>
@if($trabalho->avaliadors->count() > 0) @if($trabalho->avaliadors->count() > 0)
...@@ -111,11 +113,13 @@ ...@@ -111,11 +113,13 @@
@else @else
<td>Pendente</td> <td>Pendente</td>
@endif @endif
@if ($evento->numParticipantes != 0)
<td> <td>
<button type="button" class="btn btn-primary" data-toggle="modal" data-target="#modalConfirmTrab{{$trabalho->id}}" > <button type="button" class="btn btn-primary" data-toggle="modal" data-target="#modalConfirmTrab{{$trabalho->id}}" >
Definir Definir
</button> </button>
</td> </td>
@endif
</tr> </tr>
@php $cont+=1;@endphp @php $cont+=1;@endphp
@endif @endif
...@@ -142,7 +146,9 @@ ...@@ -142,7 +146,9 @@
<th scope="col">N. Planos</th> <th scope="col">N. Planos</th>
<th scope="col">Avaliador</th> <th scope="col">Avaliador</th>
<th scope="col">Status</th> <th scope="col">Status</th>
@if ($evento->numParticipantes != 0)
<th scope="col">Bolsas</th> <th scope="col">Bolsas</th>
@endif
</tr> </tr>
</thead> </thead>
<tbody id="projetos"> <tbody id="projetos">
...@@ -162,7 +168,7 @@ ...@@ -162,7 +168,7 @@
{{$trabalho->area->nome}} {{$trabalho->area->nome}}
</td> </td>
<td> <td>
{{$trabalho->participantes->count()}} @if ($evento->numParticipantes != 0) {{$trabalho->participantes->count()}} @else {{$trabalho->proponente->count()}} @endif
</td> </td>
<td> <td>
@if($trabalho->avaliadors->count() > 0) @if($trabalho->avaliadors->count() > 0)
...@@ -197,11 +203,13 @@ ...@@ -197,11 +203,13 @@
@else @else
<td>Pendente</td> <td>Pendente</td>
@endif @endif
@if ($evento->numParticipantes != 0)
<td> <td>
<button type="button" class="btn btn-primary" data-toggle="modal" data-target="#modalConfirmTrab{{$trabalho->id}}" > <button type="button" class="btn btn-primary" data-toggle="modal" data-target="#modalConfirmTrab{{$trabalho->id}}" >
Definir Definir
</button> </button>
</td> </td>
@endif
</tr> </tr>
@php $cont+=1;@endphp @php $cont+=1;@endphp
@endif @endif
...@@ -229,7 +237,9 @@ ...@@ -229,7 +237,9 @@
<th scope="col">N. Planos</th> <th scope="col">N. Planos</th>
<th scope="col">Avaliador</th> <th scope="col">Avaliador</th>
<th scope="col">Status</th> <th scope="col">Status</th>
@if ($evento->numParticipantes != 0)
<th scope="col">Bolsas</th> <th scope="col">Bolsas</th>
@endif
</tr> </tr>
</thead> </thead>
<tbody id="projetos"> <tbody id="projetos">
...@@ -249,7 +259,7 @@ ...@@ -249,7 +259,7 @@
{{$trabalho->area->nome}} {{$trabalho->area->nome}}
</td> </td>
<td> <td>
{{$trabalho->participantes->count()}} @if ($evento->numParticipantes != 0) {{$trabalho->participantes->count()}} @else {{$trabalho->proponente->count()}} @endif
</td> </td>
<td> <td>
@if($trabalho->avaliadors->count() > 0) @if($trabalho->avaliadors->count() > 0)
...@@ -284,11 +294,13 @@ ...@@ -284,11 +294,13 @@
@else @else
<td>Pendente</td> <td>Pendente</td>
@endif @endif
@if ($evento->numParticipantes != 0)
<td> <td>
<button type="button" class="btn btn-primary" data-toggle="modal" data-target="#modalConfirmTrab{{$trabalho->id}}" > <button type="button" class="btn btn-primary" data-toggle="modal" data-target="#modalConfirmTrab{{$trabalho->id}}" >
Definir Definir
</button> </button>
</td> </td>
@endif
</tr> </tr>
@php $cont+=1;@endphp @php $cont+=1;@endphp
@endif @endif
......
...@@ -63,7 +63,9 @@ ...@@ -63,7 +63,9 @@
<th scope="col">N. Planos</th> <th scope="col">N. Planos</th>
<th scope="col">Avaliador</th> <th scope="col">Avaliador</th>
<th scope="col">Status</th> <th scope="col">Status</th>
@if ($evento->numParticipantes != 0)
<th scope="col">Bolsas</th> <th scope="col">Bolsas</th>
@endif
</tr> </tr>
</thead> </thead>
<tbody id="projetos"> <tbody id="projetos">
...@@ -84,7 +86,7 @@ ...@@ -84,7 +86,7 @@
{{$trabalho->area->nome}} {{$trabalho->area->nome}}
</td> </td>
<td> <td>
{{$trabalho->participantes->count()}} @if ($evento->numParticipantes != 0) {{$trabalho->participantes->count()}} @else {{$trabalho->proponente->count()}} @endif
</td> </td>
<td> <td>
@if($trabalho->avaliadors->count() > 0) @if($trabalho->avaliadors->count() > 0)
...@@ -119,11 +121,13 @@ ...@@ -119,11 +121,13 @@
@else @else
<td>Pendente</td> <td>Pendente</td>
@endif @endif
@if ($evento->numParticipantes != 0)
<td> <td>
<button type="button" class="btn btn-primary" data-toggle="modal" data-target="#modalConfirmTrab{{$trabalho->id}}" > <button type="button" class="btn btn-primary" data-toggle="modal" data-target="#modalConfirmTrab{{$trabalho->id}}" >
Definir Definir
</button> </button>
</td> </td>
@endif
</tr> </tr>
@php $cont+=1;@endphp @php $cont+=1;@endphp
@endif @endif
...@@ -151,7 +155,9 @@ ...@@ -151,7 +155,9 @@
<th scope="col">N. Planos</th> <th scope="col">N. Planos</th>
<th scope="col">Avaliador</th> <th scope="col">Avaliador</th>
<th scope="col">Status</th> <th scope="col">Status</th>
@if ($evento->numParticipantes != 0)
<th scope="col">Bolsas</th> <th scope="col">Bolsas</th>
@endif
</tr> </tr>
</thead> </thead>
<tbody id="projetos"> <tbody id="projetos">
...@@ -171,7 +177,7 @@ ...@@ -171,7 +177,7 @@
{{$trabalho->area->nome}} {{$trabalho->area->nome}}
</td> </td>
<td> <td>
{{$trabalho->participantes->count()}} @if ($evento->numParticipantes != 0) {{$trabalho->participantes->count()}} @else {{$trabalho->proponente->count()}} @endif
</td> </td>
<td> <td>
@if($trabalho->avaliadors->count() > 0) @if($trabalho->avaliadors->count() > 0)
...@@ -206,11 +212,13 @@ ...@@ -206,11 +212,13 @@
@else @else
<td>Pendente</td> <td>Pendente</td>
@endif @endif
@if ($evento->numParticipantes != 0)
<td> <td>
<button type="button" class="btn btn-primary" data-toggle="modal" data-target="#modalConfirmTrab{{$trabalho->id}}" > <button type="button" class="btn btn-primary" data-toggle="modal" data-target="#modalConfirmTrab{{$trabalho->id}}" >
Definir Definir
</button> </button>
</td> </td>
@endif
</tr> </tr>
@php $cont+=1;@endphp @php $cont+=1;@endphp
@endif @endif
...@@ -239,7 +247,9 @@ ...@@ -239,7 +247,9 @@
<th scope="col">N. Planos</th> <th scope="col">N. Planos</th>
<th scope="col">Avaliador</th> <th scope="col">Avaliador</th>
<th scope="col">Status</th> <th scope="col">Status</th>
@if ($evento->numParticipantes != 0)
<th scope="col">Bolsas</th> <th scope="col">Bolsas</th>
@endif
</tr> </tr>
</thead> </thead>
<tbody id="projetos"> <tbody id="projetos">
...@@ -260,7 +270,7 @@ ...@@ -260,7 +270,7 @@
{{$trabalho->area->nome}} {{$trabalho->area->nome}}
</td> </td>
<td> <td>
{{$trabalho->participantes->count()}} @if ($evento->numParticipantes != 0) {{$trabalho->participantes->count()}} @else {{$trabalho->proponente->count()}} @endif
</td> </td>
<td> <td>
@if($trabalho->avaliadors->count() > 0) @if($trabalho->avaliadors->count() > 0)
...@@ -295,11 +305,13 @@ ...@@ -295,11 +305,13 @@
@else @else
<td>Pendente</td> <td>Pendente</td>
@endif @endif
@if ($evento->numParticipantes != 0)
<td> <td>
<button type="button" class="btn btn-primary" data-toggle="modal" data-target="#modalConfirmTrab{{$trabalho->id}}" > <button type="button" class="btn btn-primary" data-toggle="modal" data-target="#modalConfirmTrab{{$trabalho->id}}" >
Definir Definir
</button> </button>
</td> </td>
@endif
</tr> </tr>
@php $cont+=1;@endphp @php $cont+=1;@endphp
@endif @endif
...@@ -320,7 +332,7 @@ ...@@ -320,7 +332,7 @@
{{$trabalho->area->nome}} {{$trabalho->area->nome}}
</td> </td>
<td> <td>
{{$trabalho->participantes->count()}} @if ($evento->numParticipantes != 0) {{$trabalho->participantes->count()}} @else {{$trabalho->proponente->count()}} @endif
</td> </td>
<td> <td>
@if($trabalho->avaliadors->count() > 0) @if($trabalho->avaliadors->count() > 0)
...@@ -355,11 +367,13 @@ ...@@ -355,11 +367,13 @@
@else @else
<td>Pendente</td> <td>Pendente</td>
@endif @endif
@if ($evento->numParticipantes != 0)
<td> <td>
<button type="button" class="btn btn-primary" data-toggle="modal" data-target="#modalConfirmTrab{{$trabalho->id}}" > <button type="button" class="btn btn-primary" data-toggle="modal" data-target="#modalConfirmTrab{{$trabalho->id}}" >
Definir Definir
</button> </button>
</td> </td>
@endif
</tr> </tr>
@php $cont+=1;@endphp @php $cont+=1;@endphp
@endif @endif
...@@ -387,7 +401,9 @@ ...@@ -387,7 +401,9 @@
<th scope="col">N. Planos</th> <th scope="col">N. Planos</th>
<th scope="col">Avaliador</th> <th scope="col">Avaliador</th>
<th scope="col">Status</th> <th scope="col">Status</th>
@if ($evento->numParticipantes != 0)
<th scope="col">Bolsas</th> <th scope="col">Bolsas</th>
@endif
</tr> </tr>
</thead> </thead>
<tbody id="projetos"> <tbody id="projetos">
...@@ -408,7 +424,7 @@ ...@@ -408,7 +424,7 @@
{{$trabalho->area->nome}} {{$trabalho->area->nome}}
</td> </td>
<td> <td>
{{$trabalho->participantes->count()}} @if ($evento->numParticipantes != 0) {{$trabalho->participantes->count()}} @else {{$trabalho->proponente->count()}} @endif
</td> </td>
<td> <td>
@if($trabalho->avaliadors->count() > 0) @if($trabalho->avaliadors->count() > 0)
...@@ -443,11 +459,13 @@ ...@@ -443,11 +459,13 @@
@else @else
<td>Pendente</td> <td>Pendente</td>
@endif @endif
@if ($evento->numParticipantes != 0)
<td> <td>
<button type="button" class="btn btn-primary" data-toggle="modal" data-target="#modalConfirmTrab{{$trabalho->id}}" > <button type="button" class="btn btn-primary" data-toggle="modal" data-target="#modalConfirmTrab{{$trabalho->id}}" >
Definir Definir
</button> </button>
</td> </td>
@endif
</tr> </tr>
@php $cont+=1;@endphp @php $cont+=1;@endphp
@endif @endif
...@@ -468,7 +486,7 @@ ...@@ -468,7 +486,7 @@
{{$trabalho->area->nome}} {{$trabalho->area->nome}}
</td> </td>
<td> <td>
{{$trabalho->participantes->count()}} @if ($evento->numParticipantes != 0) {{$trabalho->participantes->count()}} @else {{$trabalho->proponente->count()}} @endif
</td> </td>
<td> <td>
@if($trabalho->avaliadors->count() > 0) @if($trabalho->avaliadors->count() > 0)
...@@ -503,11 +521,13 @@ ...@@ -503,11 +521,13 @@
@else @else
<td>Pendente</td> <td>Pendente</td>
@endif @endif
@if ($evento->numParticipantes != 0)
<td> <td>
<button type="button" class="btn btn-primary" data-toggle="modal" data-target="#modalConfirmTrab{{$trabalho->id}}" > <button type="button" class="btn btn-primary" data-toggle="modal" data-target="#modalConfirmTrab{{$trabalho->id}}" >
Definir Definir
</button> </button>
</td> </td>
@endif
</tr> </tr>
@php $cont+=1;@endphp @php $cont+=1;@endphp
@endif @endif
......
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