Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Walter Felipe
submeta
Commits
481dda60
Commit
481dda60
authored
Jun 15, 2020
by
carlos
Browse files
naturezas fixadas em editais
parent
90c94f03
Changes
2
Show whitespace changes
Inline
Side-by-side
app/Natureza.php
View file @
481dda60
...
...
@@ -6,5 +6,7 @@ use Illuminate\Database\Eloquent\Model;
class
Natureza
extends
Model
{
//
public
function
projetos
()
{
return
$this
->
hasMany
(
'App\Evento'
);
}
}
resources/views/naturezas/index.blade.php
View file @
481dda60
...
...
@@ -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
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment