"resources/views/git@sites.upe.br:walter.felipe/submeta.git" did not exist on "67245ec5b261b3d14077285ffc2ddf5889a98152"
Commit 481dda60 authored by carlos's avatar carlos
Browse files

naturezas fixadas em editais

parent 90c94f03
...@@ -6,5 +6,7 @@ use Illuminate\Database\Eloquent\Model; ...@@ -6,5 +6,7 @@ use Illuminate\Database\Eloquent\Model;
class Natureza extends Model class Natureza extends Model
{ {
// public function projetos() {
return $this->hasMany('App\Evento');
}
} }
...@@ -111,14 +111,16 @@ ...@@ -111,14 +111,16 @@
{{ $natureza->nome }} {{ $natureza->nome }}
</td> </td>
<td> <td>
{{$natureza->creat_at}} {{ $natureza->creat_at }}
</td> </td>
<td> <td>
@if (is_null($natureza->projetos->first()))
<div class="btn-group dropright dropdown-options"> <div class="btn-group dropright dropdown-options">
<a id="options" class="dropdown-toggle " data-toggle="dropdown" aria-haspopup="true" aria-expanded="false"> <a id="options" class="dropdown-toggle " data-toggle="dropdown" aria-haspopup="true" aria-expanded="false">
<img src="{{asset('img/icons/ellipsis-v-solid.svg')}}" style="width:8px"> <img src="{{asset('img/icons/ellipsis-v-solid.svg')}}" style="width:8px">
</a> </a>
<div class="dropdown-menu"> <div class="dropdown-menu">
<a class="dropdown-item" data-toggle="modal" data-target="#modalEditCenter{{$natureza->id}}" class="dropdown-item"> <a class="dropdown-item" data-toggle="modal" data-target="#modalEditCenter{{$natureza->id}}" class="dropdown-item">
<img src="{{asset('img/icons/edit-regular.svg')}}" class="icon-card" alt=""> <img src="{{asset('img/icons/edit-regular.svg')}}" class="icon-card" alt="">
{{__('Editar')}} {{__('Editar')}}
...@@ -129,6 +131,11 @@ ...@@ -129,6 +131,11 @@
</a> </a>
</div> </div>
</div> </div>
@else
<div style="float: right;">
Fixada em um edital
</div>
@endif
</td> </td>
</tr> </tr>
@endforeach @endforeach
......
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