Unverified Commit fe2905dd authored by carlos1270's avatar carlos1270 Committed by GitHub
Browse files

Merge pull request #89 from lmts-ufape/modificacoes_layout_5

Modificacoes layout 5
parents 6b3eb883 af4a2bb4
...@@ -29,16 +29,22 @@ use Illuminate\Support\Facades\Mail; ...@@ -29,16 +29,22 @@ use Illuminate\Support\Facades\Mail;
class EventoController extends Controller class EventoController extends Controller
{ {
public function index() public function index(Request $request)
{ {
// if($request->buscar == null){
$eventos = Evento::all(); $eventos = Evento::all();
// $comissaoEvento = ComissaoEvento::all(); // $comissaoEvento = ComissaoEvento::all();
// $eventos = Evento::where('coordenadorId', Auth::user()->id)->get(); // $eventos = Evento::where('coordenadorId', Auth::user()->id)->get();
$hoje = Carbon::today('America/Recife'); $hoje = Carbon::today('America/Recife');
$hoje = $hoje->toDateString(); $hoje = $hoje->toDateString();
return view('coordenador.home',['eventos'=>$eventos, 'hoje'=>$hoje]); return view('coordenador.home',['eventos'=>$eventos, 'hoje'=>$hoje, 'palavra'=>'', 'flag'=>'false']);
}else{
$eventos = Evento::where('nome','ilike','%'.$request->buscar.'%')->get();
$hoje = Carbon::today('America/Recife');
$hoje = $hoje->toDateString();
return view('coordenador.home',['eventos'=>$eventos, 'hoje'=>$hoje, 'palavra'=>$request->buscar, 'flag'=>'true']);
}
} }
......
...@@ -6,13 +6,33 @@ ...@@ -6,13 +6,33 @@
{{-- titulo da página --}} {{-- titulo da página --}}
<div class="row justify-content-center" style="margin-top: 3rem; text-align:center"> <div class="row justify-content-center" style="margin-top: 3rem; text-align:center">
<div class="col-md-12" style="margin-bottom: -0.5rem">
@if(count($eventos)>0) <div class="col-md-12">
<h5 class="card-title mb-0" style="font-size:25px; font-family:Arial, Helvetica, sans-serif; color:#1492E6">Editais</h5> <div class="row justify-content-between">
@else <div class="col-sm"></div>
<h5 class="card-title mb-0" style="font-size:25px; font-family:Arial, Helvetica, sans-serif; color:#1492E6">Edital</h5> <div class="col-sm" style="margin-bottom: 10px">
@endif @if($flag == 'false')
@if(count($eventos)>0)
<h5 class="card-title mb-0" style="font-size:25px; font-family:Arial, Helvetica, sans-serif; color:#1492E6">Editais</h5>
@else
<h5 class="card-title mb-0" style="font-size:25px; font-family:Arial, Helvetica, sans-serif; color:#1492E6">Edital</h5>
@endif
@else
<h5 class="card-title mb-0" style="font-size:25px; font-family:Arial, Helvetica, sans-serif; color:#1492E6">Resultado da busca por: <span style="font-style: italic; font-weight:bold">{{$palavra}}</span></h5>
@endif
</div>
<div class="col-sm">
<form action="{{route('coord.home')}}" method="get">
@csrf
<div class="btn-group">
<input type="text" class="form-control shadow-sm" name="buscar" placeholder="Digite o nome do edital" value="{{$palavra}}" style="margin-right: 5px;border-radius:8px; border-color:#fff;">
<button type="submit" class="btn btn-light shadow-sm" style="border-radius: 8px"><img src="{{asset('img/icons/logo_lupa.png')}}" alt="" width="20px"></button>
</div>
</form>
</div>
</div>
</div> </div>
<div class="col-md-12"> <div class="col-md-12">
<hr> <hr>
</div> </div>
...@@ -147,7 +167,14 @@ ...@@ -147,7 +167,14 @@
<div class="col-md-12"> <div class="col-md-12">
<img src="{{asset('img/icons/logo_projeto.png')}}" alt="..." width="190px"> <img src="{{asset('img/icons/logo_projeto.png')}}" alt="..." width="190px">
</div> </div>
<div class="col-md-5" style="text-align: center;margin-top:1rem"><h5>Nenhum edital cadastrado!</h5></div> @if($flag == 'true')
<div class="col-md-5" style="text-align: center;margin-top:1rem">
<h5>Nenhum edital encontrado!</h5>
<a href="{{route('coord.home')}}">Clique aqui para ver todos os editais</a>
</div>
@else
<div class="col-md-5" style="text-align: center;margin-top:1rem"><h5>Nenhum edital cadastrado!</h5></div>
@endif
</div> </div>
@endif @endif
</div> </div>
......
...@@ -233,7 +233,7 @@ ...@@ -233,7 +233,7 @@
</div> </div>
<div class="form-group" style="width: 100%"> <div class="form-group" style="width: 100%">
<div class="d-flex justify-content-between" style="width: 100%"> <div class="d-flex justify-content-between" style="width: 100%">
<div><h5 style=" font-size:19px; margin-top:9px">Outros documentos</h5></div> <div><h5 style=" font-size:19px; margin-top:9px">Outros<br>documentos</h5></div>
<div> <div>
<a class="btn btn-light" href="{{route('baixar.modelos', ['id' => $evento->id])}}" target="_new" style="" > <a class="btn btn-light" href="{{route('baixar.modelos', ['id' => $evento->id])}}" target="_new" style="" >
<img class="" src="{{asset('img/icons/file-download-solid.svg')}}" style="width:20px"><br> <img class="" src="{{asset('img/icons/file-download-solid.svg')}}" style="width:20px"><br>
......
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