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
de8be23c
"app/vscode:/vscode.git/clone" did not exist on "195145791b2cfb5cc680eccd96f388c2a46b3bba"
Commit
de8be23c
authored
May 11, 2021
by
Carlos André
Browse files
subareas
parent
fd4d4bdf
Changes
2
Show whitespace changes
Inline
Side-by-side
app/Area.php
View file @
de8be23c
...
@@ -37,4 +37,7 @@ class Area extends Model
...
@@ -37,4 +37,7 @@ class Area extends Model
public
function
avaliador
(){
public
function
avaliador
(){
return
$this
->
hasMany
(
'App\Area'
);
return
$this
->
hasMany
(
'App\Area'
);
}
}
public
function
grandeArea
()
{
return
$this
->
belongsTo
(
'App\GrandeArea'
,
'grande_area_id'
);
}
}
}
resources/views/naturezas/area/detalhes.blade.php
View file @
de8be23c
...
@@ -5,20 +5,26 @@
...
@@ -5,20 +5,26 @@
<
div
class
=
"container"
>
<
div
class
=
"container"
>
<
div
class
=
"row"
>
<
div
class
=
"row"
>
@
if
(
session
(
'mensagem'
))
@
if
(
session
(
'mensagem'
))
<
div
class
=
"col-md-12"
style
=
"margin-top:
10
0px;"
>
<
div
class
=
"col-md-12"
style
=
"margin-top:
3
0px;"
>
<
div
class
=
"alert alert-success"
>
<
div
class
=
"alert alert-success"
>
<
p
>
{{
session
(
'mensagem'
)}}
</
p
>
<
p
>
{{
session
(
'mensagem'
)}}
</
p
>
</
div
>
</
div
>
</
div
>
</
div
>
@
endif
@
endif
<
div
class
=
"col-sm-9"
>
<
h2
style
=
"margin-top: 100px; "
>
{{
__
(
'Subáreas de '
)
.
$area
->
nome
}}
</
h2
>
</
div
>
</
div
>
<
div
class
=
"col-sm-3"
>
<
div
class
=
"row"
style
=
"margin-top: 30px;"
>
<
a
href
=
"{{ route('subarea.criar', ['id' =>
$area->id
]) }}"
class
=
"btn btn-info"
style
=
"position:relative;top:100px; float: right;"
>
{{
__
(
'Criar subárea'
)
}}
</
a
>
<
div
class
=
"col-sm-1"
>
<
a
href
=
"{{ route('grandearea.show', ['id' =>
$area->grandeArea
->id]) }}"
class
=
"btn btn-secondary"
>
Voltar
</
a
>
</
div
>
<
div
class
=
"col-sm-9"
style
=
"text-align: center;"
>
<
h2
class
=
"titulo-table"
>
{{
__
(
'Subáreas de '
)
.
$area
->
nome
}}
</
h2
>
</
div
>
<
div
class
=
"col-sm-2"
>
<
a
href
=
"{{ route('subarea.criar', ['id' =>
$area->id
]) }}"
class
=
"btn btn-info"
style
=
"float: right;"
>
{{
__
(
'Criar subárea'
)
}}
</
a
>
</
div
>
</
div
>
</
div
>
</
div
>
<
hr
>
<
hr
>
<
table
class
=
"table table-bordered"
>
<
table
class
=
"table table-bordered"
>
<
thead
>
<
thead
>
...
@@ -39,14 +45,13 @@
...
@@ -39,14 +45,13 @@
<
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
href
=
"{{ route('subarea.editar', ['id' =>
$subArea->id
]) }}"
class
=
"dropdown-item"
>
<
a
href
=
"{{ route('subarea.editar', ['id' =>
$subArea->id
]) }}"
class
=
"dropdown-item text-center"
>
<
img
src
=
"
{
{asset('img/icons/edit-regular.svg')}
}
"
class
=
"icon-card"
alt
=
""
>
Editar
Editar
</
a
>
</
a
>
<
form
method
=
"POST"
action
=
"{{ route('subarea.deletar', ['id' =>
$subArea->id
]) }}"
>
<
form
method
=
"POST"
action
=
"{{ route('subarea.deletar', ['id' =>
$subArea->id
]) }}"
>
{{
csrf_field
()
}}
{{
csrf_field
()
}}
<
button
type
=
"submit"
class
=
"dropdown-item"
>
<
button
type
=
"submit"
class
=
"dropdown-item
dropdown-item-delete text-center
"
>
<
img
src
=
"
{
{asset('img/icons/
trash-alt-regular.svg')}
}
"
class
=
"icon-card
"
alt
=
""
>
<
img
src
=
"
{
{asset('img/icons/
logo_lixeira.png')}
}
"
alt
=
""
>
Deletar
Deletar
</
button
>
</
button
>
...
...
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