Commit b9308708 authored by Danillo Bion's avatar Danillo Bion
Browse files

modificacoes na tela - planos do edital - avaliador

parent 48746995
...@@ -2,68 +2,103 @@ ...@@ -2,68 +2,103 @@
@section('content') @section('content')
<div class="container" style="margin-top: 100px;">
<div class="container" > <div class="container">
<div class="row" > @if(isset($mensagem))
<div class="col-sm-10"> <div class="col-sm-12">
<h3>Planos do Edital: {{ $evento->nome }}</h3> <br>
<div class="alert alert-success">
<p>{{ $mensagem }}</p>
</div> </div>
</div>
</div> </div>
<hr> @endif
<table class="table table-bordered"> @if(session('mensagem'))
<thead> <div class="col-sm-12">
<tr> <br>
<th scope="col">Nome do Projeto</th> <div class="alert alert-success">
<th scope="col">Data de Criação</th> <p>{{session('mensagem')}}</p>
<th scope="col">Parecer</th> </div>
</tr> </div>
</thead> @endif
<tbody> <div class="row justify-content-center" style="margin-top: 3rem;">
@foreach ($planos as $plano) <div class="col-md-11" style="margin-bottom: -3rem">
<tr> <div class="card card_conteudo shadow bg-white" style="border-radius:12px; border-width:0px;">
<td>{{ $plano->titulo }}</td> <div class="card-header" style="border-top-left-radius: 12px; border-top-right-radius: 12px; background-color: #fff">
<td>{{ $plano->created_at }}</td> <div class="d-flex justify-content-between align-items-center" style="margin-top: 9px; margin-bottom:-1rem">
{{-- <td> <div class="bottomVoltar" style="margin-top: -20px">
<a href="{{route('download', ['file' => $trabalho->anexoProjeto])}}" target="_new" style="font-size: 20px; color: #114048ff;" > <a href="{{ route('home') }}" class="btn btn-secondary" style=""><img src="{{asset('img/icons/logo_esquerda.png')}}" alt="" width="15px"></a>
<img class="" src="{{asset('img/icons/file-download-solid.svg')}}" style="width:20px"> </div>
</a> <div class="form-group">
</td> <h5 class="card-title mb-0" style="font-size:25px; font-family:Arial, Helvetica, sans-serif; color:#1492E6">Planos do edital: {{ $evento->nome }}</h5>
<td> </div>
@foreach( $trabalho->participantes as $participante) <div style="margin-top: -2rem">
@php <div class="form-group">
if( App\Arquivo::where('participanteId', $participante->id)->first() != null){ <div style="margin-top:30px;">
$planoTrabalho = App\Arquivo::where('participanteId', $participante->id)->first()->nome; {{-- Pesquisar--}}
}else{ </div>
$planoTrabalho = null; </div>
}
@endphp
@if ($planoTrabalho != null)
<a href="{{route('download', ['file' => $planoTrabalho])}}" target="_new" style="font-size: 20px; color: #114048ff;" >
<img class="" src="{{asset('img/icons/file-download-solid.svg')}}" style="width:20px">
</a>
@else
Não planos de trabalho.
@endif
@endforeach
</td> --}}
<td>
<div class="row">
<form action="{{ route('avaliador.parecer.plano', ['evento' => $evento]) }}" method="POST">
@csrf
<input type="hidden" name="plano_id" value="{{ $plano->id }}" >
<button type="submit" class="btn btn-primary mr-2 ml-2" >
Parecer
</button>
</form>
</div> </div>
</td> </div>
</tr> </div>
@endforeach
</tbody>
</table> <div class="card-body" >
<table class="table table-bordered table-hover" style="display: block; overflow-x: auto; white-space: nowrap; border-radius:10px; margin-bottom:0px">
<thead>
<tr>
<th scope="col" style="width:100%">Nome do Projeto</th>
<th scope="col">Data de Criação</th>
<th scope="col">Parecer</th>
</tr>
</thead>
<tbody>
@foreach ($planos as $plano)
<tr>
<td>{{ $plano->titulo }}</td>
<td>{{ $plano->created_at->format('d/m/Y') }}</td>
{{-- <td>
<a href="{{route('download', ['file' => $trabalho->anexoProjeto])}}" target="_new" style="font-size: 20px; color: #114048ff;" >
<img class="" src="{{asset('img/icons/file-download-solid.svg')}}" style="width:20px">
</a>
</td>
<td>
@foreach( $trabalho->participantes as $participante)
@php
if( App\Arquivo::where('participanteId', $participante->id)->first() != null){
$planoTrabalho = App\Arquivo::where('participanteId', $participante->id)->first()->nome;
}else{
$planoTrabalho = null;
}
@endphp
@if ($planoTrabalho != null)
<a href="{{route('download', ['file' => $planoTrabalho])}}" target="_new" style="font-size: 20px; color: #114048ff;" >
<img class="" src="{{asset('img/icons/file-download-solid.svg')}}" style="width:20px">
</a>
@else
Não planos de trabalho.
@endif
@endforeach
</td> --}}
<td>
<div class="row">
<form action="{{ route('avaliador.parecer.plano', ['evento' => $evento]) }}" method="POST">
@csrf
<input type="hidden" name="plano_id" value="{{ $plano->id }}" >
<button type="submit" class="btn btn-primary mr-2 ml-2" >
Parecer
</button>
</form>
</div>
</td>
</tr>
@endforeach
</tbody>
</table>
</div>
</div>
</div>
</div>
</div> </div>
@endsection @endsection
......
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