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
"resources/views/git@sites.upe.br:walter.felipe/submeta.git" did not exist on "335c8815e04c027688f04cf254271ef07c96badb"
Commit
481dda60
authored
Jun 15, 2020
by
carlos
Browse files
naturezas fixadas em editais
parent
90c94f03
Changes
2
Hide whitespace changes
Inline
Side-by-side
app/Natureza.php
View file @
481dda60
...
@@ -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'
);
}
}
}
resources/views/naturezas/index.blade.php
View file @
481dda60
...
@@ -111,24 +111,31 @@
...
@@ -111,24 +111,31 @@
{{
$natureza
->
nome
}}
{{
$natureza
->
nome
}}
</
td
>
</
td
>
<
td
>
<
td
>
{{
$natureza
->
creat_at
}}
{{
$natureza
->
creat_at
}}
</
td
>
</
td
>
<
td
>
<
td
>
<
div
class
=
"btn-group dropright dropdown-options"
>
@
if
(
is_null
(
$natureza
->
projetos
->
first
()))
<
a
id
=
"options"
class
=
"dropdown-toggle "
data
-
toggle
=
"dropdown"
aria
-
haspopup
=
"true"
aria
-
expanded
=
"false"
>
<
div
class
=
"btn-group dropright dropdown-options"
>
<
img
src
=
"
{
{asset('img/icons/ellipsis-v-solid.svg')}
}
"
style
=
"width:8px"
>
<
a
id
=
"options"
class
=
"dropdown-toggle "
data
-
toggle
=
"dropdown"
aria
-
haspopup
=
"true"
aria
-
expanded
=
"false"
>
</
a
>
<
img
src
=
"
{
{asset('img/icons/ellipsis-v-solid.svg')}
}
"
style
=
"width:8px"
>
<
div
class
=
"dropdown-menu"
>
</
a
>
<
a
class
=
"dropdown-item"
data
-
toggle
=
"modal"
data
-
target
=
"#modalEditCenter
{
{$natureza->id}
}
"
class
=
"dropdown-item"
>
<
div
class
=
"dropdown-menu"
>
<
img
src
=
"
{
{asset('img/icons/edit-regular.svg')}
}
"
class
=
"icon-card"
alt
=
""
>
{{
__
(
'Editar'
)}}
<
a
class
=
"dropdown-item"
data
-
toggle
=
"modal"
data
-
target
=
"#modalEditCenter
{
{$natureza->id}
}
"
class
=
"dropdown-item"
>
</
a
>
<
img
src
=
"
{
{asset('img/icons/edit-regular.svg')}
}
"
class
=
"icon-card"
alt
=
""
>
<
a
class
=
"dropdown-item"
data
-
toggle
=
"modal"
data
-
target
=
"#modalDelCenter
{
{$natureza->id}
}
"
class
=
"dropdown-item"
>
{{
__
(
'Editar'
)}}
<
img
src
=
"
{
{asset('img/icons/trash-alt-regular.svg')}
}
"
class
=
"icon-card"
alt
=
""
>
</
a
>
{{
__
(
'Deletar'
)}}
<
a
class
=
"dropdown-item"
data
-
toggle
=
"modal"
data
-
target
=
"#modalDelCenter
{
{$natureza->id}
}
"
class
=
"dropdown-item"
>
</
a
>
<
img
src
=
"
{
{asset('img/icons/trash-alt-regular.svg')}
}
"
class
=
"icon-card"
alt
=
""
>
</
div
>
{{
__
(
'Deletar'
)}}
</
div
>
</
a
>
</
div
>
</
div
>
@
else
<
div
style
=
"float: right;"
>
Fixada
em
um
edital
</
div
>
@
endif
</
td
>
</
td
>
</
tr
>
</
tr
>
@
endforeach
@
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