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;
class Natureza extends Model
{
//
public function projetos() {
return $this->hasMany('App\Evento');
}
}
......@@ -111,14 +111,16 @@
{{ $natureza->nome }}
</td>
<td>
{{$natureza->creat_at}}
{{ $natureza->creat_at }}
</td>
<td>
@if (is_null($natureza->projetos->first()))
<div class="btn-group dropright dropdown-options">
<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">
</a>
<div class="dropdown-menu">
<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="">
{{__('Editar')}}
......@@ -129,6 +131,11 @@
</a>
</div>
</div>
@else
<div style="float: right;">
Fixada em um edital
</div>
@endif
</td>
</tr>
@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